Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001106/0.001106, allocations: 110.6 kB / 17.86 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002278/0.002278, allocations: 209.7 kB / 18.79 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.376/1.376, allocations: 227.3 MB / 246.9 MB, free: 10.66 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001289/0.001289, allocations: 60.06 kB / 306.9 MB, free: 1.004 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09713/0.09845, allocations: 50.54 MB / 357.4 MB, free: 14.45 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.237/0.3355, allocations: 102.6 MB / 460.1 MB, free: 4.816 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.04326/0.3788, allocations: 19.64 MB / 479.7 MB, free: 1.117 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01845/0.3973, allocations: 474.8 kB / 480.2 MB, free: 0.6523 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01072/0.4081, allocations: 5.827 MB / 486 MB, free: 10.81 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008186/0.4163, allocations: 3.139 MB / 489.1 MB, free: 7.664 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003489/0.4198, allocations: 1.455 MB / 490.6 MB, free: 6.207 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.02049/0.4403, allocations: 17.62 MB / 0.4963 GB, free: 4.555 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01108/0.4515, allocations: 7.485 MB / 0.5036 GB, free: 13 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006411/0.4579, allocations: 3.189 MB / 0.5067 GB, free: 9.805 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007589/0.4656, allocations: 5.052 MB / 0.5117 GB, free: 4.738 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002458/0.4681, allocations: 484 kB / 0.5121 GB, free: 4.266 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004414/0.4725, allocations: 1.494 MB / 0.5136 GB, free: 2.77 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005702/0.4782, allocations: 3.986 MB / 0.5175 GB, free: 14.77 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007553/0.4858, allocations: 4.206 MB / 0.5216 GB, free: 10.54 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.4068/0.8927, allocations: 10.78 MB / 0.5321 GB, free: 30.95 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.924e-06/0.8927, allocations: 0.875 kB / 0.5321 GB, free: 30.95 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.8927, allocations: 0 / 0.5321 GB, free: 30.95 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004652/0.8932, allocations: 0 / 0.5321 GB, free: 30.95 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.02793/0.9212, allocations: 9.646 MB / 0.5415 GB, free: 27.59 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.712e-05/0.9212, allocations: 12 kB / 0.5415 GB, free: 27.59 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04305/0.9643, allocations: 5.232 MB / 0.5466 GB, free: 27.07 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02098/0.9853, allocations: 7.716 MB / 0.5542 GB, free: 26 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004529/0.9858, allocations: 429.2 kB / 0.5546 GB, free: 25.99 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002546/0.9884, allocations: 0.5807 MB / 0.5552 GB, free: 25.97 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03402/1.022, allocations: 16.56 MB / 0.5713 GB, free: 23 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005973/1.023, allocations: 95.72 kB / 0.5714 GB, free: 22.98 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002475/1.026, allocations: 268.8 kB / 0.5717 GB, free: 22.98 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004265/1.03, allocations: 2.765 MB / 0.5744 GB, free: 22.96 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02688/1.057, allocations: 13.62 MB / 0.5877 GB, free: 17.08 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.09579/1.153, allocations: 68.05 MB / 0.6541 GB, free: 11.87 MB / 0.4982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02076/1.173, allocations: 7.912 MB / 0.6619 GB, free: 3.836 MB / 0.4982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006536/1.18, allocations: 4.513 MB / 0.6663 GB, free: 15.32 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02358/1.204, allocations: 12.41 MB / 0.6784 GB, free: 2.793 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.281e-05/1.204, allocations: 79.58 kB / 0.6785 GB, free: 2.711 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=280): time 8.416e-06/1.204, allocations: 0 / 0.6785 GB, free: 2.711 MB / 0.5138 GB Notification: Performance of matching and sorting (n=339): time 0.1881/1.392, allocations: 50.09 MB / 0.7274 GB, free: 0.8516 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001938/1.392, allocations: 402 kB / 0.7278 GB, free: 380 kB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2097/1.602, allocations: 7.106 MB / 0.7347 GB, free: 260.6 MB / 0.5607 GB Notification: Performance of collectPreVariables (initialization): time 0.0009924/1.603, allocations: 77.55 kB / 0.7348 GB, free: 260.5 MB / 0.5607 GB Notification: Performance of collectInitialEqns (initialization): time 0.004221/1.607, allocations: 5.025 MB / 0.7397 GB, free: 257.7 MB / 0.5607 GB Notification: Performance of collectInitialBindings (initialization): time 0.001988/1.609, allocations: 1.262 MB / 0.7409 GB, free: 256.8 MB / 0.5607 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003738/1.613, allocations: 1.862 MB / 0.7427 GB, free: 255.9 MB / 0.5607 GB Notification: Performance of setup shared object (initialization): time 5.106e-05/1.613, allocations: 302.4 kB / 0.743 GB, free: 255.6 MB / 0.5607 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007146/1.62, allocations: 4.547 MB / 0.7475 GB, free: 254 MB / 0.5607 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008961/1.629, allocations: 9.269 MB / 0.7565 GB, free: 246.1 MB / 0.5607 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01505/1.644, allocations: 14.54 MB / 0.7707 GB, free: 235.6 MB / 0.5607 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001439/1.644, allocations: 45.41 kB / 0.7708 GB, free: 235.6 MB / 0.5607 GB Notification: Performance of matching and sorting (n=1184) (initialization): time 0.03853/1.683, allocations: 19.76 MB / 0.7901 GB, free: 222.9 MB / 0.5607 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001113/1.683, allocations: 72 kB / 0.7901 GB, free: 222.9 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001702/1.683, allocations: 164 kB / 0.7903 GB, free: 222.7 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01904/1.702, allocations: 7.052 MB / 0.7972 GB, free: 215.7 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005702/1.708, allocations: 1.926 MB / 0.7991 GB, free: 213.7 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03806/1.746, allocations: 33.14 MB / 0.8314 GB, free: 180.2 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008421/1.755, allocations: 0.585 MB / 0.832 GB, free: 179.6 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001945/1.757, allocations: 0.496 MB / 0.8325 GB, free: 179.1 MB / 0.5607 GB 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.006905/1.764, allocations: 3.472 MB / 0.8359 GB, free: 175.6 MB / 0.5607 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00183/1.765, allocations: 0.6314 MB / 0.8365 GB, free: 175 MB / 0.5607 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02465/1.79, allocations: 13.31 MB / 0.8495 GB, free: 161.6 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.44e-05/1.79, allocations: 36 kB / 0.8495 GB, free: 161.6 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.57e-05/1.79, allocations: 23.94 kB / 0.8495 GB, free: 161.5 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-05/1.79, allocations: 15.94 kB / 0.8496 GB, free: 161.5 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0468/1.837, allocations: 26.7 MB / 0.8756 GB, free: 134.3 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.568e-05/1.837, allocations: 4 kB / 0.8756 GB, free: 134.3 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001938/1.839, allocations: 423.3 kB / 0.876 GB, free: 133.9 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01808/1.857, allocations: 6.667 MB / 0.8826 GB, free: 127.2 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008853/1.858, allocations: 60 kB / 0.8826 GB, free: 127.2 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03748/1.896, allocations: 31.9 MB / 0.9138 GB, free: 94.88 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.165e-06/1.896, allocations: 11.94 kB / 0.9138 GB, free: 94.87 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03153/1.927, allocations: 18.77 MB / 0.9321 GB, free: 75.9 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00242/1.93, allocations: 0.688 MB / 0.9328 GB, free: 75.18 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002497/1.932, allocations: 68.48 kB / 0.9328 GB, free: 75.12 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004601/1.937, allocations: 311.5 kB / 0.9331 GB, free: 74.81 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001301/1.938, allocations: 242.2 kB / 0.9334 GB, free: 74.58 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003484/1.939, allocations: 92 kB / 0.9335 GB, free: 74.49 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.007085/1.946, allocations: 4.551 MB / 0.9379 GB, free: 69.96 MB / 0.5607 GB Notification: Performance of sort global known variables: time 5.21e-07/1.946, allocations: 0 / 0.9379 GB, free: 69.96 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.01052/1.956, allocations: 2.124 MB / 0.94 GB, free: 67.84 MB / 0.5607 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 (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.001093/1.957, allocations: 215.5 kB / 0.9402 GB, free: 67.64 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.01729/1.975, allocations: 11.57 MB / 0.9515 GB, free: 56.03 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 1.389e-05/1.975, allocations: 480 / 0.9515 GB, free: 56.03 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.007831/1.983, allocations: 5.004 MB / 0.9564 GB, free: 50.97 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008002/1.991, allocations: 0.9336 MB / 0.9573 GB, free: 50.05 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03824/2.029, allocations: 23.77 MB / 0.9805 GB, free: 26.16 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008439/2.037, allocations: 5.461 MB / 0.9858 GB, free: 20.66 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001985/2.039, allocations: 447.4 kB / 0.9862 GB, free: 20.22 MB / 0.5607 GB Notification: Performance of SimCode: time 1.503e-06/2.039, allocations: 2.625 kB / 0.9862 GB, free: 20.22 MB / 0.5607 GB Notification: Performance of Templates: time 0.4349/2.474, allocations: 206.2 MB / 1.188 GB, free: 65.71 MB / 0.5607 GB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches