Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001047/0.001047, allocations: 91.84 kB / 16.3 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001213/0.001213, allocations: 185.6 kB / 17.2 MB, free: 5.91 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.303/1.303, allocations: 223.2 MB / 241.1 MB, free: 5.445 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002332/0.0002332, allocations: 5.531 kB / 300.7 MB, free: 6.035 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09162/0.09187, allocations: 50.43 MB / 351.1 MB, free: 11.73 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic): time 0.2646/0.3566, allocations: 97.82 MB / 449 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.04708/0.4037, allocations: 22.48 MB / 471.4 MB, free: 13.94 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0257/0.4294, allocations: 0.4991 MB / 471.9 MB, free: 13.86 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01947/0.449, allocations: 4.901 MB / 476.8 MB, free: 10.87 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.04298/0.492, allocations: 13.87 MB / 490.7 MB, free: 6.684 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007158/0.4992, allocations: 1.685 MB / 492.4 MB, free: 6.223 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.4301/0.9293, allocations: 142.7 MB / 0.6202 GB, free: 116.5 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01505/0.9444, allocations: 12.69 MB / 0.6326 GB, free: 110.9 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005413/0.9498, allocations: 2.636 MB / 0.6352 GB, free: 109.2 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005458/0.9553, allocations: 3.531 MB / 0.6386 GB, free: 106.7 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002733/0.9581, allocations: 344 kB / 0.639 GB, free: 106.4 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00538/0.9635, allocations: 1.311 MB / 0.6402 GB, free: 105.3 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005029/0.9686, allocations: 3.893 MB / 0.6441 GB, free: 102.5 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003226/0.9718, allocations: 1.869 MB / 0.6459 GB, free: 101.8 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01335/0.9852, allocations: 14.27 MB / 0.6598 GB, free: 89.41 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.9853, allocations: 0 / 0.6598 GB, free: 89.41 MB / 478.1 MB Notification: Performance of FrontEnd: time 3.897e-06/0.9853, allocations: 0 / 0.6598 GB, free: 89.41 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.0006242/0.9859, allocations: 0 / 0.6598 GB, free: 89.41 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2753 * Number of variables: 2753 Notification: Performance of Generate backend data structure: time 0.02655/1.012, allocations: 10.11 MB / 0.6697 GB, free: 80.12 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.057e-05/1.013, allocations: 8.031 kB / 0.6697 GB, free: 80.12 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2827/1.295, allocations: 30.05 MB / 0.699 GB, free: 51.96 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0214/1.317, allocations: 9.214 MB / 0.708 GB, free: 45.46 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004309/1.317, allocations: 0.5261 MB / 0.7085 GB, free: 45.17 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003142/1.32, allocations: 0.728 MB / 0.7093 GB, free: 44.68 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0378/1.358, allocations: 19.43 MB / 0.7282 GB, free: 27.63 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002831/1.358, allocations: 97.89 kB / 0.7283 GB, free: 27.57 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008825/1.359, allocations: 320.6 kB / 0.7286 GB, free: 27.3 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003503/1.363, allocations: 2.819 MB / 0.7314 GB, free: 24.52 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03148/1.394, allocations: 15.82 MB / 0.7468 GB, free: 8.949 MB / 478.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4707/1.865, allocations: 72.92 MB / 0.818 GB, free: 157.5 MB / 0.4982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02058/1.886, allocations: 8.12 MB / 0.826 GB, free: 156.7 MB / 0.4982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02345/1.909, allocations: 14.34 MB / 0.84 GB, free: 152 MB / 0.4982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.135e-05/1.909, allocations: 70.17 kB / 0.84 GB, free: 151.9 MB / 0.4982 GB Notification: Performance of pre-optimization done (n=310): time 9.347e-06/1.909, allocations: 0 / 0.84 GB, free: 151.9 MB / 0.4982 GB Notification: Performance of matching and sorting (n=416): time 0.155/2.064, allocations: 49.1 MB / 0.888 GB, free: 110.7 MB / 0.4982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001018/2.064, allocations: 406.3 kB / 0.8884 GB, free: 110.2 MB / 0.4982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009963/2.074, allocations: 8.283 MB / 0.8965 GB, free: 101.9 MB / 0.4982 GB Notification: Performance of collectPreVariables (initialization): time 0.0008396/2.075, allocations: 93.7 kB / 0.8966 GB, free: 101.8 MB / 0.4982 GB Notification: Performance of collectInitialEqns (initialization): time 0.002644/2.078, allocations: 5.789 MB / 0.9022 GB, free: 96.05 MB / 0.4982 GB Notification: Performance of collectInitialBindings (initialization): time 0.00145/2.079, allocations: 1.502 MB / 0.9037 GB, free: 94.56 MB / 0.4982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000425/2.08, allocations: 184 kB / 0.9038 GB, free: 94.38 MB / 0.4982 GB Notification: Performance of setup shared object (initialization): time 0.0003318/2.08, allocations: 0.6946 MB / 0.9045 GB, free: 93.68 MB / 0.4982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005145/2.085, allocations: 4.41 MB / 0.9088 GB, free: 89.26 MB / 0.4982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006571/2.092, allocations: 9.331 MB / 0.9179 GB, free: 77.59 MB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007155/2.099, allocations: 6.315 MB / 0.9241 GB, free: 71.33 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.485e-05/2.099, allocations: 48 kB / 0.9242 GB, free: 71.29 MB / 0.4982 GB Notification: Performance of matching and sorting (n=1204) (initialization): time 0.03116/2.13, allocations: 18.01 MB / 0.9417 GB, free: 53.24 MB / 0.4982 GB Notification: Performance of prepare postOptimizeDAE: time 8.883e-05/2.13, allocations: 76 kB / 0.9418 GB, free: 53.16 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001341/2.131, allocations: 168 kB / 0.942 GB, free: 53 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02223/2.153, allocations: 5.218 MB / 0.9471 GB, free: 47.78 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009799/2.163, allocations: 1.953 MB / 0.949 GB, free: 45.82 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04632/2.209, allocations: 29.31 MB / 0.9776 GB, free: 16.37 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008857/2.218, allocations: 0.5538 MB / 0.9781 GB, free: 15.82 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001616/2.22, allocations: 0.5001 MB / 0.9786 GB, free: 15.32 MB / 0.4982 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 774 * Number of states: 0 () * Number of discrete variables: 73 (jointRRP.jointUSP.prismatic.positiveBranch,jointRRP.jointUSP.rod1Color[3],jointRRP.jointUSP.rod1Color[2],jointRRP.jointUSP.rod1Color[1],jointRRP.jointUSP.cylinderColor[3],jointRRP.jointUSP.cylinderColor[2],jointRRP.jointUSP.cylinderColor[1],jointRRP.jointUSP.sphereColor[3],jointRRP.jointUSP.sphereColor[2],jointRRP.jointUSP.sphereColor[1],jointRRP.rodColor[3],jointRRP.rodColor[2],jointRRP.rodColor[1],jointRRP.cylinderColor[3],jointRRP.cylinderColor[2],jointRRP.cylinderColor[1],cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],mid.color[3],mid.color[2],mid.color[1],crank4.color[3],crank4.color[2],crank4.color[1],crank4.body.sphereColor[3],crank4.body.sphereColor[2],crank4.body.sphereColor[1],crank3.color[3],crank3.color[2],crank3.color[1],crank3.body.sphereColor[3],crank3.body.sphereColor[2],crank3.body.sphereColor[1],crank2.color[3],crank2.color[2],crank2.color[1],crank2.body.sphereColor[3],crank2.body.sphereColor[2],crank2.body.sphereColor[1],crank1.color[3],crank1.color[2],crank1.color[1],crank1.body.sphereColor[3],crank1.body.sphereColor[2],crank1.body.sphereColor[1],bearing.cylinderColor[3],bearing.cylinderColor[2],bearing.cylinderColor[1],connectingRod.color[3],connectingRod.color[2],connectingRod.color[1],connectingRod.body.sphereColor[3],connectingRod.body.sphereColor[2],connectingRod.body.sphereColor[1],piston.color[3],piston.color[2],piston.color[1],piston.body.sphereColor[3],piston.body.sphereColor[2],piston.body.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1047): * Single equations (assignments): 1042 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 129} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006988/2.227, allocations: 4.085 MB / 0.9826 GB, free: 11.22 MB / 0.4982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001707/2.228, allocations: 0.7058 MB / 0.9833 GB, free: 10.5 MB / 0.4982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2309/2.459, allocations: 11.87 MB / 0.9949 GB, free: 176.8 MB / 0.4982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.425e-05/2.459, allocations: 42.62 kB / 0.9949 GB, free: 176.8 MB / 0.4982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.71e-05/2.459, allocations: 28.06 kB / 0.995 GB, free: 176.8 MB / 0.4982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001049/2.46, allocations: 22.98 kB / 0.995 GB, free: 176.8 MB / 0.4982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04775/2.507, allocations: 25.69 MB / 1.02 GB, free: 172.8 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.453e-05/2.507, allocations: 9 kB / 1.02 GB, free: 172.8 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002573/2.51, allocations: 0.5706 MB / 1.021 GB, free: 172.7 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01422/2.524, allocations: 4.83 MB / 1.025 GB, free: 171.7 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005615/2.525, allocations: 71.28 kB / 1.025 GB, free: 171.6 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03059/2.555, allocations: 26.1 MB / 1.051 GB, free: 155.2 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.637e-06/2.555, allocations: 15.89 kB / 1.051 GB, free: 155.2 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02774/2.583, allocations: 19.2 MB / 1.07 GB, free: 136 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004948/2.588, allocations: 1.481 MB / 1.071 GB, free: 134.8 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001553/2.59, allocations: 82.31 kB / 1.071 GB, free: 134.8 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003587/2.593, allocations: 275.6 kB / 1.071 GB, free: 134.5 MB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008422/2.594, allocations: 298.8 kB / 1.072 GB, free: 134.2 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002918/2.594, allocations: 108 kB / 1.072 GB, free: 134.1 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.007399/2.602, allocations: 5.427 MB / 1.077 GB, free: 128.7 MB / 0.4982 GB Notification: Performance of sort global known variables: time 1.81e-07/2.602, allocations: 4 kB / 1.077 GB, free: 128.7 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.009306/2.611, allocations: 2.254 MB / 1.079 GB, free: 126.4 MB / 0.4982 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * Number of states: 2 (inertia.phi,inertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (287): * Single equations (assignments): 283 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 113} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008839/2.612, allocations: 283.2 kB / 1.08 GB, free: 126.2 MB / 0.4982 GB Notification: Performance of simCode: created initialization part: time 0.01474/2.627, allocations: 11.15 MB / 1.091 GB, free: 115.1 MB / 0.4982 GB Notification: Performance of simCode: created event and clocks part: time 1.3e-05/2.627, allocations: 4 kB / 1.091 GB, free: 115.1 MB / 0.4982 GB Notification: Performance of simCode: created simulation system equations: time 0.006619/2.634, allocations: 4.807 MB / 1.095 GB, free: 110.3 MB / 0.4982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005792/2.639, allocations: 1.049 MB / 1.096 GB, free: 109.3 MB / 0.4982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03857/2.678, allocations: 24.85 MB / 1.121 GB, free: 84.67 MB / 0.4982 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008889/2.687, allocations: 6.564 MB / 1.127 GB, free: 78.08 MB / 0.4982 GB Notification: Performance of simCode: alias equations: time 0.008072/2.695, allocations: 2.941 MB / 1.13 GB, free: 75.13 MB / 0.4982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001707/2.697, allocations: 443.4 kB / 1.13 GB, free: 74.7 MB / 0.4982 GB Notification: Performance of SimCode: time 1.633e-06/2.697, allocations: 0 / 1.13 GB, free: 74.7 MB / 0.4982 GB Notification: Performance of Templates: time 0.3665/3.063, allocations: 98.94 MB / 1.227 GB, free: 147.1 MB / 0.4982 GB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b_analytic/Engine1b_analytic.csv","../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches