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.001724/0.001724, allocations: 79.5 kB / 19.18 MB, free: 2.527 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.002356/0.002356, allocations: 166.6 kB / 22.46 MB, free: 5.367 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.44/1.44, allocations: 177.2 MB / 202.8 MB, free: 9.184 MB / 190.1 MB " [Timeout remaining time 178] 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.04758/0.04758, allocations: 7.118 MB / 266.3 MB, free: 9.785 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: Performance of FrontEnd - loaded program: time 1.553e-06/1.553e-06, allocations: 0 / 392.9 MB, free: 9.234 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.521e-05/2.676e-05, allocations: 6.281 kB / 392.9 MB, free: 9.227 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection): time 0.01068/0.01071, allocations: 8.522 MB / 401.4 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005922/0.01663, allocations: 2.749 MB / 404.1 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007554/0.01739, allocations: 47.81 kB / 404.2 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009194/0.01831, allocations: 432.9 kB / 404.6 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003431/0.02174, allocations: 1.633 MB / 406.3 MB, free: 11.79 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004308/0.02217, allocations: 183.5 kB / 406.4 MB, free: 11.61 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003502/0.02567, allocations: 2.894 MB / 409.3 MB, free: 8.711 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001369/0.02704, allocations: 0.8956 MB / 410.2 MB, free: 7.785 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001925/0.02896, allocations: 1.578 MB / 411.8 MB, free: 6.203 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001876/0.03084, allocations: 1.445 MB / 413.2 MB, free: 4.754 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003829/0.03122, allocations: 260 kB / 413.5 MB, free: 4.5 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00151/0.03273, allocations: 0.8581 MB / 414.4 MB, free: 3.641 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001283/0.03402, allocations: 1.402 MB / 415.8 MB, free: 2.234 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001175/0.03519, allocations: 0.9421 MB / 416.7 MB, free: 1.289 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006156/0.04135, allocations: 5.435 MB / 422.1 MB, free: 11.84 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.04135, allocations: 0 / 422.1 MB, free: 11.84 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.04136, allocations: 4 kB / 422.1 MB, free: 11.83 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.964e-05/0.04144, allocations: 0 / 422.1 MB, free: 11.83 MB / 350.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.01362/0.05506, allocations: 5.237 MB / 427.4 MB, free: 6.539 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.255e-05/0.05511, allocations: 8.625 kB / 427.4 MB, free: 6.531 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007535/0.06264, allocations: 1.902 MB / 429.3 MB, free: 4.625 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003825/0.06647, allocations: 1.438 MB / 430.7 MB, free: 3.152 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001917/0.06666, allocations: 180.7 kB / 430.9 MB, free: 2.973 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005963/0.06726, allocations: 235.9 kB / 431.1 MB, free: 2.742 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01573/0.08298, allocations: 8.936 MB / 440.1 MB, free: 9.348 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.576e-05/0.08307, allocations: 35.75 kB / 440.1 MB, free: 9.312 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003428/0.08341, allocations: 103.9 kB / 440.2 MB, free: 9.211 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003526/0.08694, allocations: 2.02 MB / 442.2 MB, free: 7.188 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1763/0.2632, allocations: 7.893 MB / 450.1 MB, free: 58.18 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03187/0.2951, allocations: 26.02 MB / 476.1 MB, free: 41.07 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006194/0.3013, allocations: 2.389 MB / 478.5 MB, free: 40.29 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001168/0.3025, allocations: 0.9148 MB / 479.4 MB, free: 39.85 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006256/0.3087, allocations: 3.764 MB / 483.2 MB, free: 37.95 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.43e-05/0.3088, allocations: 47.03 kB / 483.2 MB, free: 37.9 MB / 366.1 MB Notification: Performance of pre-optimization done (n=155): time 3.617e-06/0.3088, allocations: 0 / 483.2 MB, free: 37.9 MB / 366.1 MB Notification: Performance of matching and sorting (n=197): time 0.01937/0.3281, allocations: 9.696 MB / 492.9 MB, free: 28.42 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.006147/0.3343, allocations: 6.457 MB / 499.4 MB, free: 21.74 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00273/0.337, allocations: 2.549 MB / 0.4902 GB, free: 19.15 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001944/0.3372, allocations: 49.7 kB / 0.4902 GB, free: 19.1 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008749/0.3381, allocations: 2.472 MB / 0.4926 GB, free: 16.63 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004468/0.3385, allocations: 0.7388 MB / 0.4934 GB, free: 15.91 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009705/0.3395, allocations: 0.9414 MB / 0.4943 GB, free: 14.95 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.574e-05/0.3396, allocations: 353.9 kB / 0.4946 GB, free: 14.6 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001905/0.3415, allocations: 1.532 MB / 0.4961 GB, free: 13.06 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002678/0.3441, allocations: 4.114 MB / 0.5001 GB, free: 7.668 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004844/0.349, allocations: 6.088 MB / 0.5061 GB, free: 344 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-05/0.349, allocations: 24 kB / 0.5061 GB, free: 320 kB / 366.1 MB Notification: Performance of matching and sorting (n=621) (initialization): time 0.01024/0.3593, allocations: 6.01 MB / 0.512 GB, free: 10.3 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.823e-05/0.3593, allocations: 46.97 kB / 0.512 GB, free: 10.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.587e-05/0.3594, allocations: 92 kB / 0.5121 GB, free: 10.16 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001493/0.3609, allocations: 0.5765 MB / 0.5127 GB, free: 9.582 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003094/0.364, allocations: 1.029 MB / 0.5137 GB, free: 8.551 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01142/0.3754, allocations: 8.845 MB / 0.5223 GB, free: 15.41 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003191/0.3786, allocations: 255.9 kB / 0.5226 GB, free: 15.16 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004431/0.3791, allocations: 283.9 kB / 0.5228 GB, free: 14.89 MB / 398.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.002785/0.3819, allocations: 1.728 MB / 0.5245 GB, free: 13.14 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004225/0.3823, allocations: 238.3 kB / 0.5247 GB, free: 12.91 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005562/0.3878, allocations: 2.827 MB / 0.5275 GB, free: 10.06 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001142/0.3879, allocations: 33.72 kB / 0.5275 GB, free: 10.03 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.33e-05/0.388, allocations: 8 kB / 0.5275 GB, free: 10.02 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.873e-05/0.388, allocations: 7.969 kB / 0.5276 GB, free: 10.02 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0158/0.4038, allocations: 8.134 MB / 0.5355 GB, free: 1.773 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.133e-05/0.4038, allocations: 7.938 kB / 0.5355 GB, free: 1.766 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008489/0.4046, allocations: 211.7 kB / 0.5357 GB, free: 1.559 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001696/0.4063, allocations: 0.603 MB / 0.5363 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001044/0.4064, allocations: 41.95 kB / 0.5363 GB, free: 0.9102 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01228/0.4187, allocations: 9.018 MB / 0.5451 GB, free: 7.59 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.007239/0.426, allocations: 5.612 MB / 0.5506 GB, free: 1.762 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007218/0.4332, allocations: 4.145 MB / 0.5547 GB, free: 13.55 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006004/0.4338, allocations: 222.5 kB / 0.5549 GB, free: 13.33 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002885/0.4341, allocations: 32 kB / 0.5549 GB, free: 13.3 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009889/0.4351, allocations: 95.88 kB / 0.555 GB, free: 13.21 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003507/0.4354, allocations: 133 kB / 0.5551 GB, free: 13.08 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001258/0.4355, allocations: 67.83 kB / 0.5552 GB, free: 13.02 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002413/0.438, allocations: 1.473 MB / 0.5566 GB, free: 11.52 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.438, allocations: 0 / 0.5566 GB, free: 11.52 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003865/0.4418, allocations: 0.871 MB / 0.5575 GB, free: 10.65 MB / 430.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.0004208/0.4422, allocations: 178.4 kB / 0.5577 GB, free: 10.47 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.007511/0.4498, allocations: 4.063 MB / 0.5616 GB, free: 6.387 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.47e-06/0.4498, allocations: 0 / 0.5616 GB, free: 6.387 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002964/0.4527, allocations: 1.66 MB / 0.5632 GB, free: 4.695 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001805/0.4545, allocations: 291.7 kB / 0.5635 GB, free: 4.41 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01396/0.4685, allocations: 7.62 MB / 0.571 GB, free: 12.69 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003333/0.4718, allocations: 2.282 MB / 0.5732 GB, free: 10.38 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003074/0.4749, allocations: 1.256 MB / 0.5744 GB, free: 9.117 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005579/0.4754, allocations: 180.5 kB / 0.5746 GB, free: 8.941 MB / 446.1 MB Notification: Performance of SimCode: time 9.62e-07/0.4754, allocations: 0 / 0.5746 GB, free: 8.941 MB / 446.1 MB Notification: Performance of Templates: time 0.05771/0.5332, allocations: 26.12 MB / 0.6001 GB, free: 15.17 MB / 478.1 MB " [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 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.092917934060097] Failed to read output from testmodel.py, exit status != 0: 0.5424482487142086 0.557368454 0.512872276 Calling exit ...