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.000952/0.000952, allocations: 77.09 kB / 20.66 MB, free: 3.844 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.0009481/0.0009481, allocations: 169 kB / 24.06 MB, free: 456 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.992/0.992, allocations: 177.1 MB / 204.5 MB, free: 5.512 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.04477/0.04477, allocations: 7.179 MB / 268.2 MB, free: 5.91 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 1.453e-06/1.453e-06, allocations: 0 / 340.1 MB, free: 10.99 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.396e-05/1.541e-05, allocations: 2.312 kB / 340.1 MB, free: 10.99 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine): time 0.006982/0.006998, allocations: 9.28 MB / 349.4 MB, free: 1.66 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.003955/0.01095, allocations: 2.827 MB / 352.2 MB, free: 14.82 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006424/0.0116, allocations: 47.81 kB / 352.2 MB, free: 14.78 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006966/0.01229, allocations: 440.9 kB / 352.7 MB, free: 14.34 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002285/0.01458, allocations: 1.652 MB / 354.3 MB, free: 12.68 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003074/0.01488, allocations: 179.6 kB / 354.5 MB, free: 12.51 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.002444/0.01733, allocations: 2.925 MB / 357.4 MB, free: 9.574 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009673/0.0183, allocations: 0.9431 MB / 358.4 MB, free: 8.598 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001518/0.01981, allocations: 1.59 MB / 360 MB, free: 7.004 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001501/0.02132, allocations: 1.457 MB / 361.4 MB, free: 5.543 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003426/0.02166, allocations: 260 kB / 361.7 MB, free: 5.289 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001015/0.02267, allocations: 0.8619 MB / 362.5 MB, free: 4.426 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008241/0.0235, allocations: 1.422 MB / 364 MB, free: 3 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008077/0.0243, allocations: 0.946 MB / 364.9 MB, free: 2.051 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002993/0.0273, allocations: 3.626 MB / 368.5 MB, free: 14.41 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.084e-06/0.0273, allocations: 0 / 368.5 MB, free: 14.41 MB / 346.7 MB Notification: Performance of FrontEnd: time 8.52e-07/0.0273, allocations: 0 / 368.5 MB, free: 14.41 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.173e-05/0.02736, allocations: 0 / 368.5 MB, free: 14.41 MB / 346.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.007297/0.03466, allocations: 5.488 MB / 374 MB, free: 8.859 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.206e-05/0.03469, allocations: 8.625 kB / 374 MB, free: 8.852 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003156/0.03785, allocations: 1.345 MB / 375.4 MB, free: 7.504 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001336/0.03918, allocations: 1.318 MB / 376.7 MB, free: 6.156 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.057e-05/0.03927, allocations: 180.7 kB / 376.9 MB, free: 5.977 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002753/0.03955, allocations: 232 kB / 377.1 MB, free: 5.75 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00464/0.04419, allocations: 4.362 MB / 381.5 MB, free: 0.7695 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.446e-05/0.04424, allocations: 27.77 kB / 381.5 MB, free: 0.7422 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002055/0.04445, allocations: 107.8 kB / 381.6 MB, free: 0.6367 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001568/0.04602, allocations: 1.818 MB / 383.4 MB, free: 14.82 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004061/0.05008, allocations: 2.24 MB / 385.6 MB, free: 12.56 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02096/0.07104, allocations: 29.8 MB / 415.4 MB, free: 13.98 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003058/0.0741, allocations: 1.32 MB / 416.8 MB, free: 12.66 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004056/0.0745, allocations: 352.7 kB / 417.1 MB, free: 12.31 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003804/0.07831, allocations: 3.195 MB / 420.3 MB, free: 9.09 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.752e-05/0.07833, allocations: 46.7 kB / 420.3 MB, free: 9.035 MB / 394.7 MB Notification: Performance of pre-optimization done (n=155): time 2.825e-06/0.07834, allocations: 0 / 420.3 MB, free: 9.035 MB / 394.7 MB Notification: Performance of matching and sorting (n=193): time 0.007762/0.0861, allocations: 3.914 MB / 424.3 MB, free: 5.125 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.17e-05/0.08613, allocations: 69.41 kB / 424.3 MB, free: 5.047 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002134/0.08826, allocations: 2.267 MB / 426.6 MB, free: 2.734 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.661e-05/0.08833, allocations: 53.7 kB / 426.6 MB, free: 2.676 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001448/0.08978, allocations: 2.623 MB / 429.3 MB, free: 24 kB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004449/0.09022, allocations: 0.7637 MB / 430 MB, free: 15.25 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000908/0.09113, allocations: 1.037 MB / 431.1 MB, free: 14.2 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000146/0.09128, allocations: 0.5352 MB / 431.6 MB, free: 13.66 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005375/0.09181, allocations: 405.2 kB / 432 MB, free: 13.26 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00274/0.09455, allocations: 4.245 MB / 436.2 MB, free: 7.25 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003784/0.09834, allocations: 5.225 MB / 441.5 MB, free: 284 kB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.723e-05/0.09838, allocations: 28 kB / 441.5 MB, free: 256 kB / 410.7 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.1423/0.2407, allocations: 3.802 MB / 445.3 MB, free: 125.3 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.208e-05/0.2407, allocations: 45.16 kB / 445.3 MB, free: 125.3 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001002/0.2408, allocations: 92.31 kB / 445.4 MB, free: 125.3 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001108/0.2419, allocations: 0.4893 MB / 445.9 MB, free: 125.3 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001527/0.2435, allocations: 0.9975 MB / 446.9 MB, free: 125.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004031/0.2475, allocations: 7.995 MB / 454.9 MB, free: 119.2 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001628/0.2491, allocations: 188.1 kB / 455.1 MB, free: 119.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002048/0.2493, allocations: 248.7 kB / 455.3 MB, free: 119.2 MB / 410.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.0008291/0.2501, allocations: 0.5267 MB / 455.9 MB, free: 119 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002244/0.2504, allocations: 286.5 kB / 456.2 MB, free: 119 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001437/0.2518, allocations: 1.278 MB / 457.4 MB, free: 118.8 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.583e-05/0.2519, allocations: 20.91 kB / 457.4 MB, free: 118.8 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.231e-06/0.2519, allocations: 6.188 kB / 457.5 MB, free: 118.8 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.036e-05/0.2519, allocations: 9.844 kB / 457.5 MB, free: 118.8 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005161/0.257, allocations: 4.556 MB / 462 MB, free: 117.9 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.082e-06/0.257, allocations: 7.312 kB / 462 MB, free: 117.9 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004306/0.2575, allocations: 214.2 kB / 462.2 MB, free: 117.9 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006728/0.2581, allocations: 347.2 kB / 462.6 MB, free: 117.9 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.442e-05/0.2582, allocations: 40.41 kB / 462.6 MB, free: 117.9 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003174/0.2614, allocations: 6.805 MB / 469.4 MB, free: 112 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.322e-06/0.2614, allocations: 7.281 kB / 469.4 MB, free: 112 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002155/0.2635, allocations: 1.844 MB / 471.3 MB, free: 111.1 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002221/0.2638, allocations: 215 kB / 471.5 MB, free: 110.9 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001633/0.2639, allocations: 45.45 kB / 471.5 MB, free: 110.9 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003882/0.2643, allocations: 35.47 kB / 471.6 MB, free: 110.9 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001815/0.2645, allocations: 134.1 kB / 471.7 MB, free: 110.9 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.506e-05/0.2646, allocations: 45.5 kB / 471.7 MB, free: 110.9 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0007723/0.2653, allocations: 0.9269 MB / 472.7 MB, free: 110.6 MB / 410.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2653, allocations: 0 / 472.7 MB, free: 110.6 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002384/0.2677, allocations: 0.8198 MB / 473.5 MB, free: 110.5 MB / 410.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.0002378/0.268, allocations: 170.9 kB / 473.7 MB, free: 110.4 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002398/0.2704, allocations: 2.738 MB / 476.4 MB, free: 109.2 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.2704, allocations: 4.188 kB / 476.4 MB, free: 109.2 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000787/0.2711, allocations: 1.181 MB / 477.6 MB, free: 108.5 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008393/0.272, allocations: 337.2 kB / 477.9 MB, free: 108.3 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006593/0.2786, allocations: 6.091 MB / 484 MB, free: 105.2 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008516/0.2794, allocations: 1.022 MB / 485 MB, free: 104.9 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0007602/0.2802, allocations: 347.1 kB / 485.4 MB, free: 104.8 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004825/0.2807, allocations: 454.3 kB / 485.8 MB, free: 104.7 MB / 410.7 MB Notification: Performance of SimCode: time 8.01e-07/0.2807, allocations: 0 / 485.8 MB, free: 104.7 MB / 410.7 MB Notification: Performance of Templates: time 0.03384/0.3145, allocations: 26.54 MB / 0.5003 GB, free: 88.7 MB / 410.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.97764114709571]