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.0008765/0.0008765, allocations: 72.89 kB / 19.94 MB, free: 4.391 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.0009403/0.0009403, allocations: 173 kB / 23.36 MB, free: 0.9727 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.9397/0.9397, allocations: 177.1 MB / 203.8 MB, free: 5.473 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.03854/0.03854, allocations: 7.185 MB / 267.4 MB, free: 5.941 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.232e-06/1.232e-06, allocations: 0 / 286.1 MB, free: 3.301 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.388e-05/1.511e-05, allocations: 2.312 kB / 286.1 MB, free: 3.297 MB / 266.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection): time 0.1173/0.1173, allocations: 9.341 MB / 295.4 MB, free: 16.66 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004815/0.1221, allocations: 2.947 MB / 298.4 MB, free: 14.91 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006963/0.1228, allocations: 47.81 kB / 298.4 MB, free: 14.89 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007265/0.1235, allocations: 437.2 kB / 298.8 MB, free: 14.71 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002359/0.1259, allocations: 1.645 MB / 300.5 MB, free: 13.9 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003385/0.1262, allocations: 183.1 kB / 300.7 MB, free: 13.8 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002406/0.1286, allocations: 2.931 MB / 303.6 MB, free: 12.36 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009868/0.1296, allocations: 0.9626 MB / 304.6 MB, free: 11.61 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001538/0.1312, allocations: 1.588 MB / 306.1 MB, free: 10.6 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00147/0.1326, allocations: 1.402 MB / 307.6 MB, free: 9.77 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003594/0.133, allocations: 262.6 kB / 307.8 MB, free: 9.77 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009097/0.1339, allocations: 0.8684 MB / 308.7 MB, free: 9.387 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005317/0.1344, allocations: 1.418 MB / 310.1 MB, free: 7.965 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004568/0.1349, allocations: 0.9531 MB / 311 MB, free: 7.012 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001708/0.1366, allocations: 3.618 MB / 314.7 MB, free: 3.379 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.1366, allocations: 4 kB / 314.7 MB, free: 3.375 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.1366, allocations: 0 / 314.7 MB, free: 3.375 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.185e-05/0.1366, allocations: 0 / 314.7 MB, free: 3.375 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.004429/0.1411, allocations: 4.206 MB / 318.9 MB, free: 15.12 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.14e-05/0.1411, allocations: 12.62 kB / 318.9 MB, free: 15.11 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002727/0.1438, allocations: 1.062 MB / 319.9 MB, free: 14.05 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001118/0.1449, allocations: 1.093 MB / 321 MB, free: 12.93 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.655e-05/0.145, allocations: 180.7 kB / 321.2 MB, free: 12.75 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002569/0.1453, allocations: 235.9 kB / 321.4 MB, free: 12.52 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003949/0.1492, allocations: 4.024 MB / 325.5 MB, free: 8.023 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000329/0.1496, allocations: 27.77 kB / 325.5 MB, free: 7.996 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001973/0.1498, allocations: 111.8 kB / 325.6 MB, free: 7.887 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001504/0.1513, allocations: 1.822 MB / 327.4 MB, free: 6.062 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003311/0.1546, allocations: 2.245 MB / 329.7 MB, free: 3.809 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01629/0.1709, allocations: 21.53 MB / 351.2 MB, free: 13.68 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002974/0.1738, allocations: 1.369 MB / 352.6 MB, free: 12.3 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003705/0.1742, allocations: 300.8 kB / 352.9 MB, free: 12.01 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003808/0.178, allocations: 2.988 MB / 355.9 MB, free: 8.996 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.227e-05/0.178, allocations: 59.81 kB / 355.9 MB, free: 8.926 MB / 314.7 MB Notification: Performance of pre-optimization done (n=155): time 2.525e-06/0.178, allocations: 0 / 355.9 MB, free: 8.926 MB / 314.7 MB Notification: Performance of matching and sorting (n=197): time 0.009702/0.1877, allocations: 5.556 MB / 361.5 MB, free: 3.324 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0039/0.1916, allocations: 4.692 MB / 366.2 MB, free: 14.42 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001606/0.1933, allocations: 2.044 MB / 368.2 MB, free: 12.34 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.404e-05/0.1933, allocations: 53.7 kB / 368.3 MB, free: 12.28 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001158/0.1945, allocations: 2.422 MB / 370.7 MB, free: 9.828 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003419/0.1948, allocations: 0.7478 MB / 371.4 MB, free: 9.074 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007188/0.1955, allocations: 0.9101 MB / 372.3 MB, free: 8.152 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.475e-05/0.1956, allocations: 353.8 kB / 372.7 MB, free: 7.801 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008912/0.1965, allocations: 0.5746 MB / 373.3 MB, free: 7.219 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002079/0.1986, allocations: 3.091 MB / 376.4 MB, free: 2.836 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002724/0.2013, allocations: 4.211 MB / 380.6 MB, free: 13.32 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.262e-05/0.2013, allocations: 24 kB / 380.6 MB, free: 13.3 MB / 346.7 MB Notification: Performance of matching and sorting (n=633) (initialization): time 0.003744/0.2051, allocations: 3.374 MB / 384 MB, free: 9.879 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.661e-05/0.2051, allocations: 44 kB / 384 MB, free: 9.836 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.836e-05/0.2052, allocations: 92.08 kB / 384.1 MB, free: 9.746 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007862/0.206, allocations: 479.1 kB / 384.6 MB, free: 9.27 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001602/0.2076, allocations: 1.064 MB / 385.6 MB, free: 8.203 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004219/0.2118, allocations: 6.196 MB / 391.8 MB, free: 1.719 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001221/0.213, allocations: 184 kB / 392 MB, free: 1.539 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002203/0.2132, allocations: 252 kB / 392.2 MB, free: 1.293 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.0007084/0.2139, allocations: 488.9 kB / 392.7 MB, free: 0.8047 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002001/0.2141, allocations: 183.8 kB / 392.9 MB, free: 0.625 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001456/0.2156, allocations: 1.204 MB / 394.1 MB, free: 15.39 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.186e-05/0.2156, allocations: 24 kB / 394.1 MB, free: 15.37 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.73e-06/0.2156, allocations: 4 kB / 394.1 MB, free: 15.37 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.096e-05/0.2156, allocations: 11.62 kB / 394.1 MB, free: 15.36 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006032/0.2217, allocations: 4.974 MB / 399.1 MB, free: 10.22 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.742e-06/0.2217, allocations: 8 kB / 399.1 MB, free: 10.21 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004456/0.2221, allocations: 208.1 kB / 399.3 MB, free: 10.01 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009861/0.2231, allocations: 0.5365 MB / 399.9 MB, free: 9.465 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.507e-05/0.2232, allocations: 43.98 kB / 399.9 MB, free: 9.422 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004319/0.2275, allocations: 5.687 MB / 405.6 MB, free: 3.445 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002808/0.2303, allocations: 4.047 MB / 409.6 MB, free: 15.19 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001802/0.2321, allocations: 1.624 MB / 411.3 MB, free: 13.48 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001969/0.2323, allocations: 198.4 kB / 411.5 MB, free: 13.28 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001476/0.2325, allocations: 35.97 kB / 411.5 MB, free: 13.25 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003762/0.2328, allocations: 40.03 kB / 411.5 MB, free: 13.21 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001768/0.233, allocations: 140.9 kB / 411.7 MB, free: 13.07 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.341e-05/0.2331, allocations: 43.98 kB / 411.7 MB, free: 13.03 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000616/0.2337, allocations: 0.739 MB / 412.5 MB, free: 12.27 MB / 378.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2337, allocations: 0 / 412.5 MB, free: 12.27 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002156/0.2359, allocations: 0.8866 MB / 413.3 MB, free: 11.38 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.0002416/0.2361, allocations: 152.1 kB / 413.5 MB, free: 11.22 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0024/0.2385, allocations: 2.489 MB / 416 MB, free: 8.699 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 9.413e-05/0.2386, allocations: 56.75 kB / 416 MB, free: 8.641 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001197/0.2398, allocations: 1.085 MB / 417.1 MB, free: 7.508 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008167/0.2406, allocations: 341.2 kB / 417.5 MB, free: 7.184 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006764/0.2474, allocations: 6.547 MB / 424 MB, free: 0.5156 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008935/0.2483, allocations: 1.035 MB / 425 MB, free: 15.46 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0008002/0.2491, allocations: 351.8 kB / 425.4 MB, free: 15.12 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005812/0.2496, allocations: 425.2 kB / 425.8 MB, free: 14.7 MB / 394.7 MB Notification: Performance of SimCode: time 1.253e-06/0.2496, allocations: 0 / 425.8 MB, free: 14.7 MB / 394.7 MB Notification: Performance of Templates: time 0.1679/0.4175, allocations: 29.03 MB / 454.8 MB, free: 119.5 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 -s gbode -gbm=radauIIA3 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.6043603848665953]