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.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.001337/0.001337, allocations: 80.8 kB / 22.29 MB, free: 2.207 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.0009997/0.0009997, allocations: 168.2 kB / 25.7 MB, free: 8.449 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9366/0.9366, allocations: 158.6 MB / 187.6 MB, free: 2.781 MB / 170.7 MB " [Timeout remaining time 179] 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.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.Engine1b,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5062,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=5062,variableFilter="time|Inertia.phi|Inertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.663e-06/1.663e-06, allocations: 0 / 251.6 MB, free: 7.211 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.739e-05/1.905e-05, allocations: 6.25 kB / 251.6 MB, free: 7.203 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.01445/0.01447, allocations: 19.4 MB / 271 MB, free: 3.715 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01273/0.0272, allocations: 6.376 MB / 277.4 MB, free: 13.32 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00346/0.03066, allocations: 202.8 kB / 277.6 MB, free: 13.12 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007566/0.03823, allocations: 6.724 MB / 284.3 MB, free: 6.371 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009129/0.04736, allocations: 3.724 MB / 288 MB, free: 2.629 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003838/0.05119, allocations: 1.942 MB / 290 MB, free: 0.6836 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01443/0.06562, allocations: 13.51 MB / 303.5 MB, free: 3.156 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01096/0.07659, allocations: 7.621 MB / 311.1 MB, free: 11.42 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01353/0.09011, allocations: 7.357 MB / 318.4 MB, free: 4.047 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008293/0.0984, allocations: 5.702 MB / 324.2 MB, free: 14.33 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002658/0.1011, allocations: 0.7891 MB / 324.9 MB, free: 13.54 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003976/0.105, allocations: 1.748 MB / 326.7 MB, free: 11.79 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005329/0.1104, allocations: 4.851 MB / 331.5 MB, free: 6.93 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.006894/0.1173, allocations: 2.957 MB / 334.5 MB, free: 3.965 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01408/0.1313, allocations: 9.394 MB / 343.9 MB, free: 10.54 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.1313, allocations: 4 kB / 343.9 MB, free: 10.53 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1313, allocations: 0 / 343.9 MB, free: 10.53 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0004548/0.1318, allocations: 0 / 343.9 MB, free: 10.53 MB / 330.7 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.01988/0.1517, allocations: 9.411 MB / 353.3 MB, free: 1.039 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.822e-05/0.1517, allocations: 15.98 kB / 353.3 MB, free: 1.023 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2208/0.3725, allocations: 2.269 MB / 355.6 MB, free: 96.84 MB / 330.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008478/0.381, allocations: 5.286 MB / 360.9 MB, free: 96.45 MB / 330.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002982/0.3813, allocations: 451.2 kB / 361.3 MB, free: 96.43 MB / 330.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001681/0.383, allocations: 0.6102 MB / 361.9 MB, free: 96.36 MB / 330.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01274/0.3957, allocations: 8.725 MB / 370.7 MB, free: 88.62 MB / 330.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002183/0.396, allocations: 97.95 kB / 370.7 MB, free: 88.53 MB / 330.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004971/0.3965, allocations: 278.9 kB / 371 MB, free: 88.31 MB / 330.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001749/0.3982, allocations: 2.613 MB / 373.6 MB, free: 85.71 MB / 330.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009249/0.4074, allocations: 4.206 MB / 377.8 MB, free: 81.6 MB / 330.8 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.04651/0.454, allocations: 51.83 MB / 429.7 MB, free: 29.16 MB / 330.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007333/0.4613, allocations: 3.206 MB / 432.9 MB, free: 25.96 MB / 330.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00133/0.4626, allocations: 0.7375 MB / 433.6 MB, free: 25.21 MB / 330.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01079/0.4734, allocations: 6.759 MB / 440.4 MB, free: 18.59 MB / 330.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.762e-05/0.4735, allocations: 64.48 kB / 440.4 MB, free: 18.52 MB / 330.8 MB Notification: Performance of pre-optimization done (n=262): time 6.522e-06/0.4735, allocations: 4 kB / 440.4 MB, free: 18.51 MB / 330.8 MB Notification: Performance of matching and sorting (n=317): time 0.04606/0.5195, allocations: 15 MB / 455.4 MB, free: 3.91 MB / 330.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.449e-05/0.5196, allocations: 397.9 kB / 455.8 MB, free: 3.434 MB / 330.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007552/0.5272, allocations: 5.743 MB / 461.6 MB, free: 13.72 MB / 346.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0006041/0.5278, allocations: 73.7 kB / 461.6 MB, free: 13.64 MB / 346.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003019/0.5308, allocations: 4.782 MB / 466.4 MB, free: 8.84 MB / 346.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001486/0.5323, allocations: 1.228 MB / 467.7 MB, free: 7.602 MB / 346.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00224/0.5345, allocations: 1.767 MB / 469.4 MB, free: 5.82 MB / 346.8 MB Notification: Performance of setup shared object (initialization): time 7.749e-05/0.5346, allocations: 301.1 kB / 469.7 MB, free: 5.523 MB / 346.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002528/0.5371, allocations: 1.156 MB / 470.9 MB, free: 4.359 MB / 346.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005742/0.5429, allocations: 6.266 MB / 477.1 MB, free: 11.56 MB / 362.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008123/0.551, allocations: 8.018 MB / 485.2 MB, free: 1.051 MB / 362.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001499/0.5511, allocations: 52 kB / 485.2 MB, free: 1 MB / 362.8 MB Notification: Performance of matching and sorting (n=1207) (initialization): time 0.01257/0.5637, allocations: 6.491 MB / 491.7 MB, free: 10.43 MB / 378.8 MB Notification: Performance of prepare postOptimizeDAE: time 8.915e-05/0.5638, allocations: 83.94 kB / 491.8 MB, free: 10.35 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001726/0.564, allocations: 172 kB / 491.9 MB, free: 10.18 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002793/0.5668, allocations: 1.061 MB / 493 MB, free: 9.113 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004695/0.5715, allocations: 2.141 MB / 495.1 MB, free: 6.969 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006469/0.5779, allocations: 5.371 MB / 0.4888 GB, free: 1.395 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005912/0.5838, allocations: 379.7 kB / 0.4892 GB, free: 1.023 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001247/0.5851, allocations: 448 kB / 0.4896 GB, free: 0.5859 MB / 378.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 794 * 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 (1133): * Single equations (assignments): 1128 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,46,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.1439/0.729, allocations: 0.8432 MB / 0.4904 GB, free: 118.4 MB / 378.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002009/0.731, allocations: 442.9 kB / 0.4908 GB, free: 118.4 MB / 378.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004388/0.7354, allocations: 2.11 MB / 0.4929 GB, free: 118.2 MB / 378.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.755e-05/0.7354, allocations: 35.09 kB / 0.4929 GB, free: 118.2 MB / 378.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.286e-05/0.7354, allocations: 6.594 kB / 0.4929 GB, free: 118.2 MB / 378.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.993e-05/0.7354, allocations: 18.05 kB / 0.4929 GB, free: 118.2 MB / 378.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.015/0.7504, allocations: 9.129 MB / 0.5019 GB, free: 116.6 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.698e-05/0.7505, allocations: 20.81 kB / 0.5019 GB, free: 116.6 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001628/0.7521, allocations: 0.7931 MB / 0.5027 GB, free: 116.5 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00198/0.7541, allocations: 0.8071 MB / 0.5034 GB, free: 116.5 MB / 378.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002262/0.7543, allocations: 77.45 kB / 0.5035 GB, free: 116.5 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004675/0.759, allocations: 4.769 MB / 0.5082 GB, free: 113.9 MB / 378.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.687e-05/0.759, allocations: 32.94 kB / 0.5082 GB, free: 113.9 MB / 378.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005235/0.7642, allocations: 3.854 MB / 0.512 GB, free: 111.9 MB / 378.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002315/0.7665, allocations: 0.888 MB / 0.5128 GB, free: 111.9 MB / 378.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009351/0.7675, allocations: 84.98 kB / 0.5129 GB, free: 111.8 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001566/0.7691, allocations: 81.77 kB / 0.513 GB, free: 111.8 MB / 378.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004591/0.7695, allocations: 287.1 kB / 0.5133 GB, free: 111.7 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001614/0.7697, allocations: 92.33 kB / 0.5134 GB, free: 111.7 MB / 378.8 MB Notification: Performance of sorting global known variables: time 0.003151/0.7728, allocations: 2.37 MB / 0.5157 GB, free: 111.4 MB / 378.8 MB Notification: Performance of sort global known variables: time 2.71e-07/0.7728, allocations: 5.109 kB / 0.5157 GB, free: 111.4 MB / 378.8 MB Notification: Performance of remove unused functions: time 0.007658/0.7805, allocations: 2.1 MB / 0.5177 GB, free: 109.7 MB / 378.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 98 * 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 (265): * Single equations (assignments): 260 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,40,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000678/0.7812, allocations: 253 kB / 0.518 GB, free: 109.5 MB / 378.8 MB Notification: Performance of simCode: created initialization part: time 0.006337/0.7875, allocations: 4.139 MB / 0.522 GB, free: 105.9 MB / 378.8 MB Notification: Performance of simCode: created event and clocks part: time 0.0003425/0.7878, allocations: 132.2 kB / 0.5221 GB, free: 105.8 MB / 378.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0016/0.7894, allocations: 1.281 MB / 0.5234 GB, free: 104.6 MB / 378.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007579/0.797, allocations: 1.371 MB / 0.5247 GB, free: 103.4 MB / 378.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02208/0.8191, allocations: 14.79 MB / 0.5392 GB, free: 88.85 MB / 378.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003007/0.8221, allocations: 2.393 MB / 0.5415 GB, free: 86.42 MB / 378.8 MB Notification: Performance of simCode: alias equations: time 0.002976/0.8251, allocations: 0.8693 MB / 0.5424 GB, free: 85.55 MB / 378.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001993/0.8271, allocations: 1.054 MB / 0.5434 GB, free: 84.49 MB / 378.8 MB Notification: Performance of SimCode: time 2.245e-06/0.8271, allocations: 0 / 0.5434 GB, free: 84.49 MB / 378.8 MB Notification: Performance of Templates: time 0.09415/0.9212, allocations: 71.62 MB / 0.6133 GB, free: 12.84 MB / 378.8 MB " [Timeout remaining time 659] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.makefile [Timeout 660] (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=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1) [Timeout 240] 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","",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.094209277071059]