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.0007818/0.0007819, allocations: 90.72 kB / 16.65 MB, free: 6.535 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.0009095/0.0009096, allocations: 177 kB / 17.56 MB, free: 6.18 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.321/1.321, allocations: 223.3 MB / 241.6 MB, free: 14.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002873/0.0002874, allocations: 16.41 kB / 301.4 MB, free: 5.902 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08741/0.08771, allocations: 50.41 MB / 351.8 MB, free: 3.48 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic): time 0.2951/0.3828, allocations: 111.6 MB / 463.5 MB, free: 4.43 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.05578/0.4387, allocations: 22.32 MB / 485.8 MB, free: 14.04 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02025/0.4589, allocations: 0.4987 MB / 486.3 MB, free: 13.54 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003644/0.4626, allocations: 0.8044 MB / 487.1 MB, free: 12.73 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00929/0.472, allocations: 3.407 MB / 490.5 MB, free: 9.312 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004147/0.4761, allocations: 1.855 MB / 492.3 MB, free: 7.457 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.02177/0.4979, allocations: 18.81 MB / 0.4992 GB, free: 4.621 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02117/0.5191, allocations: 14.39 MB / 0.5132 GB, free: 6.098 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006073/0.5253, allocations: 3.004 MB / 0.5162 GB, free: 3.082 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007848/0.5331, allocations: 5.066 MB / 0.5211 GB, free: 14 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002044/0.5352, allocations: 340 kB / 0.5214 GB, free: 13.67 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004271/0.5395, allocations: 1.58 MB / 0.523 GB, free: 12.09 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005476/0.545, allocations: 4.25 MB / 0.5271 GB, free: 7.824 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007754/0.5528, allocations: 4.498 MB / 0.5315 GB, free: 3.293 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2739/0.8268, allocations: 16.06 MB / 0.5472 GB, free: 30.11 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.893e-06/0.8268, allocations: 2.562 kB / 0.5472 GB, free: 30.11 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.765e-06/0.8268, allocations: 1.031 kB / 0.5472 GB, free: 30.11 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.000687/0.8275, allocations: 0.625 kB / 0.5472 GB, free: 30.11 MB / 446.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.03296/0.8605, allocations: 9.232 MB / 0.5562 GB, free: 26.37 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.893e-05/0.8606, allocations: 9.125 kB / 0.5562 GB, free: 26.37 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05245/0.913, allocations: 5.542 MB / 0.5616 GB, free: 25.18 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02715/0.9402, allocations: 8.834 MB / 0.5703 GB, free: 22.41 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005318/0.9408, allocations: 0.5233 MB / 0.5708 GB, free: 22.39 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005065/0.9459, allocations: 0.7317 MB / 0.5715 GB, free: 22.37 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05414/1, allocations: 19.59 MB / 0.5906 GB, free: 16.32 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005891/1.001, allocations: 90.23 kB / 0.5907 GB, free: 16.3 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003766/1.005, allocations: 324.1 kB / 0.591 GB, free: 16.3 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00461/1.009, allocations: 2.813 MB / 0.5938 GB, free: 15.76 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03676/1.046, allocations: 16.33 MB / 0.6097 GB, free: 4.344 MB / 446.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.1283/1.174, allocations: 74.52 MB / 0.6825 GB, free: 8.715 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02571/1.2, allocations: 8.556 MB / 0.6908 GB, free: 20 kB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00752/1.208, allocations: 4.782 MB / 0.6955 GB, free: 11.23 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02442/1.232, allocations: 15.4 MB / 0.7106 GB, free: 11.39 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.549e-05/1.232, allocations: 71.77 kB / 0.7106 GB, free: 11.32 MB / 0.545 GB Notification: Performance of pre-optimization done (n=321): time 5.591e-06/1.232, allocations: 0 / 0.7106 GB, free: 11.32 MB / 0.545 GB Notification: Performance of matching and sorting (n=428): time 0.4106/1.643, allocations: 54.88 MB / 0.7642 GB, free: 231.9 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001174/1.643, allocations: 410.7 kB / 0.7646 GB, free: 231.4 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01507/1.658, allocations: 7.562 MB / 0.772 GB, free: 225 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001775/1.66, allocations: 95.42 kB / 0.7721 GB, free: 224.9 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.005293/1.665, allocations: 5.591 MB / 0.7775 GB, free: 219.4 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.003368/1.669, allocations: 1.556 MB / 0.7791 GB, free: 217.8 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002345/1.671, allocations: 0.9198 MB / 0.78 GB, free: 216.9 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 6.529e-05/1.671, allocations: 301.1 kB / 0.7802 GB, free: 216.6 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008305/1.679, allocations: 5.221 MB / 0.7853 GB, free: 211.4 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01103/1.69, allocations: 10.27 MB / 0.7954 GB, free: 198.7 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01888/1.709, allocations: 16.31 MB / 0.8113 GB, free: 180 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001395/1.709, allocations: 48 kB / 0.8114 GB, free: 179.9 MB / 0.545 GB Notification: Performance of matching and sorting (n=1335) (initialization): time 0.04781/1.757, allocations: 21.25 MB / 0.8321 GB, free: 158.7 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001304/1.757, allocations: 84.03 kB / 0.8322 GB, free: 158.6 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001959/1.758, allocations: 168 kB / 0.8323 GB, free: 158.4 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02009/1.778, allocations: 6.67 MB / 0.8389 GB, free: 151.8 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007144/1.785, allocations: 2.152 MB / 0.841 GB, free: 149.6 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04224/1.827, allocations: 32.83 MB / 0.873 GB, free: 116.6 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01025/1.838, allocations: 0.629 MB / 0.8736 GB, free: 116 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002237/1.84, allocations: 0.5331 MB / 0.8742 GB, free: 115.5 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 778 * 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 (1178): * Single equations (assignments): 1173 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,129,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.01034/1.85, allocations: 4.097 MB / 0.8782 GB, free: 111.4 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001816/1.852, allocations: 0.6981 MB / 0.8788 GB, free: 110.7 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02771/1.88, allocations: 14.32 MB / 0.8928 GB, free: 96.29 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.106e-05/1.88, allocations: 47.92 kB / 0.8929 GB, free: 96.24 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.659e-05/1.88, allocations: 24 kB / 0.8929 GB, free: 96.22 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.793e-05/1.88, allocations: 23.94 kB / 0.8929 GB, free: 96.2 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05501/1.935, allocations: 28.27 MB / 0.9205 GB, free: 67.71 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.805e-05/1.935, allocations: 8 kB / 0.9205 GB, free: 67.7 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003169/1.938, allocations: 0.5928 MB / 0.9211 GB, free: 67.11 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01928/1.957, allocations: 6.319 MB / 0.9273 GB, free: 60.78 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00129/1.959, allocations: 79.98 kB / 0.9273 GB, free: 60.7 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03776/1.997, allocations: 29.76 MB / 0.9564 GB, free: 30.79 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.876e-06/1.997, allocations: 23.92 kB / 0.9564 GB, free: 30.77 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2769/2.274, allocations: 20.92 MB / 0.9769 GB, free: 223 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005256/2.279, allocations: 1.571 MB / 0.9784 GB, free: 222.5 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002719/2.282, allocations: 78.84 kB / 0.9785 GB, free: 222.4 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00586/2.287, allocations: 335.4 kB / 0.9788 GB, free: 222.4 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001584/2.289, allocations: 306.4 kB / 0.9791 GB, free: 222.3 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004271/2.29, allocations: 115.1 kB / 0.9792 GB, free: 222.3 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.01012/2.3, allocations: 4.833 MB / 0.9839 GB, free: 220.7 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.8e-07/2.3, allocations: 0 / 0.9839 GB, free: 220.7 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01424/2.314, allocations: 2.429 MB / 0.9863 GB, free: 220.5 MB / 0.545 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 (296): * Single equations (assignments): 292 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,116,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001684/2.316, allocations: 285.8 kB / 0.9866 GB, free: 220.3 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.02044/2.336, allocations: 12.7 MB / 0.999 GB, free: 215.3 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.147e-05/2.336, allocations: 7.812 kB / 0.999 GB, free: 215.3 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.00868/2.345, allocations: 5.343 MB / 1.004 GB, free: 212.6 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01588/2.361, allocations: 1.02 MB / 1.005 GB, free: 211.8 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04737/2.408, allocations: 26.94 MB / 1.031 GB, free: 187.5 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01201/2.42, allocations: 6.386 MB / 1.038 GB, free: 182.7 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.01025/2.431, allocations: 2.958 MB / 1.041 GB, free: 180.8 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001854/2.432, allocations: 435.1 kB / 1.041 GB, free: 180.4 MB / 0.545 GB Notification: Performance of SimCode: time 1.413e-06/2.432, allocations: 0 / 1.041 GB, free: 180.4 MB / 0.545 GB Notification: Performance of Templates: time 0.1727/2.605, allocations: 105.9 MB / 1.144 GB, free: 76.02 MB / 0.545 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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