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.0007539/0.0007539, allocations: 92.22 kB / 19.65 MB, free: 280 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.0008892/0.0008892, allocations: 169 kB / 23.02 MB, free: 1.547 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.9324/0.9324, allocations: 177.1 MB / 203.4 MB, free: 5.629 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.02857/0.02857, allocations: 7.184 MB / 267.1 MB, free: 6.051 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 3.096e-06/3.096e-06, allocations: 4 kB / 338.9 MB, free: 10.21 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.951e-05/2.26e-05, allocations: 5.266 kB / 338.9 MB, free: 10.21 MB / 266.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection): time 0.007086/0.007109, allocations: 9.465 MB / 348.3 MB, free: 0.6953 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003759/0.01087, allocations: 2.85 MB / 351.2 MB, free: 13.84 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000404/0.01127, allocations: 43.88 kB / 351.2 MB, free: 13.79 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009392/0.01221, allocations: 444.8 kB / 351.7 MB, free: 13.36 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001928/0.01414, allocations: 1.648 MB / 353.3 MB, free: 11.7 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002677/0.01441, allocations: 187.5 kB / 353.5 MB, free: 11.52 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001887/0.01629, allocations: 2.936 MB / 356.4 MB, free: 8.574 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007167/0.01701, allocations: 0.9353 MB / 357.4 MB, free: 7.605 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001594/0.0186, allocations: 1.601 MB / 359 MB, free: 6 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001349/0.01995, allocations: 1.449 MB / 360.4 MB, free: 4.547 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002453/0.0202, allocations: 260 kB / 360.7 MB, free: 4.293 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001085/0.02128, allocations: 0.8619 MB / 361.5 MB, free: 3.43 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007922/0.02208, allocations: 1.418 MB / 362.9 MB, free: 2.008 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00063/0.02271, allocations: 0.9421 MB / 363.9 MB, free: 1.062 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002838/0.02554, allocations: 3.63 MB / 367.5 MB, free: 13.41 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.02555, allocations: 0 / 367.5 MB, free: 13.41 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.02555, allocations: 0 / 367.5 MB, free: 13.41 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.254e-05/0.02557, allocations: 0 / 367.5 MB, free: 13.41 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.006461/0.03203, allocations: 5.543 MB / 373.1 MB, free: 7.809 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.088e-05/0.03207, allocations: 20.56 kB / 373.1 MB, free: 7.789 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003762/0.03584, allocations: 2.284 MB / 375.4 MB, free: 5.5 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001438/0.03727, allocations: 1.436 MB / 376.8 MB, free: 4.035 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.905e-05/0.03737, allocations: 176.7 kB / 377 MB, free: 3.859 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002938/0.03767, allocations: 235.9 kB / 377.2 MB, free: 3.629 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006036/0.0437, allocations: 4.765 MB / 382 MB, free: 14.24 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.126e-05/0.04377, allocations: 35.75 kB / 382 MB, free: 14.21 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002284/0.044, allocations: 111.8 kB / 382.1 MB, free: 14.1 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002011/0.04601, allocations: 2.013 MB / 384.1 MB, free: 12.08 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00658/0.05259, allocations: 2.755 MB / 386.9 MB, free: 9.32 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1721/0.2247, allocations: 30 MB / 416.9 MB, free: 48.43 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00361/0.2283, allocations: 1.423 MB / 418.3 MB, free: 48.38 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006328/0.2289, allocations: 404.6 kB / 418.7 MB, free: 48.36 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004953/0.2339, allocations: 3.398 MB / 422.1 MB, free: 47.97 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.693e-05/0.2339, allocations: 48.61 kB / 422.1 MB, free: 47.92 MB / 330.7 MB Notification: Performance of pre-optimization done (n=155): time 2.494e-06/0.2339, allocations: 1.641 kB / 422.1 MB, free: 47.92 MB / 330.7 MB Notification: Performance of matching and sorting (n=197): time 0.01011/0.244, allocations: 6.443 MB / 428.6 MB, free: 46.72 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003455/0.2475, allocations: 6.175 MB / 434.8 MB, free: 42.29 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001891/0.2494, allocations: 2.281 MB / 437 MB, free: 41.86 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.973e-05/0.2494, allocations: 51.41 kB / 437.1 MB, free: 41.82 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008346/0.2503, allocations: 2.611 MB / 439.7 MB, free: 40.09 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003441/0.2506, allocations: 0.78 MB / 440.5 MB, free: 39.5 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007567/0.2514, allocations: 1.025 MB / 441.5 MB, free: 38.74 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.07e-05/0.2514, allocations: 0.5181 MB / 442 MB, free: 38.23 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007712/0.2522, allocations: 0.5167 MB / 442.5 MB, free: 37.81 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001838/0.2541, allocations: 4.357 MB / 446.9 MB, free: 31.93 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002909/0.257, allocations: 5.4 MB / 452.3 MB, free: 25.24 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.373e-05/0.257, allocations: 32 kB / 452.3 MB, free: 25.21 MB / 330.7 MB Notification: Performance of matching and sorting (n=633) (initialization): time 0.004053/0.261, allocations: 4.158 MB / 456.5 MB, free: 21.3 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.202e-05/0.2611, allocations: 44 kB / 456.5 MB, free: 21.25 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.239e-05/0.2611, allocations: 92.81 kB / 456.6 MB, free: 21.16 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000881/0.262, allocations: 0.5488 MB / 457.2 MB, free: 20.61 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001476/0.2635, allocations: 1.033 MB / 458.2 MB, free: 19.57 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004195/0.2677, allocations: 8.335 MB / 466.5 MB, free: 10.89 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001527/0.2692, allocations: 258.8 kB / 466.8 MB, free: 10.64 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002014/0.2694, allocations: 284 kB / 467.1 MB, free: 10.36 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 414 * 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 (566): * Single equations (assignments): 559 * 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.0007654/0.2702, allocations: 0.5269 MB / 467.6 MB, free: 9.828 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002258/0.2704, allocations: 290.4 kB / 467.9 MB, free: 9.543 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00179/0.2722, allocations: 1.569 MB / 469.4 MB, free: 7.949 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.976e-05/0.2722, allocations: 35.98 kB / 469.5 MB, free: 7.914 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.2722, allocations: 4 kB / 469.5 MB, free: 7.91 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.075e-05/0.2723, allocations: 11.91 kB / 469.5 MB, free: 7.898 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0066/0.2789, allocations: 6.717 MB / 476.2 MB, free: 1.055 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.601e-06/0.2789, allocations: 4.438 kB / 476.2 MB, free: 1.051 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003903/0.2792, allocations: 219.6 kB / 476.4 MB, free: 0.8359 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009278/0.2802, allocations: 0.5185 MB / 477 MB, free: 320 kB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.694e-05/0.2802, allocations: 39.98 kB / 477 MB, free: 280 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005268/0.2855, allocations: 7.867 MB / 484.9 MB, free: 8.059 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003234/0.2887, allocations: 5.458 MB / 490.3 MB, free: 2.363 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002516/0.2913, allocations: 2.133 MB / 492.4 MB, free: 140 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002711/0.2915, allocations: 214.5 kB / 492.7 MB, free: 15.92 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001518/0.2917, allocations: 43.97 kB / 492.7 MB, free: 15.88 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004336/0.2921, allocations: 91.83 kB / 492.8 MB, free: 15.79 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001938/0.2923, allocations: 137 kB / 492.9 MB, free: 15.66 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.746e-05/0.2924, allocations: 55.98 kB / 493 MB, free: 15.61 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0009969/0.2934, allocations: 1.001 MB / 494 MB, free: 14.59 MB / 362.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2934, allocations: 3.938 kB / 494 MB, free: 14.58 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002485/0.2959, allocations: 0.8853 MB / 494.9 MB, free: 13.7 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.0002712/0.2961, allocations: 177.3 kB / 495 MB, free: 13.52 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003385/0.2995, allocations: 2.935 MB / 498 MB, free: 10.55 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.482e-06/0.2995, allocations: 4.188 kB / 498 MB, free: 10.54 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001226/0.3007, allocations: 1.386 MB / 499.4 MB, free: 9.098 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009179/0.3017, allocations: 332.2 kB / 499.7 MB, free: 8.777 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008335/0.31, allocations: 6.562 MB / 0.4944 GB, free: 2.074 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008629/0.3109, allocations: 1.043 MB / 0.4954 GB, free: 1.016 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.00151/0.3124, allocations: 1.104 MB / 0.4965 GB, free: 15.9 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002962/0.3127, allocations: 176.4 kB / 0.4967 GB, free: 15.73 MB / 378.7 MB Notification: Performance of SimCode: time 1.242e-06/0.3127, allocations: 0 / 0.4967 GB, free: 15.73 MB / 378.7 MB Notification: Performance of Templates: time 0.03622/0.3489, allocations: 27.56 MB / 0.5236 GB, free: 4.598 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.7616962832398713]