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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001786/0.001786, allocations: 108.8 kB / 18.93 MB, free: 2.945 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002134/0.002134, allocations: 191.8 kB / 22.23 MB, free: 5.16 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.452/1.452, allocations: 225.6 MB / 251 MB, free: 13 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.04931/0.04931, allocations: 9.263 MB / 315.5 MB, free: 15.57 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-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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 0.002114/0.002114, allocations: 67.89 kB / 439.8 MB, free: 11.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.1116, allocations: 54.29 MB / 494 MB, free: 4.656 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection): time 0.01222/0.1238, allocations: 9.793 MB / 0.492 GB, free: 10.82 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007219/0.131, allocations: 2.866 MB / 0.4948 GB, free: 7.941 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001585/0.1326, allocations: 47.81 kB / 0.4949 GB, free: 7.895 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001101/0.1337, allocations: 445 kB / 0.4953 GB, free: 7.457 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004701/0.1384, allocations: 1.579 MB / 0.4968 GB, free: 5.871 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006912/0.1391, allocations: 195.6 kB / 0.497 GB, free: 5.68 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004671/0.1438, allocations: 2.864 MB / 0.4998 GB, free: 2.805 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001534/0.1453, allocations: 0.8842 MB / 0.5007 GB, free: 1.895 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001652/0.147, allocations: 1.058 MB / 0.5017 GB, free: 0.832 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002206/0.1492, allocations: 1.592 MB / 0.5033 GB, free: 15.23 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004645/0.1497, allocations: 260 kB / 0.5035 GB, free: 14.98 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001818/0.1515, allocations: 0.9011 MB / 0.5044 GB, free: 14.08 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001438/0.1529, allocations: 1.386 MB / 0.5058 GB, free: 12.69 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001913/0.1548, allocations: 1.763 MB / 0.5075 GB, free: 10.91 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007753/0.1626, allocations: 5.501 MB / 0.5129 GB, free: 5.391 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.101e-06/0.1626, allocations: 0 / 0.5129 GB, free: 5.391 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.1626, allocations: 0 / 0.5129 GB, free: 5.391 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001514/0.1627, allocations: 0 / 0.5129 GB, free: 5.391 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.01385/0.1766, allocations: 5.194 MB / 0.5179 GB, free: 144 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.925e-05/0.1766, allocations: 8.625 kB / 0.5179 GB, free: 136 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2604/0.437, allocations: 1.82 MB / 0.5197 GB, free: 32.22 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00393/0.441, allocations: 1.46 MB / 0.5211 GB, free: 31.93 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001951/0.4411, allocations: 171.9 kB / 0.5213 GB, free: 31.92 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008707/0.442, allocations: 228.3 kB / 0.5215 GB, free: 31.91 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01648/0.4585, allocations: 8.955 MB / 0.5303 GB, free: 28.64 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001114/0.4586, allocations: 24.81 kB / 0.5303 GB, free: 28.63 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003645/0.459, allocations: 108 kB / 0.5304 GB, free: 28.59 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003723/0.4627, allocations: 2.02 MB / 0.5324 GB, free: 28.2 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01854/0.4812, allocations: 7.97 MB / 0.5401 GB, free: 25.2 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03915/0.5204, allocations: 28.48 MB / 0.568 GB, free: 13 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007275/0.5277, allocations: 2.274 MB / 0.5702 GB, free: 10.71 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001774/0.5294, allocations: 0.9199 MB / 0.5711 GB, free: 9.793 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009178/0.5386, allocations: 4.079 MB / 0.5751 GB, free: 5.738 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.75e-05/0.5387, allocations: 43.88 kB / 0.5751 GB, free: 5.684 MB / 398.1 MB Notification: Performance of pre-optimization done (n=155): time 4.077e-06/0.5387, allocations: 4 kB / 0.5751 GB, free: 5.68 MB / 398.1 MB Notification: Performance of matching and sorting (n=197): time 0.0239/0.5626, allocations: 9.561 MB / 0.5844 GB, free: 12.07 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.009362/0.5719, allocations: 6.581 MB / 0.5909 GB, free: 5.242 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005077/0.577, allocations: 3.032 MB / 0.5938 GB, free: 2.199 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003698/0.5774, allocations: 53.7 kB / 0.5939 GB, free: 2.141 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002749/0.5801, allocations: 2.454 MB / 0.5963 GB, free: 15.66 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001346/0.5815, allocations: 0.7576 MB / 0.597 GB, free: 14.9 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001489/0.583, allocations: 0.9415 MB / 0.5979 GB, free: 13.95 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001564/0.5831, allocations: 305.1 kB / 0.5982 GB, free: 13.64 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002699/0.5858, allocations: 1.544 MB / 0.5997 GB, free: 12.1 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005364/0.5912, allocations: 4.122 MB / 0.6038 GB, free: 6.699 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009008/0.6002, allocations: 6.115 MB / 0.6097 GB, free: 15.32 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.583e-05/0.6003, allocations: 24 kB / 0.6098 GB, free: 15.3 MB / 446.1 MB Notification: Performance of matching and sorting (n=621) (initialization): time 0.01326/0.6135, allocations: 6.06 MB / 0.6157 GB, free: 9.227 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.018e-05/0.6136, allocations: 50.69 kB / 0.6157 GB, free: 9.18 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001333/0.6137, allocations: 95.12 kB / 0.6158 GB, free: 9.09 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001508/0.6152, allocations: 0.573 MB / 0.6164 GB, free: 8.512 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003645/0.6189, allocations: 1.025 MB / 0.6174 GB, free: 7.484 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01272/0.6316, allocations: 8.998 MB / 0.6262 GB, free: 14.14 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003904/0.6355, allocations: 255.9 kB / 0.6264 GB, free: 13.89 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007969/0.6363, allocations: 284 kB / 0.6267 GB, free: 13.62 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.003423/0.6397, allocations: 1.728 MB / 0.6284 GB, free: 11.88 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005779/0.6403, allocations: 278.1 kB / 0.6286 GB, free: 11.61 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005601/0.6459, allocations: 2.894 MB / 0.6315 GB, free: 8.688 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000114/0.646, allocations: 28.17 kB / 0.6315 GB, free: 8.66 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.737e-05/0.646, allocations: 12 kB / 0.6315 GB, free: 8.648 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.969e-05/0.6461, allocations: 7.969 kB / 0.6315 GB, free: 8.641 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01856/0.6646, allocations: 9.096 MB / 0.6404 GB, free: 15.36 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.381e-05/0.6646, allocations: 4.281 kB / 0.6404 GB, free: 15.36 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00095/0.6656, allocations: 207.7 kB / 0.6406 GB, free: 15.15 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001693/0.6673, allocations: 0.6019 MB / 0.6412 GB, free: 14.54 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001801/0.6675, allocations: 47.92 kB / 0.6412 GB, free: 14.5 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01334/0.6808, allocations: 9.178 MB / 0.6502 GB, free: 4.98 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.007893/0.6887, allocations: 5.715 MB / 0.6558 GB, free: 15.02 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007707/0.6964, allocations: 4.226 MB / 0.6599 GB, free: 10.72 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001369/0.6978, allocations: 278.1 kB / 0.6602 GB, free: 10.45 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004404/0.6982, allocations: 35.97 kB / 0.6602 GB, free: 10.41 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00109/0.6993, allocations: 91.89 kB / 0.6603 GB, free: 10.32 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003667/0.6997, allocations: 145 kB / 0.6604 GB, free: 10.18 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001342/0.6998, allocations: 55.98 kB / 0.6605 GB, free: 10.13 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003599/0.7034, allocations: 1.936 MB / 0.6624 GB, free: 8.188 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.7034, allocations: 3.938 kB / 0.6624 GB, free: 8.184 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004981/0.7084, allocations: 0.8983 MB / 0.6632 GB, free: 7.285 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.0005641/0.7089, allocations: 170.9 kB / 0.6634 GB, free: 7.109 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.008024/0.717, allocations: 4.083 MB / 0.6674 GB, free: 3.004 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.116e-06/0.717, allocations: 4.062 kB / 0.6674 GB, free: 3 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00312/0.7201, allocations: 1.66 MB / 0.669 GB, free: 1.301 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002316/0.7224, allocations: 457.3 kB / 0.6694 GB, free: 0.8633 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01452/0.7369, allocations: 7.729 MB / 0.677 GB, free: 9.035 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003919/0.7409, allocations: 2.833 MB / 0.6798 GB, free: 6.172 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.003656/0.7445, allocations: 1.31 MB / 0.681 GB, free: 4.855 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006564/0.7452, allocations: 203.4 kB / 0.6812 GB, free: 4.656 MB / 0.4981 GB Notification: Performance of SimCode: time 1.202e-06/0.7452, allocations: 3.938 kB / 0.6812 GB, free: 4.652 MB / 0.4981 GB Notification: Performance of Templates: time 0.07425/0.8194, allocations: 36.25 MB / 0.7166 GB, free: 0.5547 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 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.895622900687158] Failed to read output from testmodel.py, exit status != 0: 1.0409677866846323 1.055292315 0.889980547 Calling exit ... <OMPython.OMCSessionZMQ object at 0x7fc37ac557b0>