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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00148/0.00148, allocations: 119.1 kB / 20.45 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00167/0.00167, allocations: 209.5 kB / 23.72 MB, free: 4.391 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.5/1.5, allocations: 230.5 MB / 257.4 MB, free: 7.75 MB / 206.1 MB " [Timeout remaining time 178] 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=5002,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=5002,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002095/0.002095, allocations: 55.91 kB / 378.3 MB, free: 2.273 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2533/0.2554, allocations: 53.4 MB / 431.7 MB, free: 6.484 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.02076/0.2762, allocations: 16.72 MB / 448.4 MB, free: 5.688 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01437/0.2905, allocations: 5.796 MB / 454.2 MB, free: 15.88 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003973/0.2945, allocations: 190.9 kB / 454.4 MB, free: 15.69 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01179/0.3063, allocations: 5.681 MB / 460 MB, free: 9.992 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008732/0.315, allocations: 3.416 MB / 463.5 MB, free: 6.562 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003877/0.3189, allocations: 1.576 MB / 465 MB, free: 4.984 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01794/0.3369, allocations: 12.71 MB / 477.7 MB, free: 8.254 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009998/0.3469, allocations: 5.912 MB / 483.7 MB, free: 2.254 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007954/0.3548, allocations: 3.634 MB / 487.3 MB, free: 14.61 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009349/0.3642, allocations: 4.837 MB / 492.1 MB, free: 9.758 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002817/0.367, allocations: 0.7148 MB / 492.8 MB, free: 9.043 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004647/0.3716, allocations: 1.561 MB / 494.4 MB, free: 7.48 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006162/0.3778, allocations: 4.309 MB / 498.7 MB, free: 3.16 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007262/0.385, allocations: 3.399 MB / 0.4903 GB, free: 15.74 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01884/0.4039, allocations: 13.73 MB / 0.5037 GB, free: 1.957 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.4039, allocations: 0 / 0.5037 GB, free: 1.957 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.4039, allocations: 0 / 0.5037 GB, free: 1.957 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004256/0.4043, allocations: 0 / 0.5037 GB, free: 1.957 MB / 414.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.02891/0.4332, allocations: 9.819 MB / 0.5133 GB, free: 8.051 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.847e-05/0.4333, allocations: 11.98 kB / 0.5134 GB, free: 8.039 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04794/0.4812, allocations: 5.297 MB / 0.5185 GB, free: 2.73 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02297/0.5042, allocations: 7.838 MB / 0.5262 GB, free: 10.8 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005334/0.5047, allocations: 431.4 kB / 0.5266 GB, free: 10.38 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002648/0.5074, allocations: 0.601 MB / 0.5272 GB, free: 9.777 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.421/0.9284, allocations: 16.8 MB / 0.5436 GB, free: 89.73 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003505/0.9288, allocations: 100.2 kB / 0.5437 GB, free: 89.7 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000965/0.9297, allocations: 264.7 kB / 0.5439 GB, free: 89.56 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003851/0.9336, allocations: 2.768 MB / 0.5466 GB, free: 89.05 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02451/0.9581, allocations: 13.59 MB / 0.5599 GB, free: 81.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.07682/1.035, allocations: 61.44 MB / 0.6199 GB, free: 19.23 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01798/1.053, allocations: 7.208 MB / 0.6269 GB, free: 12.02 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005308/1.058, allocations: 4.248 MB / 0.6311 GB, free: 7.77 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02099/1.079, allocations: 10.7 MB / 0.6415 GB, free: 13.16 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.127e-05/1.079, allocations: 72.48 kB / 0.6416 GB, free: 13.08 MB / 462.1 MB Notification: Performance of pre-optimization done (n=280): time 6.612e-06/1.079, allocations: 0 / 0.6416 GB, free: 13.08 MB / 462.1 MB Notification: Performance of matching and sorting (n=339): time 0.1982/1.277, allocations: 50.47 MB / 0.6909 GB, free: 11.16 MB / 0.4982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002502/1.278, allocations: 398.1 kB / 0.6913 GB, free: 10.69 MB / 0.4982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01334/1.291, allocations: 6.764 MB / 0.6979 GB, free: 4.125 MB / 0.4982 GB Notification: Performance of collectPreVariables (initialization): time 0.0008712/1.292, allocations: 77.7 kB / 0.6979 GB, free: 4.043 MB / 0.4982 GB Notification: Performance of collectInitialEqns (initialization): time 0.005059/1.297, allocations: 5.222 MB / 0.703 GB, free: 14.91 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.002241/1.299, allocations: 1.318 MB / 0.7043 GB, free: 13.58 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004971/1.304, allocations: 1.881 MB / 0.7062 GB, free: 11.69 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 0.000134/1.304, allocations: 301.1 kB / 0.7065 GB, free: 11.39 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007807/1.312, allocations: 4.547 MB / 0.7109 GB, free: 6.836 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01206/1.324, allocations: 9.493 MB / 0.7202 GB, free: 11 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0221/1.346, allocations: 14.53 MB / 0.7344 GB, free: 10.19 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003201/1.347, allocations: 51.94 kB / 0.7344 GB, free: 10.14 MB / 0.545 GB Notification: Performance of matching and sorting (n=1184) (initialization): time 0.3044/1.651, allocations: 19.66 MB / 0.7536 GB, free: 179.2 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001183/1.651, allocations: 73.22 kB / 0.7537 GB, free: 179.2 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002724/1.651, allocations: 164.9 kB / 0.7538 GB, free: 179.2 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02047/1.672, allocations: 7.054 MB / 0.7607 GB, free: 178.4 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006052/1.678, allocations: 1.919 MB / 0.7626 GB, free: 178.4 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04415/1.722, allocations: 34.57 MB / 0.7964 GB, free: 152.8 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008599/1.731, allocations: 0.5851 MB / 0.7969 GB, free: 152.2 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001826/1.732, allocations: 0.4951 MB / 0.7974 GB, free: 151.8 MB / 0.545 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.006818/1.739, allocations: 3.478 MB / 0.8008 GB, free: 148.4 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001888/1.741, allocations: 0.6136 MB / 0.8014 GB, free: 148.1 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02664/1.768, allocations: 13.19 MB / 0.8143 GB, free: 134.9 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.632e-05/1.768, allocations: 36.72 kB / 0.8143 GB, free: 134.9 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.49e-05/1.768, allocations: 16 kB / 0.8143 GB, free: 134.9 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000101/1.768, allocations: 25.06 kB / 0.8144 GB, free: 134.8 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05042/1.818, allocations: 24.11 MB / 0.8379 GB, free: 110.5 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.325e-05/1.819, allocations: 11.98 kB / 0.8379 GB, free: 110.5 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001967/1.82, allocations: 417.1 kB / 0.8383 GB, free: 110.1 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01914/1.84, allocations: 6.648 MB / 0.8448 GB, free: 103.4 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001077/1.841, allocations: 60 kB / 0.8449 GB, free: 103.4 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04037/1.881, allocations: 33.28 MB / 0.8774 GB, free: 70.01 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.662e-06/1.881, allocations: 11.94 kB / 0.8774 GB, free: 70 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03168/1.913, allocations: 18.68 MB / 0.8956 GB, free: 51.47 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001834/1.915, allocations: 0.5837 MB / 0.8962 GB, free: 51.07 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002094/1.917, allocations: 67.77 kB / 0.8962 GB, free: 51.01 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004488/1.921, allocations: 303.5 kB / 0.8965 GB, free: 50.71 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001218/1.922, allocations: 258.6 kB / 0.8968 GB, free: 50.46 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005344/1.923, allocations: 91.98 kB / 0.8969 GB, free: 50.37 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.006147/1.929, allocations: 4.11 MB / 0.9009 GB, free: 46.27 MB / 0.545 GB Notification: Performance of sort global known variables: time 7.1e-08/1.929, allocations: 4.062 kB / 0.9009 GB, free: 46.27 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008182/1.937, allocations: 2.108 MB / 0.9029 GB, free: 44.17 MB / 0.545 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.0007943/1.938, allocations: 213.1 kB / 0.9032 GB, free: 43.97 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01723/1.955, allocations: 11.1 MB / 0.914 GB, free: 32.83 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.242e-05/1.955, allocations: 0 / 0.914 GB, free: 32.83 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.007785/1.963, allocations: 4.667 MB / 0.9186 GB, free: 28.11 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007775/1.971, allocations: 0.8993 MB / 0.9194 GB, free: 27.21 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0372/2.008, allocations: 19.88 MB / 0.9389 GB, free: 7.215 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007429/2.015, allocations: 5.065 MB / 0.9438 GB, free: 2.109 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005907/2.021, allocations: 2.546 MB / 0.9463 GB, free: 15.55 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001428/2.023, allocations: 363.4 kB / 0.9466 GB, free: 15.2 MB / 0.5607 GB Notification: Performance of SimCode: time 1.002e-06/2.023, allocations: 0 / 0.9466 GB, free: 15.2 MB / 0.5607 GB Notification: Performance of Templates: time 0.385/2.408, allocations: 99.37 MB / 1.044 GB, free: 117.1 MB / 0.5607 GB " [Timeout remaining time 658] make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1a/Engine1a.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.504703188315034]