Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001179/0.001179, allocations: 79.75 kB / 21.19 MB, free: 3.375 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001328/0.001328, allocations: 165 kB / 24.56 MB, free: 8 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9659/0.9659, allocations: 177.1 MB / 205 MB, free: 5.582 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_4.1.0_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_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.984e-06/1.984e-06, allocations: 3.938 kB / 273 MB, free: 1.469 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.907e-05/3.106e-05, allocations: 2.312 kB / 273 MB, free: 1.465 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.121/0.121, allocations: 18.85 MB / 291.9 MB, free: 14.29 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01092/0.1319, allocations: 5.915 MB / 297.8 MB, free: 13.71 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003623/0.1355, allocations: 187.8 kB / 298 MB, free: 13.65 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007645/0.1432, allocations: 6.3 MB / 304.3 MB, free: 11.82 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006876/0.15, allocations: 3.531 MB / 307.8 MB, free: 9.629 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002402/0.1525, allocations: 1.81 MB / 309.6 MB, free: 8.5 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01105/0.1635, allocations: 14.81 MB / 324.4 MB, free: 14.14 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009827/0.1733, allocations: 7.725 MB / 332.1 MB, free: 6.406 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01084/0.1842, allocations: 5.563 MB / 337.7 MB, free: 0.832 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007478/0.1916, allocations: 5.764 MB / 343.5 MB, free: 11.05 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002694/0.1943, allocations: 0.7461 MB / 344.2 MB, free: 10.31 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004558/0.1989, allocations: 1.654 MB / 345.9 MB, free: 8.652 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005301/0.2042, allocations: 4.586 MB / 350.5 MB, free: 4.055 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005973/0.2102, allocations: 2.805 MB / 353.3 MB, free: 1.238 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01258/0.2227, allocations: 8.939 MB / 362.2 MB, free: 8.27 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.2228, allocations: 4 kB / 362.2 MB, free: 8.266 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.2228, allocations: 0 / 362.2 MB, free: 8.266 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0003892/0.2231, allocations: 0 / 362.2 MB, free: 8.266 MB / 314.7 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.01768/0.2408, allocations: 10.61 MB / 372.8 MB, free: 13.57 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.661e-05/0.2409, allocations: 8.031 kB / 372.8 MB, free: 13.56 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02468/0.2655, allocations: 6.203 MB / 379 MB, free: 7.348 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01308/0.2786, allocations: 6.95 MB / 386 MB, free: 332 kB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003408/0.279, allocations: 431.4 kB / 386.4 MB, free: 15.9 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001918/0.2809, allocations: 0.5819 MB / 387 MB, free: 15.32 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01989/0.3008, allocations: 10.31 MB / 397.3 MB, free: 3.512 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003291/0.3011, allocations: 95.25 kB / 397.4 MB, free: 3.418 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001304/0.3024, allocations: 267.8 kB / 397.6 MB, free: 3.156 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002995/0.3054, allocations: 2.76 MB / 400.4 MB, free: 404 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01443/0.3198, allocations: 5.413 MB / 405.8 MB, free: 10.97 MB / 362.7 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.2757/0.5955, allocations: 70.04 MB / 475.8 MB, free: 58.71 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01281/0.6084, allocations: 4.936 MB / 480.8 MB, free: 58.53 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002184/0.6105, allocations: 1.398 MB / 482.2 MB, free: 58.47 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01034/0.6209, allocations: 7.389 MB / 489.6 MB, free: 55.97 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.157e-05/0.6209, allocations: 68.27 kB / 489.6 MB, free: 55.91 MB / 378.8 MB Notification: Performance of pre-optimization done (n=280): time 6.192e-06/0.6209, allocations: 0 / 489.6 MB, free: 55.91 MB / 378.8 MB Notification: Performance of matching and sorting (n=339): time 0.1062/0.7272, allocations: 39.2 MB / 0.5164 GB, free: 24.1 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.792e-05/0.7273, allocations: 401.6 kB / 0.5168 GB, free: 23.62 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007083/0.7343, allocations: 6.05 MB / 0.5227 GB, free: 17.78 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0007891/0.7351, allocations: 77.7 kB / 0.5228 GB, free: 17.7 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002169/0.7373, allocations: 5.449 MB / 0.5281 GB, free: 12.82 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001487/0.7388, allocations: 1.345 MB / 0.5294 GB, free: 11.5 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001719/0.7405, allocations: 1.943 MB / 0.5313 GB, free: 9.539 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 4.563e-05/0.7405, allocations: 476.8 kB / 0.5318 GB, free: 9.07 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002153/0.7427, allocations: 1.521 MB / 0.5333 GB, free: 7.543 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004425/0.7471, allocations: 8.68 MB / 0.5418 GB, free: 11.75 MB / 394.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01018/0.7573, allocations: 10.96 MB / 0.5525 GB, free: 14.05 MB / 410.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001578/0.7575, allocations: 48 kB / 0.5525 GB, free: 14.01 MB / 410.8 MB Notification: Performance of matching and sorting (n=1184) (initialization): time 0.02273/0.7802, allocations: 12.29 MB / 0.5645 GB, free: 1.672 MB / 410.8 MB Notification: Performance of prepare postOptimizeDAE: time 9.214e-05/0.7803, allocations: 72 kB / 0.5646 GB, free: 1.602 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001314/0.7804, allocations: 160 kB / 0.5647 GB, free: 1.445 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01275/0.7932, allocations: 5.163 MB / 0.5698 GB, free: 12.27 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004263/0.7974, allocations: 1.93 MB / 0.5717 GB, free: 10.34 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1519/0.9493, allocations: 14.42 MB / 0.5857 GB, free: 129.8 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005768/0.9551, allocations: 0.6903 MB / 0.5864 GB, free: 129.8 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001166/0.9563, allocations: 499.2 kB / 0.5869 GB, free: 129.8 MB / 426.8 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.002458/0.9587, allocations: 0.8584 MB / 0.5877 GB, free: 129.6 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00133/0.96, allocations: 0.7168 MB / 0.5884 GB, free: 129.6 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01394/0.974, allocations: 7.313 MB / 0.5956 GB, free: 129.3 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.071e-05/0.974, allocations: 38.19 kB / 0.5956 GB, free: 129.3 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.058e-05/0.9741, allocations: 19.44 kB / 0.5956 GB, free: 129.3 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.337e-05/0.9741, allocations: 15.09 kB / 0.5956 GB, free: 129.3 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03491/1.009, allocations: 16.88 MB / 0.6121 GB, free: 126.4 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.323e-05/1.009, allocations: 8.188 kB / 0.6121 GB, free: 126.4 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001849/1.011, allocations: 422.4 kB / 0.6125 GB, free: 126.4 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01876/1.03, allocations: 4.803 MB / 0.6172 GB, free: 125.8 MB / 426.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001095/1.031, allocations: 62.75 kB / 0.6173 GB, free: 125.7 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02538/1.056, allocations: 13.65 MB / 0.6306 GB, free: 114.8 MB / 426.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.304e-06/1.056, allocations: 6.906 kB / 0.6306 GB, free: 114.8 MB / 426.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01685/1.073, allocations: 9.035 MB / 0.6394 GB, free: 106 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001976/1.075, allocations: 0.6635 MB / 0.6401 GB, free: 105.5 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001227/1.076, allocations: 63.98 kB / 0.6401 GB, free: 105.5 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002454/1.079, allocations: 403.3 kB / 0.6405 GB, free: 105.1 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006616/1.079, allocations: 261.3 kB / 0.6408 GB, free: 104.8 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002081/1.08, allocations: 84 kB / 0.6409 GB, free: 104.7 MB / 426.8 MB Notification: Performance of sorting global known variables: time 0.003645/1.083, allocations: 2.833 MB / 0.6436 GB, free: 101.9 MB / 426.8 MB Notification: Performance of sort global known variables: time 1.8e-07/1.083, allocations: 0 / 0.6436 GB, free: 101.9 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.007039/1.09, allocations: 2.404 MB / 0.646 GB, free: 99.52 MB / 426.8 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.0006737/1.091, allocations: 227.9 kB / 0.6462 GB, free: 99.32 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.009955/1.101, allocations: 6.686 MB / 0.6527 GB, free: 92.84 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 1.061e-05/1.101, allocations: 8 kB / 0.6527 GB, free: 92.83 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.004013/1.105, allocations: 2.943 MB / 0.6556 GB, free: 89.81 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00476/1.11, allocations: 0.9546 MB / 0.6565 GB, free: 88.9 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02207/1.132, allocations: 15.54 MB / 0.6717 GB, free: 73.15 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002277/1.134, allocations: 2.348 MB / 0.674 GB, free: 70.78 MB / 426.8 MB Notification: Performance of simCode: alias equations: time 0.003702/1.138, allocations: 2.156 MB / 0.6761 GB, free: 68.61 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001017/1.139, allocations: 392.4 kB / 0.6765 GB, free: 68.23 MB / 426.8 MB Notification: Performance of SimCode: time 2.074e-06/1.139, allocations: 0 / 0.6765 GB, free: 68.23 MB / 426.8 MB Notification: Performance of Templates: time 0.2255/1.364, allocations: 95.56 MB / 0.7698 GB, free: 118.6 MB / 426.8 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.896487480029464]