Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.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.001691/0.001691, allocations: 77.23 kB / 19.76 MB, free: 2.031 MB / 14.72 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.001875/0.001875, allocations: 162.4 kB / 23.01 MB, free: 4.945 MB / 14.72 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.393/1.393, allocations: 177.2 MB / 203.4 MB, free: 8.965 MB / 190.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04694/0.04694, allocations: 7.128 MB / 266.9 MB, free: 9.715 MB / 254.1 MB " [Timeout remaining time 180] Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.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_DynamicStateSelection,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection") translateModel(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection") [Timeout 660] "Notification: PlanarMechanics requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002093/0.002093, allocations: 67.91 kB / 393.4 MB, free: 10.45 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.1038, allocations: 55.45 MB / 448.8 MB, free: 2.902 MB / 414.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection): time 0.01119/0.115, allocations: 8.487 MB / 457.3 MB, free: 10.37 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.005621/0.1206, allocations: 2.76 MB / 460.1 MB, free: 7.605 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006797/0.1213, allocations: 43.88 kB / 460.1 MB, free: 7.562 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009154/0.1222, allocations: 437 kB / 460.6 MB, free: 7.133 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003616/0.1258, allocations: 1.579 MB / 462.1 MB, free: 5.547 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004581/0.1262, allocations: 175.8 kB / 462.3 MB, free: 5.375 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.003394/0.1296, allocations: 2.845 MB / 465.2 MB, free: 2.523 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001193/0.1308, allocations: 0.8802 MB / 466 MB, free: 1.617 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0014/0.1322, allocations: 1.047 MB / 467.1 MB, free: 0.5664 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002322/0.1346, allocations: 1.514 MB / 468.6 MB, free: 15.05 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004682/0.135, allocations: 260 kB / 468.8 MB, free: 14.79 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001478/0.1365, allocations: 0.7918 MB / 469.6 MB, free: 14 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001311/0.1378, allocations: 1.367 MB / 471 MB, free: 12.63 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001372/0.1392, allocations: 1.242 MB / 472.2 MB, free: 11.38 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006801/0.146, allocations: 5.474 MB / 477.7 MB, free: 5.883 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.149e-06/0.146, allocations: 0 / 477.7 MB, free: 5.883 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.146, allocations: 4 kB / 477.7 MB, free: 5.879 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.000121/0.1461, allocations: 0 / 477.7 MB, free: 5.879 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1302 * Number of variables: 1302 Notification: Performance of Generate backend data structure: time 0.0126/0.1587, allocations: 5.276 MB / 483 MB, free: 0.543 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.95e-05/0.1588, allocations: 8.625 kB / 483 MB, free: 0.5352 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1964/0.3551, allocations: 1.903 MB / 484.9 MB, free: 68.87 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002723/0.3578, allocations: 1.446 MB / 486.4 MB, free: 68.61 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001076/0.3579, allocations: 177.4 kB / 486.5 MB, free: 68.61 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003842/0.3583, allocations: 232 kB / 486.8 MB, free: 68.6 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01049/0.3688, allocations: 8.935 MB / 495.7 MB, free: 64.94 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.05e-05/0.3689, allocations: 28.23 kB / 495.7 MB, free: 64.92 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002731/0.3692, allocations: 118.3 kB / 495.8 MB, free: 64.88 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002591/0.3717, allocations: 2.014 MB / 497.9 MB, free: 64.48 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01194/0.3837, allocations: 7.893 MB / 0.4939 GB, free: 61.84 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03357/0.4173, allocations: 26.08 MB / 0.5194 GB, free: 44.31 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00654/0.4238, allocations: 2.381 MB / 0.5217 GB, free: 43.7 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001428/0.4252, allocations: 0.9144 MB / 0.5226 GB, free: 43.38 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007951/0.4332, allocations: 3.774 MB / 0.5263 GB, free: 42.1 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.272e-05/0.4332, allocations: 50.97 kB / 0.5263 GB, free: 42.05 MB / 446.1 MB Notification: Performance of pre-optimization done (n=155): time 4.508e-06/0.4332, allocations: 0 / 0.5263 GB, free: 42.05 MB / 446.1 MB Notification: Performance of matching and sorting (n=197): time 0.02244/0.4557, allocations: 9.695 MB / 0.5358 GB, free: 38.09 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00707/0.4627, allocations: 6.459 MB / 0.5421 GB, free: 31.98 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003686/0.4664, allocations: 2.548 MB / 0.5446 GB, free: 29.77 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001085/0.4665, allocations: 53.7 kB / 0.5446 GB, free: 29.71 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001253/0.4678, allocations: 2.489 MB / 0.5471 GB, free: 27.45 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000612/0.4684, allocations: 0.7541 MB / 0.5478 GB, free: 26.77 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001307/0.4697, allocations: 0.9613 MB / 0.5487 GB, free: 25.88 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.039e-05/0.4698, allocations: 349.9 kB / 0.5491 GB, free: 25.55 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002372/0.4721, allocations: 1.532 MB / 0.5506 GB, free: 24.25 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003142/0.4753, allocations: 4.119 MB / 0.5546 GB, free: 19.18 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005071/0.4804, allocations: 6.099 MB / 0.5605 GB, free: 12.18 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.592e-05/0.4804, allocations: 28 kB / 0.5606 GB, free: 12.16 MB / 446.1 MB Notification: Performance of matching and sorting (n=621) (initialization): time 0.00834/0.4888, allocations: 6.001 MB / 0.5664 GB, free: 6.145 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.81e-05/0.4888, allocations: 46.97 kB / 0.5665 GB, free: 6.102 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001119/0.489, allocations: 88 kB / 0.5666 GB, free: 6.016 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001255/0.4902, allocations: 0.5852 MB / 0.5671 GB, free: 5.426 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002754/0.493, allocations: 1.022 MB / 0.5681 GB, free: 4.402 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01111/0.5041, allocations: 8.853 MB / 0.5768 GB, free: 11.25 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004021/0.5081, allocations: 255.9 kB / 0.577 GB, free: 11 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007138/0.5088, allocations: 280 kB / 0.5773 GB, free: 10.73 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 410 * 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 (554): * Single equations (assignments): 547 * 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.003523/0.5123, allocations: 1.722 MB / 0.579 GB, free: 8.992 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000622/0.513, allocations: 234.4 kB / 0.5792 GB, free: 8.762 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005847/0.5188, allocations: 2.839 MB / 0.582 GB, free: 5.898 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001245/0.5189, allocations: 31.98 kB / 0.582 GB, free: 5.867 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.582e-05/0.5189, allocations: 7.938 kB / 0.582 GB, free: 5.859 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.275e-05/0.519, allocations: 7.969 kB / 0.582 GB, free: 5.852 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01835/0.5373, allocations: 8.14 MB / 0.59 GB, free: 13.55 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.699e-05/0.5373, allocations: 11.69 kB / 0.59 GB, free: 13.55 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009019/0.5382, allocations: 211.7 kB / 0.5902 GB, free: 13.34 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001719/0.54, allocations: 0.6066 MB / 0.5908 GB, free: 12.73 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001436/0.5401, allocations: 43.98 kB / 0.5908 GB, free: 12.68 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01303/0.5531, allocations: 9.004 MB / 0.5996 GB, free: 3.383 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0078/0.5609, allocations: 5.607 MB / 0.6051 GB, free: 13.55 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007925/0.5689, allocations: 4.153 MB / 0.6091 GB, free: 9.332 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008644/0.5697, allocations: 215.3 kB / 0.6093 GB, free: 9.121 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005427/0.5703, allocations: 35.98 kB / 0.6094 GB, free: 9.086 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001285/0.5716, allocations: 95.94 kB / 0.6095 GB, free: 8.992 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003609/0.5719, allocations: 140.9 kB / 0.6096 GB, free: 8.855 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001404/0.5721, allocations: 55.98 kB / 0.6096 GB, free: 8.801 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003118/0.5752, allocations: 1.476 MB / 0.6111 GB, free: 7.305 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.5752, allocations: 0 / 0.6111 GB, free: 7.305 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004583/0.5798, allocations: 0.8749 MB / 0.6119 GB, free: 6.43 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 2 ($STATESET2.x,$STATESET1.x) * 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 (125): * Single equations (assignments): 118 * 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%), (3,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,16)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004903/0.5802, allocations: 178 kB / 0.6121 GB, free: 6.25 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.008054/0.5883, allocations: 4.058 MB / 0.6161 GB, free: 2.172 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.677e-06/0.5883, allocations: 4.25 kB / 0.6161 GB, free: 2.168 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003254/0.5916, allocations: 1.663 MB / 0.6177 GB, free: 480 kB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002433/0.594, allocations: 305.2 kB / 0.618 GB, free: 180 kB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01697/0.611, allocations: 7.661 MB / 0.6255 GB, free: 8.414 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004876/0.6158, allocations: 2.282 MB / 0.6277 GB, free: 6.098 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.003665/0.6195, allocations: 1.256 MB / 0.6289 GB, free: 4.836 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007162/0.6202, allocations: 180.5 kB / 0.6291 GB, free: 4.66 MB / 0.4981 GB Notification: Performance of SimCode: time 8.12e-07/0.6202, allocations: 0 / 0.6291 GB, free: 4.66 MB / 0.4981 GB Notification: Performance of Templates: time 0.06219/0.6824, allocations: 26.18 MB / 0.6547 GB, free: 10.8 MB / 0.5294 GB " [Timeout remaining time 659] make -j1 -f PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.makefile [Timeout 660] (rm -f PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.sim & ./PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection -abortSlowSimulation -alarm=480 -s ida -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.030682794051245] Failed to read output from testmodel.py, exit status != 0: 0.6916940140072256 0.7072545520000001 0.5580566690000001 Calling exit ...