Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Inertia.phi|Inertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Inertia.phi|Inertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001521/0.001521, allocations: 102 kB / 17.16 MB, free: 6.32 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.001564/0.001564, allocations: 190 kB / 18.07 MB, free: 5.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.441/1.441, allocations: 205.1 MB / 223.9 MB, free: 12.46 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001139/0.001139, allocations: 47.94 kB / 280 MB, free: 3.582 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.1034, allocations: 46.63 MB / 326.6 MB, free: 4.887 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.3147/0.4181, allocations: 111.5 MB / 438.1 MB, free: 6.512 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.05946/0.4776, allocations: 21.3 MB / 459.4 MB, free: 1.25 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02905/0.5067, allocations: 0.5026 MB / 459.9 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01237/0.5192, allocations: 6.366 MB / 466.3 MB, free: 10.37 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01255/0.5318, allocations: 3.278 MB / 469.5 MB, free: 7.078 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004956/0.5368, allocations: 1.544 MB / 471.1 MB, free: 5.535 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.02111/0.5579, allocations: 16.36 MB / 487.4 MB, free: 5.141 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01341/0.5714, allocations: 7.894 MB / 495.3 MB, free: 13.17 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008348/0.5798, allocations: 3.403 MB / 498.7 MB, free: 9.758 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009522/0.5893, allocations: 5.32 MB / 0.4922 GB, free: 4.422 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003084/0.5924, allocations: 0.5 MB / 0.4927 GB, free: 3.922 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00527/0.5977, allocations: 1.529 MB / 0.4942 GB, free: 2.391 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007055/0.6048, allocations: 4.2 MB / 0.4983 GB, free: 14.18 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00954/0.6144, allocations: 4.416 MB / 0.5026 GB, free: 9.738 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01874/0.6332, allocations: 13.65 MB / 0.516 GB, free: 12.04 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.367e-06/0.6332, allocations: 4 kB / 0.516 GB, free: 12.04 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.447e-06/0.6332, allocations: 0 / 0.516 GB, free: 12.04 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0006191/0.6339, allocations: 7.938 kB / 0.516 GB, free: 12.03 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2489 * Number of variables: 2489 Notification: Performance of Generate backend data structure: time 0.03351/0.6674, allocations: 10.06 MB / 0.5258 GB, free: 1.879 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.044e-05/0.6675, allocations: 12.03 kB / 0.5258 GB, free: 1.867 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04342/0.7109, allocations: 5.271 MB / 0.531 GB, free: 12.58 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01986/0.7308, allocations: 8.38 MB / 0.5392 GB, free: 4.105 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004705/0.7313, allocations: 448.2 kB / 0.5396 GB, free: 3.668 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002935/0.7343, allocations: 0.6165 MB / 0.5402 GB, free: 3.051 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3702/1.105, allocations: 17.12 MB / 0.5569 GB, free: 157.7 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003898/1.105, allocations: 100.3 kB / 0.557 GB, free: 157.7 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001122/1.106, allocations: 278.7 kB / 0.5573 GB, free: 157.6 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003948/1.11, allocations: 2.862 MB / 0.5601 GB, free: 157 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0273/1.137, allocations: 14.04 MB / 0.5738 GB, free: 148.8 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.08275/1.22, allocations: 69.43 MB / 0.6416 GB, free: 78.38 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01719/1.237, allocations: 7.463 MB / 0.6489 GB, free: 70.77 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004949/1.242, allocations: 4.459 MB / 0.6532 GB, free: 66.3 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01934/1.262, allocations: 12.75 MB / 0.6657 GB, free: 53.23 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.391e-05/1.262, allocations: 64.5 kB / 0.6657 GB, free: 53.16 MB / 446.1 MB Notification: Performance of pre-optimization done (n=293): time 5.32e-06/1.262, allocations: 0 / 0.6657 GB, free: 53.16 MB / 446.1 MB Notification: Performance of matching and sorting (n=365): time 0.141/1.403, allocations: 43.53 MB / 0.7082 GB, free: 9.73 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001248/1.403, allocations: 402.2 kB / 0.7086 GB, free: 9.25 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009672/1.413, allocations: 7.385 MB / 0.7158 GB, free: 1.895 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001023/1.414, allocations: 85.7 kB / 0.7159 GB, free: 1.805 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.2075/1.621, allocations: 5.235 MB / 0.721 GB, free: 147.7 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001876/1.623, allocations: 1.35 MB / 0.7224 GB, free: 146.9 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003744/1.627, allocations: 1.935 MB / 0.7242 GB, free: 146.8 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.688e-05/1.627, allocations: 304.7 kB / 0.7245 GB, free: 146.5 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006984/1.634, allocations: 4.281 MB / 0.7287 GB, free: 145.2 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0105/1.645, allocations: 9.195 MB / 0.7377 GB, free: 137.2 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0179/1.662, allocations: 14.25 MB / 0.7516 GB, free: 126.8 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003221/1.663, allocations: 50.62 kB / 0.7517 GB, free: 126.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=1238) (initialization): time 0.03828/1.701, allocations: 18 MB / 0.7692 GB, free: 119.8 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003368/1.701, allocations: 80 kB / 0.7693 GB, free: 119.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003863/1.702, allocations: 168.1 kB / 0.7695 GB, free: 119.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01497/1.717, allocations: 5.328 MB / 0.7747 GB, free: 115.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007068/1.724, allocations: 2.009 MB / 0.7766 GB, free: 113.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03892/1.763, allocations: 29.01 MB / 0.805 GB, free: 84.03 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009102/1.772, allocations: 0.5539 MB / 0.8055 GB, free: 83.47 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002455/1.775, allocations: 0.5078 MB / 0.806 GB, free: 82.96 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 762 * Number of states: 0 () * Number of discrete variables: 72 (Rod3.color[3],Rod3.color[2],Rod3.color[1],Rod1.color[3],Rod1.color[2],Rod1.color[1],Cylinder.boxColor[3],Cylinder.boxColor[2],Cylinder.boxColor[1],B1.cylinderColor[3],B1.cylinderColor[2],B1.cylinderColor[1],B2.cylinderColor[3],B2.cylinderColor[2],B2.cylinderColor[1],cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],Mid.color[3],Mid.color[2],Mid.color[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],Crank3.color[3],Crank3.color[2],Crank3.color[1],Crank3.body.sphereColor[3],Crank3.body.sphereColor[2],Crank3.body.sphereColor[1],Crank4.color[3],Crank4.color[2],Crank4.color[1],Crank4.body.sphereColor[3],Crank4.body.sphereColor[2],Crank4.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],Bearing.cylinderColor[3],Bearing.cylinderColor[2],Bearing.cylinderColor[1],Rod2.color[3],Rod2.color[2],Rod2.color[1],Rod2.body.sphereColor[3],Rod2.body.sphereColor[2],Rod2.body.sphereColor[1],Piston.color[3],Piston.color[2],Piston.color[1],Piston.body.sphereColor[3],Piston.body.sphereColor[2],Piston.body.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1102): * Single equations (assignments): 1096 * 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 {(6,100,72.2%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.009151/1.784, allocations: 3.622 MB / 0.8095 GB, free: 79.33 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002414/1.786, allocations: 0.6634 MB / 0.8102 GB, free: 78.66 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0265/1.813, allocations: 11.27 MB / 0.8212 GB, free: 67.32 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.302e-05/1.813, allocations: 37.53 kB / 0.8212 GB, free: 67.29 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.396e-05/1.813, allocations: 20 kB / 0.8212 GB, free: 67.27 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.165e-05/1.813, allocations: 19.88 kB / 0.8213 GB, free: 67.25 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04332/1.856, allocations: 22.17 MB / 0.8429 GB, free: 44.88 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.29e-05/1.856, allocations: 10.05 kB / 0.8429 GB, free: 44.88 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00223/1.859, allocations: 455.3 kB / 0.8434 GB, free: 44.43 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01383/1.872, allocations: 5.035 MB / 0.8483 GB, free: 39.38 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008348/1.873, allocations: 61.06 kB / 0.8483 GB, free: 39.32 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2541/2.127, allocations: 28.4 MB / 0.8761 GB, free: 130.6 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.128e-05/2.128, allocations: 8.25 kB / 0.8761 GB, free: 130.6 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03123/2.159, allocations: 16.49 MB / 0.8922 GB, free: 128 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003977/2.163, allocations: 1.343 MB / 0.8935 GB, free: 127.6 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001735/2.165, allocations: 72.98 kB / 0.8936 GB, free: 127.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003478/2.168, allocations: 265.6 kB / 0.8938 GB, free: 127.5 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009263/2.169, allocations: 267.7 kB / 0.8941 GB, free: 127.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002702/2.169, allocations: 98.67 kB / 0.8942 GB, free: 127.5 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.007344/2.177, allocations: 4.727 MB / 0.8988 GB, free: 125.9 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.21e-07/2.177, allocations: 0 / 0.8988 GB, free: 125.9 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0109/2.188, allocations: 2.18 MB / 0.9009 GB, free: 125.7 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 35 * 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 (241): * Single equations (assignments): 235 * 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 {(5,96,72.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009082/2.188, allocations: 229.7 kB / 0.9011 GB, free: 125.6 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01651/2.205, allocations: 10.83 MB / 0.9117 GB, free: 121.5 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.36e-05/2.205, allocations: 0 / 0.9117 GB, free: 121.5 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006732/2.212, allocations: 4.479 MB / 0.9161 GB, free: 119.5 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007854/2.22, allocations: 0.9723 MB / 0.917 GB, free: 119.2 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0342/2.254, allocations: 23.31 MB / 0.9398 GB, free: 100.1 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007658/2.262, allocations: 5.769 MB / 0.9454 GB, free: 95.69 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.007927/2.27, allocations: 2.748 MB / 0.9481 GB, free: 92.93 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001535/2.271, allocations: 415.4 kB / 0.9485 GB, free: 92.53 MB / 446.1 MB Notification: Performance of SimCode: time 8.41e-07/2.271, allocations: 0 / 0.9485 GB, free: 92.53 MB / 446.1 MB Notification: Performance of Templates: time 0.3492/2.62, allocations: 94.75 MB / 1.041 GB, free: 125.7 MB / 446.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b/Engine1b.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches