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.001603/0.001603, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001731/0.001731, allocations: 216.5 kB / 22.25 MB, free: 4.855 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.477/1.477, allocations: 230.6 MB / 256 MB, free: 7.781 MB / 206.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.05106/0.05106, allocations: 9.23 MB / 321.7 MB, free: 9.828 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.002262/0.002262, allocations: 63.91 kB / 448.2 MB, free: 14.04 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1058/0.1081, allocations: 55.47 MB / 0.4918 GB, free: 6.484 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection): time 0.01174/0.1198, allocations: 8.502 MB / 0.5001 GB, free: 13.94 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006151/0.1259, allocations: 2.753 MB / 0.5028 GB, free: 11.18 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001075/0.127, allocations: 47.81 kB / 0.5029 GB, free: 11.13 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009934/0.128, allocations: 433 kB / 0.5033 GB, free: 10.71 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003662/0.1317, allocations: 1.583 MB / 0.5048 GB, free: 9.117 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004782/0.1322, allocations: 187.7 kB / 0.505 GB, free: 8.934 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003444/0.1356, allocations: 2.827 MB / 0.5078 GB, free: 6.102 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001311/0.1369, allocations: 0.8763 MB / 0.5086 GB, free: 5.199 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001502/0.1384, allocations: 1.054 MB / 0.5096 GB, free: 4.141 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002121/0.1405, allocations: 1.514 MB / 0.5111 GB, free: 2.621 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004336/0.141, allocations: 259.9 kB / 0.5114 GB, free: 2.367 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001478/0.1424, allocations: 0.7919 MB / 0.5121 GB, free: 1.574 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001326/0.1438, allocations: 1.363 MB / 0.5135 GB, free: 212 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2119/0.3556, allocations: 1.24 MB / 0.5147 GB, free: 10.64 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005183/0.3608, allocations: 5.472 MB / 0.52 GB, free: 9.766 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.3608, allocations: 0 / 0.52 GB, free: 9.766 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.3608, allocations: 0.5938 kB / 0.52 GB, free: 9.766 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.758e-05/0.3609, allocations: 0 / 0.52 GB, free: 9.766 MB / 382.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.01202/0.3729, allocations: 5.235 MB / 0.5251 GB, free: 8.211 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.895e-05/0.373, allocations: 9.688 kB / 0.5252 GB, free: 8.211 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006722/0.3797, allocations: 1.837 MB / 0.527 GB, free: 7.961 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002931/0.3826, allocations: 1.458 MB / 0.5284 GB, free: 7.574 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001435/0.3828, allocations: 171.9 kB / 0.5285 GB, free: 7.566 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004805/0.3832, allocations: 235.4 kB / 0.5288 GB, free: 7.559 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01393/0.3972, allocations: 8.948 MB / 0.5375 GB, free: 5.113 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.347e-05/0.3973, allocations: 35.91 kB / 0.5375 GB, free: 5.105 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003289/0.3976, allocations: 108.6 kB / 0.5376 GB, free: 5.066 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003183/0.4008, allocations: 2.01 MB / 0.5396 GB, free: 4.688 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01478/0.4155, allocations: 7.946 MB / 0.5474 GB, free: 1.277 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04016/0.4557, allocations: 26 MB / 0.5727 GB, free: 8.871 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006973/0.4627, allocations: 2.264 MB / 0.575 GB, free: 6.609 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00157/0.4642, allocations: 0.9193 MB / 0.5759 GB, free: 5.691 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008778/0.473, allocations: 3.716 MB / 0.5795 GB, free: 1.992 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.2e-05/0.4731, allocations: 51.86 kB / 0.5795 GB, free: 1.934 MB / 414.1 MB Notification: Performance of pre-optimization done (n=155): time 3.847e-06/0.4731, allocations: 0 / 0.5795 GB, free: 1.934 MB / 414.1 MB Notification: Performance of matching and sorting (n=197): time 0.02296/0.496, allocations: 9.531 MB / 0.5888 GB, free: 8.43 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.009089/0.5051, allocations: 6.459 MB / 0.5952 GB, free: 1.781 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004659/0.5098, allocations: 2.577 MB / 0.5977 GB, free: 15.16 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002068/0.51, allocations: 55.58 kB / 0.5977 GB, free: 15.11 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002092/0.5121, allocations: 2.485 MB / 0.6001 GB, free: 12.62 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008656/0.5129, allocations: 0.7544 MB / 0.6009 GB, free: 11.88 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00171/0.5147, allocations: 0.9528 MB / 0.6018 GB, free: 10.92 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002021/0.5149, allocations: 353.9 kB / 0.6022 GB, free: 10.57 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00291/0.5178, allocations: 1.544 MB / 0.6037 GB, free: 9.016 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005298/0.5231, allocations: 4.122 MB / 0.6077 GB, free: 3.66 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008415/0.5315, allocations: 6.111 MB / 0.6137 GB, free: 12.66 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001016/0.5316, allocations: 28 kB / 0.6137 GB, free: 12.63 MB / 462.1 MB Notification: Performance of matching and sorting (n=621) (initialization): time 0.01179/0.5434, allocations: 6.018 MB / 0.6196 GB, free: 6.703 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.144e-05/0.5435, allocations: 47.94 kB / 0.6196 GB, free: 6.656 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001565/0.5436, allocations: 92.08 kB / 0.6197 GB, free: 6.566 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00165/0.5453, allocations: 0.5745 MB / 0.6203 GB, free: 5.988 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003404/0.5487, allocations: 1.022 MB / 0.6212 GB, free: 4.965 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01216/0.5608, allocations: 8.867 MB / 0.6299 GB, free: 11.82 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003437/0.5643, allocations: 250.9 kB / 0.6301 GB, free: 11.57 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007244/0.565, allocations: 280 kB / 0.6304 GB, free: 11.3 MB / 478.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.003439/0.5684, allocations: 1.727 MB / 0.6321 GB, free: 9.566 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005518/0.569, allocations: 238.6 kB / 0.6323 GB, free: 9.332 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00585/0.5748, allocations: 2.846 MB / 0.6351 GB, free: 6.465 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001143/0.575, allocations: 31.98 kB / 0.6351 GB, free: 6.434 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.295e-05/0.575, allocations: 15.94 kB / 0.6352 GB, free: 6.418 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.718e-05/0.575, allocations: 7.969 kB / 0.6352 GB, free: 6.41 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01824/0.5932, allocations: 8.132 MB / 0.6431 GB, free: 14.16 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-05/0.5932, allocations: 4 kB / 0.6431 GB, free: 14.16 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008716/0.5941, allocations: 215.6 kB / 0.6433 GB, free: 13.95 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001726/0.5958, allocations: 0.5993 MB / 0.6439 GB, free: 13.34 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001213/0.596, allocations: 41.48 kB / 0.6439 GB, free: 13.3 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01291/0.6089, allocations: 9.017 MB / 0.6527 GB, free: 3.996 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.007538/0.6164, allocations: 5.611 MB / 0.6582 GB, free: 14.17 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007541/0.6239, allocations: 4.181 MB / 0.6623 GB, free: 9.926 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000743/0.6247, allocations: 214.4 kB / 0.6625 GB, free: 9.715 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004398/0.6251, allocations: 38.58 kB / 0.6625 GB, free: 9.68 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001096/0.6262, allocations: 87.89 kB / 0.6626 GB, free: 9.594 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003371/0.6266, allocations: 140.9 kB / 0.6628 GB, free: 9.457 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001285/0.6267, allocations: 59.98 kB / 0.6628 GB, free: 9.398 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.002965/0.6297, allocations: 1.492 MB / 0.6643 GB, free: 7.887 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.1e-07/0.6297, allocations: 4 kB / 0.6643 GB, free: 7.883 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004075/0.6337, allocations: 0.8777 MB / 0.6651 GB, free: 7.008 MB / 0.4981 GB 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.0003965/0.6341, allocations: 156.7 kB / 0.6653 GB, free: 6.844 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.007615/0.6417, allocations: 4.086 MB / 0.6693 GB, free: 2.738 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.136e-05/0.6418, allocations: 0 / 0.6693 GB, free: 2.738 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.003344/0.6451, allocations: 1.664 MB / 0.6709 GB, free: 1.039 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002093/0.6472, allocations: 306.5 kB / 0.6712 GB, free: 0.7461 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01589/0.6631, allocations: 7.659 MB / 0.6787 GB, free: 8.988 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003809/0.6669, allocations: 2.282 MB / 0.6809 GB, free: 6.672 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.003672/0.6706, allocations: 1.252 MB / 0.6821 GB, free: 5.414 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006688/0.6712, allocations: 183.4 kB / 0.6823 GB, free: 5.234 MB / 0.5137 GB Notification: Performance of SimCode: time 1.583e-06/0.6712, allocations: 0 / 0.6823 GB, free: 5.234 MB / 0.5137 GB Notification: Performance of Templates: time 0.06356/0.7348, allocations: 29.65 MB / 0.7113 GB, free: 8.047 MB / 0.545 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 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.540832540020347] Failed to read output from testmodel.py, exit status != 0: 0.7441478315740824 0.941667121 0.578161384 Calling exit ...