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.001345/0.001345, allocations: 92.53 kB / 16.3 MB, free: 5.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.001383/0.001383, allocations: 187.2 kB / 17.2 MB, free: 5.469 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.266/1.266, allocations: 223.2 MB / 241.1 MB, free: 14.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003374/0.0003375, allocations: 17.58 kB / 300.7 MB, free: 6.219 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0984/0.09876, allocations: 50.41 MB / 351.1 MB, free: 3.797 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.2238/0.3226, allocations: 88.47 MB / 439.6 MB, free: 11.61 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.04035/0.363, allocations: 20.07 MB / 459.7 MB, free: 7.488 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01773/0.3807, allocations: 474.6 kB / 460.1 MB, free: 7.023 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01284/0.3936, allocations: 4.456 MB / 464.6 MB, free: 2.547 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03418/0.4278, allocations: 12.78 MB / 477.4 MB, free: 5.738 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005321/0.4332, allocations: 1.389 MB / 478.8 MB, free: 4.348 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.3646/0.7978, allocations: 142.3 MB / 0.6065 GB, free: 38 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01103/0.8088, allocations: 8.739 MB / 0.615 GB, free: 31.8 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005759/0.8147, allocations: 2.404 MB / 0.6174 GB, free: 30.25 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004349/0.8191, allocations: 3.118 MB / 0.6204 GB, free: 28.02 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001229/0.8203, allocations: 276 kB / 0.6207 GB, free: 27.75 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002538/0.8229, allocations: 1.119 MB / 0.6218 GB, free: 26.83 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00277/0.8256, allocations: 3.397 MB / 0.6251 GB, free: 24.34 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00166/0.8273, allocations: 1.588 MB / 0.6267 GB, free: 23.76 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008229/0.8355, allocations: 11.2 MB / 0.6376 GB, free: 14.02 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.397e-06/0.8356, allocations: 0 / 0.6376 GB, free: 14.02 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.835e-06/0.8356, allocations: 3.656 kB / 0.6376 GB, free: 14.02 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003447/0.8359, allocations: 4 kB / 0.6376 GB, free: 14.02 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: 2386 * Number of variables: 2386 Notification: Performance of Generate backend data structure: time 0.02131/0.8573, allocations: 8.827 MB / 0.6462 GB, free: 5.895 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.331e-05/0.8573, allocations: 12.03 kB / 0.6462 GB, free: 5.883 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2989/1.156, allocations: 29.78 MB / 0.6753 GB, free: 9.996 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0195/1.176, allocations: 8.183 MB / 0.6833 GB, free: 4.086 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003248/1.176, allocations: 435.3 kB / 0.6837 GB, free: 3.848 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001916/1.178, allocations: 0.5805 MB / 0.6843 GB, free: 3.465 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03195/1.21, allocations: 16.41 MB / 0.7003 GB, free: 6.645 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003335/1.21, allocations: 93.11 kB / 0.7004 GB, free: 6.586 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009777/1.211, allocations: 267.8 kB / 0.7007 GB, free: 6.512 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00449/1.216, allocations: 2.767 MB / 0.7034 GB, free: 4.25 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02708/1.243, allocations: 13.11 MB / 0.7162 GB, free: 10.5 MB / 0.4981 GB 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.4942/1.737, allocations: 66.8 MB / 0.7814 GB, free: 70.41 MB / 0.4982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01868/1.756, allocations: 7.718 MB / 0.7889 GB, free: 69.68 MB / 0.4982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01853/1.774, allocations: 11.83 MB / 0.8005 GB, free: 67.68 MB / 0.4982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.863e-05/1.775, allocations: 74.16 kB / 0.8006 GB, free: 67.63 MB / 0.4982 GB Notification: Performance of pre-optimization done (n=280): time 5.04e-06/1.775, allocations: 0 / 0.8006 GB, free: 67.63 MB / 0.4982 GB Notification: Performance of matching and sorting (n=339): time 0.1627/1.937, allocations: 48.62 MB / 0.8481 GB, free: 34.09 MB / 0.4982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001163/1.937, allocations: 400.7 kB / 0.8484 GB, free: 33.61 MB / 0.4982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008916/1.946, allocations: 7.854 MB / 0.8561 GB, free: 27.84 MB / 0.4982 GB Notification: Performance of collectPreVariables (initialization): time 0.0008868/1.947, allocations: 77.64 kB / 0.8562 GB, free: 27.8 MB / 0.4982 GB Notification: Performance of collectInitialEqns (initialization): time 0.002518/1.95, allocations: 5.176 MB / 0.8612 GB, free: 24.11 MB / 0.4982 GB Notification: Performance of collectInitialBindings (initialization): time 0.00139/1.951, allocations: 1.243 MB / 0.8624 GB, free: 23.06 MB / 0.4982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003995/1.952, allocations: 162.6 kB / 0.8626 GB, free: 23.03 MB / 0.4982 GB Notification: Performance of setup shared object (initialization): time 0.0003307/1.952, allocations: 0.6481 MB / 0.8632 GB, free: 22.5 MB / 0.4982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004739/1.957, allocations: 3.929 MB / 0.8671 GB, free: 19.96 MB / 0.4982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006699/1.963, allocations: 8.532 MB / 0.8754 GB, free: 10.89 MB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007427/1.971, allocations: 5.617 MB / 0.8809 GB, free: 7.41 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001147/1.971, allocations: 44 kB / 0.8809 GB, free: 7.367 MB / 0.4982 GB Notification: Performance of matching and sorting (n=1070) (initialization): time 0.03424/2.005, allocations: 17.1 MB / 0.8976 GB, free: 8.906 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001279/2.005, allocations: 73.97 kB / 0.8977 GB, free: 8.836 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000209/2.006, allocations: 164 kB / 0.8979 GB, free: 8.676 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01863/2.024, allocations: 5.778 MB / 0.9035 GB, free: 2.883 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006739/2.031, allocations: 1.755 MB / 0.9052 GB, free: 1.277 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2456/2.277, allocations: 30.66 MB / 0.9352 GB, free: 210.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007815/2.284, allocations: 0.5341 MB / 0.9357 GB, free: 210 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001979/2.287, allocations: 470.6 kB / 0.9361 GB, free: 209.9 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 727 * 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 (934): * Single equations (assignments): 928 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(7,55.1%) 94,(2,100.0%) 6} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.006786/2.293, allocations: 3.464 MB / 0.9395 GB, free: 208.6 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001582/2.295, allocations: 0.6562 MB / 0.9402 GB, free: 208.6 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02182/2.317, allocations: 11.45 MB / 0.9513 GB, free: 204.9 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.229e-05/2.317, allocations: 46.28 kB / 0.9514 GB, free: 204.9 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.512e-05/2.317, allocations: 15.66 kB / 0.9514 GB, free: 204.9 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.134e-05/2.317, allocations: 22.95 kB / 0.9514 GB, free: 204.9 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04077/2.358, allocations: 24.91 MB / 0.9757 GB, free: 193.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.506e-05/2.358, allocations: 7.688 kB / 0.9757 GB, free: 193.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001881/2.36, allocations: 420.4 kB / 0.9761 GB, free: 193.7 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01498/2.375, allocations: 5.413 MB / 0.9814 GB, free: 189.1 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000752/2.375, allocations: 60 kB / 0.9815 GB, free: 189.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03211/2.408, allocations: 29.39 MB / 1.01 GB, free: 159.6 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.683e-06/2.408, allocations: 10.44 kB / 1.01 GB, free: 159.6 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02551/2.433, allocations: 17.61 MB / 1.027 GB, free: 141.9 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002125/2.435, allocations: 0.7146 MB / 1.028 GB, free: 141.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009726/2.436, allocations: 68.72 kB / 1.028 GB, free: 141.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002939/2.439, allocations: 269.6 kB / 1.028 GB, free: 140.8 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006628/2.44, allocations: 246.5 kB / 1.029 GB, free: 140.6 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000253/2.44, allocations: 93.47 kB / 1.029 GB, free: 140.5 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005972/2.446, allocations: 5.161 MB / 1.034 GB, free: 135.4 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.2e-07/2.446, allocations: 0 / 1.034 GB, free: 135.4 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007099/2.453, allocations: 2.004 MB / 1.036 GB, free: 133.4 MB / 0.5294 GB 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(7,55.1%) 87,(2,100.0%) 4} * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005699/2.454, allocations: 227.4 kB / 1.036 GB, free: 133.2 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01328/2.467, allocations: 10.42 MB / 1.046 GB, free: 122.8 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.741e-06/2.467, allocations: 0 / 1.046 GB, free: 122.8 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.006441/2.474, allocations: 4.675 MB / 1.051 GB, free: 118.1 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004358/2.478, allocations: 0.9826 MB / 1.052 GB, free: 117.1 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02953/2.507, allocations: 21.64 MB / 1.073 GB, free: 95.59 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004925/2.512, allocations: 5.694 MB / 1.078 GB, free: 89.86 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.00621/2.519, allocations: 2.637 MB / 1.081 GB, free: 87.22 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001145/2.52, allocations: 403.4 kB / 1.081 GB, free: 86.83 MB / 0.5294 GB Notification: Performance of SimCode: time 1.262e-06/2.52, allocations: 0 / 1.081 GB, free: 86.83 MB / 0.5294 GB Notification: Performance of Templates: time 0.3394/2.859, allocations: 88.22 MB / 1.167 GB, free: 205.7 MB / 0.5294 GB 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1a/Engine1a.csv","../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches