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.000849/0.000849, allocations: 80.94 kB / 19.94 MB, free: 4.543 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.001874/0.001874, allocations: 177 kB / 23.36 MB, free: 1.125 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.9039/0.9039, allocations: 177.1 MB / 203.8 MB, free: 5.477 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.02951/0.02951, allocations: 7.195 MB / 267.4 MB, free: 5.945 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 1.303e-06/1.303e-06, allocations: 0 / 286 MB, free: 3.359 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.63e-05/1.76e-05, allocations: 6.312 kB / 286 MB, free: 3.352 MB / 266.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection): time 0.1179/0.118, allocations: 9.282 MB / 295.3 MB, free: 16.73 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006221/0.1242, allocations: 2.948 MB / 298.3 MB, free: 15.01 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001338/0.1255, allocations: 48.31 kB / 298.3 MB, free: 15 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001005/0.1265, allocations: 442.4 kB / 298.7 MB, free: 14.82 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003747/0.1303, allocations: 1.652 MB / 300.4 MB, free: 14 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000558/0.1308, allocations: 187.2 kB / 300.6 MB, free: 13.9 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002941/0.1338, allocations: 2.929 MB / 303.5 MB, free: 12.48 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00112/0.1349, allocations: 0.9658 MB / 304.5 MB, free: 11.73 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001613/0.1365, allocations: 1.593 MB / 306.1 MB, free: 10.71 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001705/0.1382, allocations: 1.399 MB / 307.5 MB, free: 9.883 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000508/0.1387, allocations: 261.8 kB / 307.7 MB, free: 9.883 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001082/0.1398, allocations: 0.8563 MB / 308.6 MB, free: 9.527 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006002/0.1404, allocations: 1.41 MB / 310 MB, free: 8.113 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007972/0.1412, allocations: 0.9498 MB / 310.9 MB, free: 7.16 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002368/0.1436, allocations: 3.618 MB / 314.6 MB, free: 3.527 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.1436, allocations: 0 / 314.6 MB, free: 3.527 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1436, allocations: 0.5625 kB / 314.6 MB, free: 3.527 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.21e-05/0.1437, allocations: 4 kB / 314.6 MB, free: 3.523 MB / 266.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.004937/0.1486, allocations: 4.208 MB / 318.8 MB, free: 15.27 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.344e-05/0.1486, allocations: 8.625 kB / 318.8 MB, free: 15.27 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0027/0.1513, allocations: 1.066 MB / 319.8 MB, free: 14.2 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001592/0.1529, allocations: 1.102 MB / 320.9 MB, free: 13.07 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001073/0.153, allocations: 176.7 kB / 321.1 MB, free: 12.89 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002978/0.1533, allocations: 235.9 kB / 321.3 MB, free: 12.66 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004871/0.1582, allocations: 4.021 MB / 325.4 MB, free: 8.172 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.016e-05/0.1583, allocations: 35.75 kB / 325.4 MB, free: 8.137 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002191/0.1585, allocations: 107.8 kB / 325.5 MB, free: 8.031 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001768/0.1602, allocations: 1.818 MB / 327.3 MB, free: 6.211 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004838/0.1651, allocations: 2.255 MB / 329.6 MB, free: 3.949 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02023/0.1853, allocations: 21.52 MB / 351.1 MB, free: 13.83 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003282/0.1886, allocations: 1.368 MB / 352.5 MB, free: 12.45 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004153/0.189, allocations: 308.8 kB / 352.8 MB, free: 12.15 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005184/0.1942, allocations: 2.992 MB / 355.8 MB, free: 9.133 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.293e-05/0.1942, allocations: 47.88 kB / 355.8 MB, free: 9.074 MB / 314.7 MB Notification: Performance of pre-optimization done (n=155): time 4.459e-06/0.1942, allocations: 0 / 355.8 MB, free: 9.074 MB / 314.7 MB Notification: Performance of matching and sorting (n=197): time 0.014/0.2082, allocations: 5.56 MB / 361.4 MB, free: 3.473 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004421/0.2127, allocations: 4.686 MB / 366.1 MB, free: 14.58 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002444/0.2151, allocations: 2.048 MB / 368.1 MB, free: 12.49 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001285/0.2152, allocations: 53.69 kB / 368.2 MB, free: 12.43 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001302/0.2165, allocations: 2.422 MB / 370.6 MB, free: 9.98 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000595/0.2171, allocations: 0.74 MB / 371.3 MB, free: 9.234 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001009/0.2181, allocations: 0.914 MB / 372.2 MB, free: 8.309 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001089/0.2182, allocations: 349.8 kB / 372.6 MB, free: 7.961 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001267/0.2195, allocations: 0.5825 MB / 373.2 MB, free: 7.371 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002511/0.222, allocations: 3.091 MB / 376.2 MB, free: 2.988 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00402/0.226, allocations: 4.199 MB / 380.4 MB, free: 13.48 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.753e-05/0.2261, allocations: 31.94 kB / 380.5 MB, free: 13.45 MB / 346.7 MB Notification: Performance of matching and sorting (n=633) (initialization): time 0.005238/0.2313, allocations: 3.365 MB / 383.8 MB, free: 10.04 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.701e-05/0.2314, allocations: 50.75 kB / 383.9 MB, free: 9.992 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001003/0.2315, allocations: 96.16 kB / 384 MB, free: 9.898 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00117/0.2327, allocations: 482.8 kB / 384.5 MB, free: 9.418 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00226/0.2349, allocations: 1.006 MB / 385.5 MB, free: 8.41 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005693/0.2406, allocations: 6.192 MB / 391.7 MB, free: 1.93 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002219/0.2428, allocations: 184 kB / 391.8 MB, free: 1.75 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003109/0.2431, allocations: 240 kB / 392.1 MB, free: 1.516 MB / 346.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.001095/0.2442, allocations: 496.9 kB / 392.6 MB, free: 1.02 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003186/0.2446, allocations: 179.8 kB / 392.7 MB, free: 0.8438 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001993/0.2465, allocations: 1.208 MB / 393.9 MB, free: 15.61 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.83e-05/0.2466, allocations: 23.98 kB / 394 MB, free: 15.59 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.377e-06/0.2466, allocations: 8 kB / 394 MB, free: 15.58 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.46e-05/0.2466, allocations: 7.969 kB / 394 MB, free: 15.57 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007925/0.2546, allocations: 4.973 MB / 398.9 MB, free: 10.44 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.953e-06/0.2546, allocations: 4 kB / 399 MB, free: 10.43 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004096/0.255, allocations: 195.7 kB / 399.1 MB, free: 10.24 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001046/0.256, allocations: 0.539 MB / 399.7 MB, free: 9.691 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.635e-05/0.2561, allocations: 36.05 kB / 399.7 MB, free: 9.656 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004273/0.2604, allocations: 5.683 MB / 405.4 MB, free: 3.68 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002695/0.2631, allocations: 4.041 MB / 409.4 MB, free: 15.43 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002124/0.2652, allocations: 1.621 MB / 411.1 MB, free: 13.72 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003578/0.2655, allocations: 198.4 kB / 411.3 MB, free: 13.53 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001681/0.2657, allocations: 39.98 kB / 411.3 MB, free: 13.49 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003965/0.2661, allocations: 35.98 kB / 411.3 MB, free: 13.45 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002097/0.2663, allocations: 144.9 kB / 411.5 MB, free: 13.31 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.9e-05/0.2664, allocations: 43.98 kB / 411.5 MB, free: 13.27 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0008123/0.2672, allocations: 0.7351 MB / 412.2 MB, free: 12.51 MB / 378.7 MB Notification: Performance of sort global known variables: time 6e-08/0.2672, allocations: 0 / 412.2 MB, free: 12.51 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002851/0.2701, allocations: 0.8827 MB / 413.1 MB, free: 11.63 MB / 378.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.0002935/0.2703, allocations: 156.2 kB / 413.3 MB, free: 11.46 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002996/0.2733, allocations: 2.493 MB / 415.8 MB, free: 8.941 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001125/0.2735, allocations: 55.94 kB / 415.8 MB, free: 8.883 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001151/0.2746, allocations: 1.082 MB / 416.9 MB, free: 7.754 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009308/0.2755, allocations: 337.3 kB / 417.2 MB, free: 7.438 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009287/0.2848, allocations: 6.544 MB / 423.8 MB, free: 0.7695 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001217/0.286, allocations: 1.039 MB / 424.8 MB, free: 15.71 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001076/0.2871, allocations: 355.8 kB / 425.2 MB, free: 15.36 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005868/0.2877, allocations: 425.1 kB / 425.6 MB, free: 14.95 MB / 394.7 MB Notification: Performance of SimCode: time 1.673e-06/0.2877, allocations: 0 / 425.6 MB, free: 14.95 MB / 394.7 MB Notification: Performance of Templates: time 0.1498/0.4375, allocations: 29.02 MB / 454.6 MB, free: 119.7 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.6357552357949317]