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.001455/0.001455, allocations: 110.2 kB / 18.25 MB, free: 4.898 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.00158/0.00158, allocations: 195.3 kB / 19.18 MB, free: 3.977 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.4/1.4, allocations: 205.1 MB / 225 MB, free: 12.3 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.001206/0.001206, allocations: 59.92 kB / 281.3 MB, free: 3.148 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08815/0.08936, allocations: 46.63 MB / 328 MB, free: 4.457 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.02047/0.1099, allocations: 20.59 MB / 348.6 MB, free: 15.77 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01427/0.1242, allocations: 6.212 MB / 354.8 MB, free: 9.535 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0047/0.1289, allocations: 167.4 kB / 354.9 MB, free: 9.371 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01182/0.1408, allocations: 6.351 MB / 361.3 MB, free: 3 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00939/0.1503, allocations: 3.459 MB / 364.7 MB, free: 15.52 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004149/0.1545, allocations: 1.658 MB / 366.4 MB, free: 13.86 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01573/0.1702, allocations: 11.68 MB / 378.1 MB, free: 2.164 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1829/0.3532, allocations: 8.079 MB / 386.1 MB, free: 14.77 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008932/0.3622, allocations: 3.772 MB / 389.9 MB, free: 14.59 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009059/0.3712, allocations: 4.973 MB / 394.9 MB, free: 14.13 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003398/0.3747, allocations: 0.7519 MB / 395.6 MB, free: 14.13 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005371/0.3801, allocations: 1.703 MB / 397.3 MB, free: 14.13 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00577/0.3859, allocations: 4.394 MB / 401.7 MB, free: 13.75 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008613/0.3945, allocations: 4.671 MB / 406.4 MB, free: 11.61 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01492/0.4095, allocations: 13.88 MB / 420.3 MB, free: 3.531 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.937e-06/0.4095, allocations: 3.188 kB / 420.3 MB, free: 3.531 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.417e-06/0.4095, allocations: 0 / 420.3 MB, free: 3.531 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0005688/0.4101, allocations: 3.938 kB / 420.3 MB, free: 3.527 MB / 318.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.02991/0.44, allocations: 10.05 MB / 430.3 MB, free: 9.91 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.015e-05/0.4401, allocations: 12.03 kB / 430.4 MB, free: 9.898 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04862/0.4887, allocations: 5.283 MB / 435.6 MB, free: 4.598 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02143/0.5102, allocations: 8.371 MB / 444 MB, free: 12.48 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005037/0.5107, allocations: 445.9 kB / 444.5 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003079/0.5138, allocations: 0.6129 MB / 445.1 MB, free: 11.53 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03986/0.5537, allocations: 17.13 MB / 462.2 MB, free: 9.621 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006072/0.5544, allocations: 103.6 kB / 462.3 MB, free: 9.551 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002828/0.5572, allocations: 279.9 kB / 462.6 MB, free: 9.328 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005459/0.5627, allocations: 2.854 MB / 465.4 MB, free: 6.508 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03321/0.5959, allocations: 14.04 MB / 479.5 MB, free: 8.734 MB / 382.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.1305/0.7265, allocations: 69.43 MB / 0.536 GB, free: 2.078 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2044/0.9309, allocations: 7.453 MB / 0.5433 GB, free: 153.7 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007334/0.9383, allocations: 4.466 MB / 0.5477 GB, free: 151.9 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02086/0.9592, allocations: 12.76 MB / 0.5601 GB, free: 145.8 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.585e-05/0.9593, allocations: 68.31 kB / 0.5602 GB, free: 145.8 MB / 446.1 MB Notification: Performance of pre-optimization done (n=293): time 5.942e-06/0.9593, allocations: 0 / 0.5602 GB, free: 145.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=365): time 0.1455/1.105, allocations: 43.53 MB / 0.6027 GB, free: 116.1 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001302/1.105, allocations: 402.3 kB / 0.6031 GB, free: 115.6 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009923/1.115, allocations: 7.385 MB / 0.6103 GB, free: 108.3 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009986/1.116, allocations: 82.95 kB / 0.6104 GB, free: 108.2 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002824/1.119, allocations: 5.225 MB / 0.6155 GB, free: 103 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001568/1.12, allocations: 1.358 MB / 0.6168 GB, free: 101.6 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002661/1.123, allocations: 1.94 MB / 0.6187 GB, free: 99.66 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.81e-05/1.123, allocations: 301.1 kB / 0.619 GB, free: 99.36 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005154/1.128, allocations: 4.29 MB / 0.6232 GB, free: 95.07 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006917/1.135, allocations: 9.191 MB / 0.6322 GB, free: 83.5 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01341/1.149, allocations: 14.25 MB / 0.6461 GB, free: 66.88 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001305/1.149, allocations: 48 kB / 0.6461 GB, free: 66.84 MB / 446.1 MB Notification: Performance of matching and sorting (n=1238) (initialization): time 0.03332/1.182, allocations: 18.01 MB / 0.6637 GB, free: 48.78 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002129/1.182, allocations: 79.94 kB / 0.6638 GB, free: 48.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002573/1.183, allocations: 168 kB / 0.6639 GB, free: 48.54 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01471/1.197, allocations: 5.339 MB / 0.6692 GB, free: 43.19 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006368/1.204, allocations: 2.012 MB / 0.6711 GB, free: 41.17 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2266/1.43, allocations: 31.11 MB / 0.7015 GB, free: 126 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009091/1.44, allocations: 0.5512 MB / 0.702 GB, free: 126 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001807/1.441, allocations: 0.5155 MB / 0.7025 GB, free: 126 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.008069/1.449, allocations: 3.624 MB / 0.7061 GB, free: 125.4 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001641/1.451, allocations: 0.6662 MB / 0.7067 GB, free: 125.4 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02221/1.473, allocations: 11.27 MB / 0.7177 GB, free: 121.8 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.338e-05/1.473, allocations: 37.38 kB / 0.7178 GB, free: 121.8 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.031e-05/1.474, allocations: 23.47 kB / 0.7178 GB, free: 121.8 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.683e-05/1.474, allocations: 14.81 kB / 0.7178 GB, free: 121.8 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04017/1.514, allocations: 22.16 MB / 0.7395 GB, free: 114.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.244e-05/1.514, allocations: 7.625 kB / 0.7395 GB, free: 114.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002154/1.516, allocations: 457.9 kB / 0.7399 GB, free: 114 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01379/1.53, allocations: 5.026 MB / 0.7448 GB, free: 113.1 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008501/1.531, allocations: 70.81 kB / 0.7449 GB, free: 113 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03603/1.567, allocations: 30.52 MB / 0.7747 GB, free: 86.21 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.353e-06/1.567, allocations: 8 kB / 0.7747 GB, free: 86.21 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02704/1.594, allocations: 16.5 MB / 0.7908 GB, free: 69.9 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004307/1.598, allocations: 1.339 MB / 0.7921 GB, free: 68.74 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002172/1.6, allocations: 68.62 kB / 0.7922 GB, free: 68.67 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004544/1.605, allocations: 263.6 kB / 0.7924 GB, free: 68.41 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001052/1.606, allocations: 272.8 kB / 0.7927 GB, free: 68.15 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002897/1.606, allocations: 101 kB / 0.7928 GB, free: 68.06 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.007706/1.614, allocations: 4.734 MB / 0.7974 GB, free: 63.36 MB / 446.1 MB Notification: Performance of sort global known variables: time 8.72e-07/1.614, allocations: 0.7656 kB / 0.7974 GB, free: 63.36 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.01106/1.625, allocations: 2.178 MB / 0.7995 GB, free: 61.19 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.001061/1.626, allocations: 228 kB / 0.7997 GB, free: 60.97 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.02476/1.651, allocations: 14.32 MB / 0.8137 GB, free: 46.71 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.739e-05/1.651, allocations: 1.875 kB / 0.8137 GB, free: 46.71 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006914/1.658, allocations: 4.475 MB / 0.8181 GB, free: 42.2 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007922/1.666, allocations: 1.035 MB / 0.8191 GB, free: 41.2 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03748/1.703, allocations: 20.16 MB / 0.8388 GB, free: 21.03 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008263/1.712, allocations: 5.675 MB / 0.8443 GB, free: 15.31 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002089/1.714, allocations: 479.3 kB / 0.8448 GB, free: 14.84 MB / 446.1 MB Notification: Performance of SimCode: time 1.072e-06/1.714, allocations: 0 / 0.8448 GB, free: 14.84 MB / 446.1 MB Notification: Performance of Templates: time 0.6931/2.407, allocations: 213.2 MB / 1.053 GB, free: 132.5 MB / 462.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b/Engine1b.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches