Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.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.Engine1a,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001595/0.001595, allocations: 110 kB / 17.68 MB, free: 5.332 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.001656/0.001656, allocations: 190.9 kB / 18.62 MB, free: 4.41 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.35/1.35, allocations: 222.9 MB / 242.3 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009656/0.0009656, allocations: 53.11 kB / 302.1 MB, free: 5.152 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09531/0.0963, allocations: 49.44 MB / 351.5 MB, free: 3.688 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.01858/0.1149, allocations: 19.42 MB / 370.9 MB, free: 188 kB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1784/0.2934, allocations: 5.98 MB / 376.9 MB, free: 9.582 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005583/0.299, allocations: 158.1 kB / 377 MB, free: 9.582 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01081/0.3099, allocations: 5.852 MB / 382.9 MB, free: 7.98 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009257/0.3192, allocations: 3.333 MB / 386.2 MB, free: 6.738 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003556/0.3228, allocations: 1.565 MB / 387.8 MB, free: 5.852 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01628/0.3391, allocations: 12.36 MB / 400.2 MB, free: 200 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008013/0.3471, allocations: 7.664 MB / 407.8 MB, free: 9.098 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005719/0.3529, allocations: 3.546 MB / 411.4 MB, free: 5.754 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006679/0.3596, allocations: 4.746 MB / 416.1 MB, free: 1.277 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002044/0.3616, allocations: 0.7109 MB / 416.8 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004921/0.3666, allocations: 1.684 MB / 418.5 MB, free: 14.93 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004692/0.3713, allocations: 4.189 MB / 422.7 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007096/0.3784, allocations: 4.47 MB / 427.2 MB, free: 6.273 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01481/0.3932, allocations: 13.65 MB / 440.8 MB, free: 8.91 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.384e-06/0.3933, allocations: 0 / 440.8 MB, free: 8.91 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3933, allocations: 0 / 440.8 MB, free: 8.91 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0004209/0.3937, allocations: 0 / 440.8 MB, free: 8.91 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2386 * Number of variables: 2386 Notification: Performance of Generate backend data structure: time 0.02049/0.4142, allocations: 9.668 MB / 450.5 MB, free: 15.3 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.048e-05/0.4143, allocations: 12.03 kB / 450.5 MB, free: 15.29 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04194/0.4562, allocations: 5.231 MB / 455.7 MB, free: 10.04 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01975/0.476, allocations: 8.058 MB / 463.8 MB, free: 2.02 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003128/0.4764, allocations: 427 kB / 464.2 MB, free: 1.652 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001677/0.478, allocations: 0.5806 MB / 464.8 MB, free: 1.117 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0293/0.5074, allocations: 16.57 MB / 481.4 MB, free: 15.64 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003188/0.5077, allocations: 103.1 kB / 481.5 MB, free: 15.54 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008557/0.5086, allocations: 265.8 kB / 481.7 MB, free: 15.33 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004114/0.5127, allocations: 2.76 MB / 484.5 MB, free: 12.57 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02623/0.539, allocations: 13.62 MB / 498.1 MB, free: 14.93 MB / 414.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.4147/0.9537, allocations: 67.73 MB / 0.5526 GB, free: 102.3 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01903/0.9727, allocations: 7.908 MB / 0.5603 GB, free: 101.6 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004785/0.9775, allocations: 4.514 MB / 0.5647 GB, free: 99.74 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01864/0.9962, allocations: 12.41 MB / 0.5768 GB, free: 94.07 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.698e-05/0.9963, allocations: 68.2 kB / 0.5769 GB, free: 94.02 MB / 446.1 MB Notification: Performance of pre-optimization done (n=280): time 4.99e-06/0.9963, allocations: 0 / 0.5769 GB, free: 94.02 MB / 446.1 MB Notification: Performance of matching and sorting (n=339): time 0.1606/1.157, allocations: 50.12 MB / 0.6258 GB, free: 53.4 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.632e-05/1.157, allocations: 401.4 kB / 0.6262 GB, free: 52.92 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007854/1.165, allocations: 7.123 MB / 0.6332 GB, free: 45.82 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007213/1.166, allocations: 77.7 kB / 0.6332 GB, free: 45.73 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00232/1.168, allocations: 5.022 MB / 0.6381 GB, free: 40.71 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001242/1.169, allocations: 1.258 MB / 0.6394 GB, free: 39.46 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002203/1.171, allocations: 1.863 MB / 0.6412 GB, free: 37.59 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.589e-05/1.171, allocations: 305.1 kB / 0.6415 GB, free: 37.29 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005113/1.177, allocations: 4.539 MB / 0.6459 GB, free: 32.74 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007013/1.184, allocations: 9.271 MB / 0.655 GB, free: 21.25 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01469/1.198, allocations: 14.54 MB / 0.6692 GB, free: 4.504 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001341/1.199, allocations: 51.98 kB / 0.6692 GB, free: 4.453 MB / 446.1 MB Notification: Performance of matching and sorting (n=1184) (initialization): time 0.04131/1.24, allocations: 19.74 MB / 0.6885 GB, free: 0.6562 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.333e-05/1.24, allocations: 79.94 kB / 0.6886 GB, free: 0.5781 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001493/1.24, allocations: 164 kB / 0.6887 GB, free: 428 kB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02015/1.26, allocations: 7.055 MB / 0.6956 GB, free: 9.348 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006092/1.266, allocations: 1.934 MB / 0.6975 GB, free: 7.41 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2363/1.503, allocations: 35.3 MB / 0.732 GB, free: 143 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008091/1.511, allocations: 0.5837 MB / 0.7325 GB, free: 142.8 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001769/1.513, allocations: 0.4883 MB / 0.733 GB, free: 142.8 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 733 * Number of states: 0 () * Number of discrete variables: 66 (cylinder.boxColor[3],cylinder.boxColor[2],cylinder.boxColor[1],b2.cylinderColor[3],b2.cylinderColor[2],b2.cylinderColor[1],b1.cylinderColor[3],b1.cylinderColor[2],b1.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 (1048): * Single equations (assignments): 1042 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(8,93,51.6%), (3,5,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.005946/1.519, allocations: 3.473 MB / 0.7364 GB, free: 141.5 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001391/1.52, allocations: 0.6295 MB / 0.737 GB, free: 141.5 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02519/1.545, allocations: 13.31 MB / 0.75 GB, free: 137.4 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.474e-05/1.545, allocations: 38.52 kB / 0.7501 GB, free: 137.4 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.268e-05/1.545, allocations: 23.03 kB / 0.7501 GB, free: 137.4 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.754e-05/1.545, allocations: 15.25 kB / 0.7501 GB, free: 137.4 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04531/1.591, allocations: 26.56 MB / 0.776 GB, free: 113.9 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.558e-05/1.591, allocations: 8 kB / 0.776 GB, free: 113.9 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001839/1.593, allocations: 418.4 kB / 0.7764 GB, free: 113.5 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01753/1.61, allocations: 6.655 MB / 0.7829 GB, free: 106.9 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006658/1.611, allocations: 60 kB / 0.783 GB, free: 106.9 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03701/1.648, allocations: 34 MB / 0.8162 GB, free: 72.73 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.975e-06/1.648, allocations: 8 kB / 0.8162 GB, free: 72.72 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02987/1.678, allocations: 18.78 MB / 0.8345 GB, free: 54.09 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002448/1.68, allocations: 0.6884 MB / 0.8352 GB, free: 53.38 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001504/1.682, allocations: 60 kB / 0.8353 GB, free: 53.32 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00384/1.686, allocations: 309.3 kB / 0.8356 GB, free: 53.03 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009211/1.687, allocations: 238.6 kB / 0.8358 GB, free: 52.79 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002764/1.687, allocations: 87.97 kB / 0.8359 GB, free: 52.71 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005888/1.693, allocations: 4.559 MB / 0.8403 GB, free: 48.18 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.3e-07/1.693, allocations: 3.938 kB / 0.8403 GB, free: 48.18 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.007844/1.701, allocations: 2.14 MB / 0.8424 GB, free: 46.04 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (214): * Single equations (assignments): 208 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(7,87,55.1%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006199/1.701, allocations: 212.4 kB / 0.8426 GB, free: 45.84 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01536/1.717, allocations: 11.62 MB / 0.854 GB, free: 34.25 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.134e-05/1.717, allocations: 4 kB / 0.854 GB, free: 34.24 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007115/1.724, allocations: 4.999 MB / 0.8589 GB, free: 29.21 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00536/1.729, allocations: 0.9861 MB / 0.8598 GB, free: 28.26 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2096/1.939, allocations: 19.54 MB / 0.8789 GB, free: 146.8 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006904/1.946, allocations: 5.524 MB / 0.8843 GB, free: 145.9 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00568/1.952, allocations: 2.608 MB / 0.8869 GB, free: 145.8 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001068/1.953, allocations: 389 kB / 0.8872 GB, free: 145.8 MB / 478.1 MB Notification: Performance of SimCode: time 9.71e-07/1.953, allocations: 0 / 0.8872 GB, free: 145.8 MB / 478.1 MB Notification: Performance of Templates: time 0.1297/2.082, allocations: 91.07 MB / 0.9762 GB, free: 76.7 MB / 478.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1a/Engine1a.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches