Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.PistonEngine.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.0009672/0.0009672, allocations: 92.22 kB / 19.65 MB, free: 280 kB / 13.93 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.001141/0.001141, allocations: 169 kB / 23.03 MB, free: 1.547 MB / 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 1.015/1.015, allocations: 177.1 MB / 203.4 MB, free: 5.617 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.7.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.7.0/package.mo): time 0.02916/0.02916, allocations: 7.183 MB / 267.1 MB, free: 6.047 MB / 250.7 MB " [Timeout remaining time 180] Using package PlanarMechanics with version 1.7.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.7.0/package.mo) 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(PlanarMechanics.Examples.PistonEngine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PistonEngine") translateModel(PlanarMechanics.Examples.PistonEngine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PistonEngine") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.595e-06/2.595e-06, allocations: 0 / 338.9 MB, free: 10.22 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.785e-05/3.045e-05, allocations: 8.703 kB / 338.9 MB, free: 10.21 MB / 266.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine): time 0.006369/0.006399, allocations: 9.454 MB / 348.3 MB, free: 0.7109 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005114/0.01151, allocations: 2.868 MB / 351.2 MB, free: 13.84 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001185/0.0127, allocations: 43.88 kB / 351.2 MB, free: 13.79 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008976/0.0136, allocations: 436.9 kB / 351.7 MB, free: 13.36 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00317/0.01677, allocations: 1.648 MB / 353.3 MB, free: 11.71 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004104/0.01718, allocations: 183.5 kB / 353.5 MB, free: 11.53 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.002971/0.02015, allocations: 2.94 MB / 356.4 MB, free: 8.578 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001201/0.02135, allocations: 0.9314 MB / 357.4 MB, free: 7.613 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001832/0.02318, allocations: 1.59 MB / 358.9 MB, free: 6.02 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001975/0.02516, allocations: 1.461 MB / 360.4 MB, free: 4.555 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004108/0.02557, allocations: 260 kB / 360.7 MB, free: 4.301 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001227/0.02679, allocations: 0.858 MB / 361.5 MB, free: 3.441 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009257/0.02772, allocations: 1.422 MB / 362.9 MB, free: 2.016 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009672/0.02869, allocations: 0.9421 MB / 363.9 MB, free: 1.07 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004523/0.03321, allocations: 3.626 MB / 367.5 MB, free: 13.43 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.03321, allocations: 4 kB / 367.5 MB, free: 13.42 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.03322, allocations: 3.938 kB / 367.5 MB, free: 13.42 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001074/0.03332, allocations: 0 / 367.5 MB, free: 13.42 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1310 * Number of variables: 1310 Notification: Performance of Generate backend data structure: time 0.008409/0.04173, allocations: 5.543 MB / 373.1 MB, free: 7.812 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.729e-05/0.04178, allocations: 12.62 kB / 373.1 MB, free: 7.801 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004257/0.04604, allocations: 2.284 MB / 375.4 MB, free: 5.512 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001779/0.04782, allocations: 1.436 MB / 376.8 MB, free: 4.047 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.603e-05/0.04791, allocations: 180.8 kB / 377 MB, free: 3.867 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003155/0.04823, allocations: 239.9 kB / 377.2 MB, free: 3.633 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007889/0.05612, allocations: 4.769 MB / 382 MB, free: 14.24 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.109e-05/0.05618, allocations: 31.75 kB / 382 MB, free: 14.21 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002347/0.05641, allocations: 107.9 kB / 382.1 MB, free: 14.11 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001829/0.05824, allocations: 2.013 MB / 384.1 MB, free: 12.09 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007145/0.06539, allocations: 2.764 MB / 386.9 MB, free: 9.316 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1867/0.2521, allocations: 29.99 MB / 416.9 MB, free: 48.46 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003997/0.2561, allocations: 1.416 MB / 418.3 MB, free: 48.4 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007806/0.2568, allocations: 406 kB / 418.7 MB, free: 48.38 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005661/0.2625, allocations: 3.398 MB / 422.1 MB, free: 48 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.722e-05/0.2625, allocations: 45.27 kB / 422.1 MB, free: 47.95 MB / 330.7 MB Notification: Performance of pre-optimization done (n=155): time 3.006e-06/0.2625, allocations: 3.375 kB / 422.1 MB, free: 47.95 MB / 330.7 MB Notification: Performance of matching and sorting (n=193): time 0.008168/0.2707, allocations: 4.576 MB / 426.7 MB, free: 47.18 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.333e-05/0.2707, allocations: 68.25 kB / 426.8 MB, free: 47.11 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002327/0.2731, allocations: 2.286 MB / 429.1 MB, free: 46.68 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.582e-05/0.2731, allocations: 51.66 kB / 429.1 MB, free: 46.64 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009793/0.2741, allocations: 2.6 MB / 431.7 MB, free: 45.08 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000463/0.2746, allocations: 0.7603 MB / 432.5 MB, free: 44.63 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009224/0.2755, allocations: 1.01 MB / 433.5 MB, free: 44.52 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.934e-05/0.2756, allocations: 0.5248 MB / 434 MB, free: 44.04 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008305/0.2764, allocations: 0.5019 MB / 434.5 MB, free: 44.02 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001924/0.2783, allocations: 4.35 MB / 438.9 MB, free: 38.99 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003563/0.2819, allocations: 5.368 MB / 444.2 MB, free: 33.12 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.813e-05/0.282, allocations: 28 kB / 444.3 MB, free: 33.09 MB / 330.7 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.005126/0.2871, allocations: 4.113 MB / 448.4 MB, free: 29.38 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.794e-05/0.2871, allocations: 46.41 kB / 448.4 MB, free: 29.34 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.441e-05/0.2872, allocations: 96.16 kB / 448.5 MB, free: 29.24 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001013/0.2882, allocations: 0.5385 MB / 449.1 MB, free: 28.82 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001662/0.2899, allocations: 1.02 MB / 450.1 MB, free: 27.92 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004828/0.2947, allocations: 8.339 MB / 458.4 MB, free: 19.36 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002487/0.2972, allocations: 235.9 kB / 458.6 MB, free: 19.13 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003645/0.2975, allocations: 284 kB / 458.9 MB, free: 18.86 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 414 * Number of states: 0 () * Number of discrete variables: 24 (revolutePiston.cylinderColor[3],revolutePiston.cylinderColor[2],revolutePiston.cylinderColor[1],bodyPiston.sphereColor[3],bodyPiston.sphereColor[2],bodyPiston.sphereColor[1],pistonRod.color[3],pistonRod.color[2],pistonRod.color[1],revoluteDisc.cylinderColor[3],revoluteDisc.cylinderColor[2],revoluteDisc.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],fixedTranslationDisc.color[3],fixedTranslationDisc.color[2],fixedTranslationDisc.color[1],revoluteDrive.cylinderColor[3],revoluteDrive.cylinderColor[2],revoluteDrive.cylinderColor[1],bodyDrive.sphereColor[3],bodyDrive.sphereColor[2],bodyDrive.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (560): * Single equations (assignments): 553 * Array equations: 4 * 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,19,56.0%), (2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,8)} Notification: Performance of prepare postOptimizeDAE: time 0.001107/0.2986, allocations: 0.5182 MB / 459.4 MB, free: 18.33 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003079/0.299, allocations: 298.3 kB / 459.7 MB, free: 18.04 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001742/0.3007, allocations: 1.412 MB / 461.1 MB, free: 16.61 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.066e-05/0.3008, allocations: 31.98 kB / 461.2 MB, free: 16.57 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.264e-06/0.3008, allocations: 11.28 kB / 461.2 MB, free: 16.57 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.242e-05/0.3008, allocations: 7.969 kB / 461.2 MB, free: 16.56 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006227/0.307, allocations: 4.755 MB / 465.9 MB, free: 11.69 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-05/0.307, allocations: 4 kB / 465.9 MB, free: 11.69 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004783/0.3075, allocations: 239.6 kB / 466.2 MB, free: 11.45 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000789/0.3083, allocations: 412.3 kB / 466.6 MB, free: 11.04 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.837e-05/0.3083, allocations: 43.05 kB / 466.6 MB, free: 11 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003552/0.3119, allocations: 7.063 MB / 473.7 MB, free: 3.605 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.549e-06/0.3119, allocations: 4 kB / 473.7 MB, free: 3.602 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002672/0.3146, allocations: 2.03 MB / 475.7 MB, free: 1.461 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004911/0.3151, allocations: 223.2 kB / 475.9 MB, free: 1.242 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001726/0.3152, allocations: 41.92 kB / 476 MB, free: 1.207 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004503/0.3157, allocations: 79.91 kB / 476.1 MB, free: 1.129 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002011/0.3159, allocations: 129 kB / 476.2 MB, free: 1 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.694e-05/0.316, allocations: 59.98 kB / 476.2 MB, free: 0.9414 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001149/0.3171, allocations: 1.005 MB / 477.3 MB, free: 15.92 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3171, allocations: 4.031 kB / 477.3 MB, free: 15.91 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.003183/0.3203, allocations: 0.8185 MB / 478.1 MB, free: 15.1 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 2 (revoluteDrive.phi,revoluteDrive.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 (135): * Single equations (assignments): 128 * Array equations: 4 * 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,15,56.0%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,8)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003235/0.3206, allocations: 163.8 kB / 478.2 MB, free: 14.93 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.004341/0.325, allocations: 2.914 MB / 481.1 MB, free: 11.98 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.981e-06/0.325, allocations: 0 / 481.1 MB, free: 11.98 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001305/0.3263, allocations: 1.245 MB / 482.4 MB, free: 10.68 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00129/0.3276, allocations: 331.6 kB / 482.7 MB, free: 10.37 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009083/0.3366, allocations: 6.139 MB / 488.9 MB, free: 4.117 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009987/0.3376, allocations: 1.026 MB / 489.9 MB, free: 3.07 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.002048/0.3397, allocations: 1.11 MB / 491 MB, free: 1.957 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003156/0.34, allocations: 172.5 kB / 491.2 MB, free: 1.789 MB / 346.7 MB Notification: Performance of SimCode: time 1.823e-06/0.34, allocations: 0 / 491.2 MB, free: 1.789 MB / 346.7 MB Notification: Performance of Templates: time 0.03621/0.3762, allocations: 24.49 MB / 0.5036 GB, free: 9.691 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f PlanarMechanics_PlanarMechanics.Examples.PistonEngine.makefile [Timeout 660] (rm -f PlanarMechanics_PlanarMechanics.Examples.PistonEngine.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.PistonEngine.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.PistonEngine.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.PistonEngine.sim & ./PlanarMechanics_PlanarMechanics.Examples.PistonEngine -abortSlowSimulation -alarm=240 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.PistonEngine.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.745634812861681]