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.001392/0.001392, allocations: 92.22 kB / 19.65 MB, free: 276 kB / 13.93 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.001682/0.001682, allocations: 169 kB / 23.02 MB, free: 1.551 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.9661/0.9661, allocations: 177.1 MB / 203.4 MB, free: 5.641 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.7.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.7.0/package.mo): time 0.0293/0.0293, allocations: 7.181 MB / 267.1 MB, free: 6.07 MB / 250.7 MB " [Timeout remaining time 180] Using package PlanarMechanics with version 1.7.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.7.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 2.004e-06/2.004e-06, allocations: 0 / 338.9 MB, free: 10.23 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.225e-05/3.425e-05, allocations: 2.312 kB / 338.9 MB, free: 10.23 MB / 266.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection): time 0.009892/0.009926, allocations: 9.468 MB / 348.3 MB, free: 0.7148 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006868/0.01679, allocations: 2.854 MB / 351.2 MB, free: 13.85 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001655/0.01845, allocations: 39.88 kB / 351.2 MB, free: 13.81 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001216/0.01967, allocations: 444.9 kB / 351.7 MB, free: 13.38 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004493/0.02416, allocations: 1.648 MB / 353.3 MB, free: 11.72 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005968/0.02475, allocations: 179.6 kB / 353.5 MB, free: 11.54 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.004102/0.02886, allocations: 2.938 MB / 356.4 MB, free: 8.594 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001671/0.03053, allocations: 0.9314 MB / 357.3 MB, free: 7.629 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002814/0.03334, allocations: 1.598 MB / 358.9 MB, free: 6.027 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002527/0.03587, allocations: 1.453 MB / 360.4 MB, free: 4.57 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007493/0.03662, allocations: 260 kB / 360.7 MB, free: 4.316 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002051/0.03867, allocations: 0.862 MB / 361.5 MB, free: 3.453 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001387/0.04006, allocations: 1.414 MB / 362.9 MB, free: 2.035 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001699/0.04176, allocations: 0.9499 MB / 363.9 MB, free: 1.082 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005306/0.04706, allocations: 3.626 MB / 367.5 MB, free: 13.44 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.824e-06/0.04707, allocations: 0 / 367.5 MB, free: 13.44 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.04707, allocations: 0 / 367.5 MB, free: 13.44 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.152e-05/0.04716, allocations: 0 / 367.5 MB, free: 13.44 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1310 * Number of variables: 1310 Notification: Performance of Generate backend data structure: time 0.007334/0.0545, allocations: 5.547 MB / 373.1 MB, free: 7.832 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.173e-05/0.05454, allocations: 12.62 kB / 373.1 MB, free: 7.82 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003952/0.05849, allocations: 2.28 MB / 375.3 MB, free: 5.535 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001559/0.06005, allocations: 1.386 MB / 376.7 MB, free: 4.117 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.481e-05/0.06015, allocations: 172.8 kB / 376.9 MB, free: 3.945 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002939/0.06044, allocations: 243.9 kB / 377.1 MB, free: 3.707 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006972/0.06741, allocations: 4.768 MB / 381.9 MB, free: 14.32 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.538e-05/0.06748, allocations: 31.77 kB / 381.9 MB, free: 14.29 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002748/0.06775, allocations: 107.9 kB / 382 MB, free: 14.18 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002458/0.07021, allocations: 2.009 MB / 384.1 MB, free: 12.17 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00663/0.07684, allocations: 2.764 MB / 386.8 MB, free: 9.395 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1553/0.2321, allocations: 29.99 MB / 416.8 MB, free: 48.46 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004388/0.2365, allocations: 1.425 MB / 418.2 MB, free: 48.41 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007675/0.2373, allocations: 407.5 kB / 418.6 MB, free: 48.39 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005696/0.243, allocations: 3.394 MB / 422 MB, free: 48 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.915e-05/0.243, allocations: 49.42 kB / 422.1 MB, free: 47.95 MB / 330.7 MB Notification: Performance of pre-optimization done (n=155): time 3.426e-06/0.243, allocations: 0 / 422.1 MB, free: 47.95 MB / 330.7 MB Notification: Performance of matching and sorting (n=197): time 0.0128/0.2558, allocations: 6.436 MB / 428.5 MB, free: 46.76 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004213/0.26, allocations: 6.187 MB / 434.7 MB, free: 42.32 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002206/0.2622, allocations: 2.265 MB / 437 MB, free: 41.89 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.752e-05/0.2623, allocations: 56.09 kB / 437 MB, free: 41.86 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009361/0.2632, allocations: 2.598 MB / 439.6 MB, free: 40.14 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004027/0.2636, allocations: 0.7729 MB / 440.4 MB, free: 39.55 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009949/0.2646, allocations: 1.016 MB / 441.4 MB, free: 38.83 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.684e-05/0.2647, allocations: 0.5228 MB / 441.9 MB, free: 38.31 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001066/0.2658, allocations: 0.5182 MB / 442.4 MB, free: 37.89 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002073/0.2678, allocations: 4.314 MB / 446.8 MB, free: 32.06 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003826/0.2717, allocations: 5.358 MB / 452.1 MB, free: 25.44 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.791e-05/0.2717, allocations: 30.41 kB / 452.1 MB, free: 25.41 MB / 330.7 MB Notification: Performance of matching and sorting (n=629) (initialization): time 0.005686/0.2774, allocations: 4.134 MB / 456.3 MB, free: 21.51 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.529e-05/0.2774, allocations: 44 kB / 456.3 MB, free: 21.47 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.617e-05/0.2775, allocations: 92 kB / 456.4 MB, free: 21.38 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001197/0.2787, allocations: 0.5494 MB / 457 MB, free: 20.83 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002085/0.2808, allocations: 1.033 MB / 458 MB, free: 19.79 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00531/0.2861, allocations: 8.329 MB / 466.3 MB, free: 11.11 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002023/0.2881, allocations: 251.8 kB / 466.6 MB, free: 10.86 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000276/0.2884, allocations: 284 kB / 466.8 MB, free: 10.59 MB / 330.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 (562): * Single equations (assignments): 555 * 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.0008498/0.2893, allocations: 0.53 MB / 467.4 MB, free: 10.05 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002959/0.2895, allocations: 282.5 kB / 467.6 MB, free: 9.773 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00186/0.2914, allocations: 1.572 MB / 469.2 MB, free: 8.18 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.124e-05/0.2915, allocations: 31.98 kB / 469.3 MB, free: 8.148 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.2915, allocations: 4 kB / 469.3 MB, free: 8.145 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.075e-05/0.2915, allocations: 11.91 kB / 469.3 MB, free: 8.133 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006746/0.2982, allocations: 6.729 MB / 476 MB, free: 1.273 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.255e-06/0.2982, allocations: 4 kB / 476 MB, free: 1.27 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004042/0.2986, allocations: 211.7 kB / 476.2 MB, free: 1.062 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000948/0.2996, allocations: 0.5232 MB / 476.7 MB, free: 0.5352 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.281e-05/0.2996, allocations: 37.73 kB / 476.8 MB, free: 0.5 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005764/0.3054, allocations: 7.866 MB / 484.6 MB, free: 8.281 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003331/0.3087, allocations: 5.448 MB / 490.1 MB, free: 2.594 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002592/0.3113, allocations: 2.141 MB / 492.2 MB, free: 368 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002819/0.3116, allocations: 218.4 kB / 492.4 MB, free: 148 kB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001475/0.3118, allocations: 35.98 kB / 492.5 MB, free: 112 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004478/0.3122, allocations: 87.89 kB / 492.6 MB, free: 24 kB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000183/0.3124, allocations: 144.9 kB / 492.7 MB, free: 15.89 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.15e-05/0.3125, allocations: 55.98 kB / 492.8 MB, free: 15.83 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001122/0.3136, allocations: 0.9969 MB / 493.8 MB, free: 14.82 MB / 362.7 MB Notification: Performance of sort global known variables: time 9e-08/0.3136, allocations: 4.031 kB / 493.8 MB, free: 14.81 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002728/0.3163, allocations: 0.8804 MB / 494.6 MB, free: 13.93 MB / 362.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.0002605/0.3166, allocations: 169.6 kB / 494.8 MB, free: 13.77 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003268/0.3198, allocations: 2.933 MB / 497.7 MB, free: 10.79 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.047e-06/0.3198, allocations: 4 kB / 497.7 MB, free: 10.79 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001277/0.3211, allocations: 1.387 MB / 499.1 MB, free: 9.344 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008711/0.322, allocations: 338.3 kB / 499.5 MB, free: 9.016 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007226/0.3292, allocations: 6.547 MB / 0.4941 GB, free: 2.328 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008573/0.3301, allocations: 1.051 MB / 0.4952 GB, free: 1.262 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001732/0.3318, allocations: 1.1 MB / 0.4962 GB, free: 160 kB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002895/0.3321, allocations: 180.5 kB / 0.4964 GB, free: 15.98 MB / 378.7 MB Notification: Performance of SimCode: time 1.222e-06/0.3321, allocations: 4 kB / 0.4964 GB, free: 15.97 MB / 378.7 MB Notification: Performance of Templates: time 0.03676/0.3689, allocations: 26.55 MB / 0.5223 GB, free: 5.855 MB / 394.7 MB " [Timeout remaining time 660] 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=240 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.7924760011956096]