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.0008424/0.0008424, allocations: 72.5 kB / 19.93 MB, free: 4.633 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.0008132/0.0008132, allocations: 177.9 kB / 23.21 MB, free: 1.348 MB / 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.823/0.823, allocations: 177.1 MB / 203.5 MB, free: 5.723 MB / 186.7 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.02648/0.02648, allocations: 7.114 MB / 267.1 MB, free: 6.312 MB / 250.7 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.442e-06/1.442e-06, allocations: 0 / 393.6 MB, free: 3.512 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.608e-05/1.752e-05, allocations: 9.594 kB / 393.6 MB, free: 3.504 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection): time 0.005812/0.00583, allocations: 8.511 MB / 402.2 MB, free: 10.95 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.003623/0.009453, allocations: 2.752 MB / 404.9 MB, free: 8.188 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004352/0.009888, allocations: 47.81 kB / 405 MB, free: 8.141 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006341/0.01052, allocations: 432.9 kB / 405.4 MB, free: 7.715 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001716/0.01224, allocations: 1.629 MB / 407 MB, free: 6.078 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002202/0.01246, allocations: 187.5 kB / 407.2 MB, free: 5.895 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001529/0.01399, allocations: 2.894 MB / 410.1 MB, free: 2.992 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006072/0.01459, allocations: 0.8955 MB / 411 MB, free: 2.066 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009032/0.0155, allocations: 1.574 MB / 412.6 MB, free: 500 kB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1366/0.1521, allocations: 1.448 MB / 414 MB, free: 17.36 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005606/0.1527, allocations: 259.2 kB / 414.3 MB, free: 17.36 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001277/0.1539, allocations: 0.8563 MB / 415.1 MB, free: 17.36 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000835/0.1548, allocations: 1.411 MB / 416.5 MB, free: 17.36 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006672/0.1554, allocations: 0.9355 MB / 417.5 MB, free: 17.36 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00402/0.1595, allocations: 5.436 MB / 422.9 MB, free: 16.92 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.1595, allocations: 0 / 422.9 MB, free: 16.92 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1595, allocations: 0 / 422.9 MB, free: 16.92 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.457e-05/0.1595, allocations: 1.375 kB / 422.9 MB, free: 16.92 MB / 330.7 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.007031/0.1665, allocations: 5.238 MB / 428.1 MB, free: 14.77 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.814e-05/0.1666, allocations: 9.875 kB / 428.1 MB, free: 14.77 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003395/0.17, allocations: 1.85 MB / 430 MB, free: 14.06 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001706/0.1717, allocations: 1.454 MB / 431.4 MB, free: 13.19 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001064/0.1718, allocations: 174.5 kB / 431.6 MB, free: 13.14 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003176/0.1721, allocations: 234 kB / 431.8 MB, free: 13.09 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006786/0.1789, allocations: 8.969 MB / 440.8 MB, free: 8.066 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.413e-05/0.179, allocations: 35.2 kB / 440.9 MB, free: 8.055 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002272/0.1792, allocations: 115.5 kB / 441 MB, free: 8.012 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001456/0.1806, allocations: 2.01 MB / 443 MB, free: 6.57 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007217/0.1879, allocations: 7.974 MB / 450.9 MB, free: 14.71 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02016/0.208, allocations: 26.04 MB / 477 MB, free: 4.492 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003986/0.212, allocations: 2.396 MB / 479.4 MB, free: 2.102 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009042/0.2129, allocations: 0.9118 MB / 480.3 MB, free: 1.191 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004357/0.2173, allocations: 3.773 MB / 484.1 MB, free: 13.43 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.58e-05/0.2173, allocations: 47.88 kB / 484.1 MB, free: 13.38 MB / 378.7 MB Notification: Performance of pre-optimization done (n=155): time 3.316e-06/0.2173, allocations: 0 / 484.1 MB, free: 13.38 MB / 378.7 MB Notification: Performance of matching and sorting (n=197): time 0.01275/0.23, allocations: 9.741 MB / 493.9 MB, free: 3.664 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004787/0.2348, allocations: 6.463 MB / 0.4886 GB, free: 13 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002376/0.2372, allocations: 2.573 MB / 0.4911 GB, free: 10.39 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.918e-05/0.2373, allocations: 61.22 kB / 0.4912 GB, free: 10.33 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009322/0.2382, allocations: 2.46 MB / 0.4936 GB, free: 7.871 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003546/0.2386, allocations: 0.7434 MB / 0.4943 GB, free: 7.137 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007988/0.2394, allocations: 0.9438 MB / 0.4952 GB, free: 6.184 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.313e-05/0.2395, allocations: 357.9 kB / 0.4956 GB, free: 5.828 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001513/0.241, allocations: 1.54 MB / 0.4971 GB, free: 4.281 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002659/0.2436, allocations: 4.121 MB / 0.5011 GB, free: 14.92 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004456/0.2481, allocations: 6.111 MB / 0.5071 GB, free: 7.574 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.788e-05/0.2481, allocations: 28 kB / 0.5071 GB, free: 7.547 MB / 410.7 MB Notification: Performance of matching and sorting (n=621) (initialization): time 0.006025/0.2541, allocations: 6.005 MB / 0.5129 GB, free: 1.535 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.155e-05/0.2542, allocations: 40 kB / 0.513 GB, free: 1.496 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.384e-05/0.2542, allocations: 96.16 kB / 0.5131 GB, free: 1.402 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008007/0.255, allocations: 0.5812 MB / 0.5136 GB, free: 0.8164 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001586/0.2566, allocations: 1.026 MB / 0.5146 GB, free: 15.79 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006397/0.263, allocations: 8.857 MB / 0.5233 GB, free: 6.637 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001557/0.2646, allocations: 255.8 kB / 0.5235 GB, free: 6.387 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002339/0.2648, allocations: 280 kB / 0.5238 GB, free: 6.113 MB / 426.7 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.002182/0.267, allocations: 1.724 MB / 0.5255 GB, free: 4.375 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002028/0.2672, allocations: 242.3 kB / 0.5257 GB, free: 4.137 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002954/0.2701, allocations: 2.837 MB / 0.5285 GB, free: 1.277 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.219e-05/0.2702, allocations: 31.98 kB / 0.5285 GB, free: 1.246 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/0.2702, allocations: 4 kB / 0.5285 GB, free: 1.242 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.223e-05/0.2702, allocations: 13.52 kB / 0.5285 GB, free: 1.23 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008927/0.2791, allocations: 8.163 MB / 0.5365 GB, free: 8.961 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.843e-06/0.2791, allocations: 4 kB / 0.5365 GB, free: 8.957 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004357/0.2796, allocations: 207.7 kB / 0.5367 GB, free: 8.754 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008752/0.2805, allocations: 0.6061 MB / 0.5373 GB, free: 8.141 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.767e-05/0.2805, allocations: 39.98 kB / 0.5373 GB, free: 8.102 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006712/0.2872, allocations: 9.006 MB / 0.5461 GB, free: 14.8 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00383/0.2911, allocations: 5.623 MB / 0.5516 GB, free: 8.949 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004216/0.2953, allocations: 4.173 MB / 0.5557 GB, free: 4.711 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003384/0.2956, allocations: 214.5 kB / 0.5559 GB, free: 4.5 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001492/0.2958, allocations: 32 kB / 0.5559 GB, free: 4.469 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004661/0.2962, allocations: 87.89 kB / 0.556 GB, free: 4.383 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001841/0.2964, allocations: 136.9 kB / 0.5562 GB, free: 4.246 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.92e-05/0.2965, allocations: 63.34 kB / 0.5562 GB, free: 4.188 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001518/0.298, allocations: 1.5 MB / 0.5577 GB, free: 2.668 MB / 458.7 MB Notification: Performance of sort global known variables: time 8e-08/0.298, allocations: 0 / 0.5577 GB, free: 2.668 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002479/0.3005, allocations: 0.871 MB / 0.5585 GB, free: 1.797 MB / 458.7 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.0002755/0.3008, allocations: 166.8 kB / 0.5587 GB, free: 1.629 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004137/0.3049, allocations: 4.074 MB / 0.5627 GB, free: 13.54 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.3049, allocations: 1.562 kB / 0.5627 GB, free: 13.54 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001437/0.3063, allocations: 1.678 MB / 0.5643 GB, free: 11.82 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008734/0.3072, allocations: 312.3 kB / 0.5646 GB, free: 11.52 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008865/0.3161, allocations: 8.018 MB / 0.5724 GB, free: 3.402 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001999/0.3181, allocations: 2.29 MB / 0.5747 GB, free: 1.082 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004137/0.3185, allocations: 216.4 kB / 0.5749 GB, free: 0.8711 MB / 474.7 MB Notification: Performance of SimCode: time 1.032e-06/0.3185, allocations: 4 kB / 0.5749 GB, free: 0.8672 MB / 474.7 MB Notification: Performance of Templates: time 0.2055/0.524, allocations: 97.51 MB / 0.6701 GB, free: 76.18 MB / 474.7 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: 7.872125596739352] Failed to read output from testmodel.py, exit status != 0: 0.5291268350556493 0.535897642 0.374974662 Calling exit ...