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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001513/0.001513, allocations: 101.3 kB / 16.4 MB, free: 6.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001762/0.001762, allocations: 195.7 kB / 19.36 MB, free: 3.73 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.626/1.626, allocations: 222.9 MB / 245 MB, free: 15.02 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.04873/0.04873, allocations: 9.128 MB / 306.3 MB, free: 3.773 MB / 238.1 MB " [Timeout remaining time 180] Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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 0.001977/0.001977, allocations: 67.88 kB / 423.4 MB, free: 20.03 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09999/0.102, allocations: 51.44 MB / 474.8 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection): time 0.01106/0.1131, allocations: 9.721 MB / 484.5 MB, free: 6.789 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005486/0.1186, allocations: 2.842 MB / 487.4 MB, free: 3.938 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007374/0.1194, allocations: 39.94 kB / 487.4 MB, free: 3.898 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008819/0.1203, allocations: 417.1 kB / 487.8 MB, free: 3.488 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003132/0.1234, allocations: 1.533 MB / 489.3 MB, free: 1.949 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004761/0.1239, allocations: 187.7 kB / 489.5 MB, free: 1.766 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003386/0.1273, allocations: 2.856 MB / 492.4 MB, free: 14.9 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00141/0.1287, allocations: 1.083 MB / 493.5 MB, free: 13.79 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001291/0.13, allocations: 1.027 MB / 494.5 MB, free: 12.75 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001832/0.1319, allocations: 1.459 MB / 495.9 MB, free: 11.29 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004676/0.1324, allocations: 260 kB / 496.2 MB, free: 11.04 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001528/0.1339, allocations: 0.8621 MB / 497.1 MB, free: 10.17 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001276/0.1352, allocations: 1.352 MB / 498.4 MB, free: 8.816 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001818/0.137, allocations: 1.755 MB / 0.4884 GB, free: 7.051 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007182/0.1442, allocations: 5.489 MB / 0.4938 GB, free: 1.539 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.536e-06/0.1443, allocations: 0 / 0.4938 GB, free: 1.539 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.364e-06/0.1443, allocations: 3.938 kB / 0.4938 GB, free: 1.535 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001518/0.1444, allocations: 0 / 0.4938 GB, free: 1.535 MB / 366.1 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.01427/0.1587, allocations: 5.27 MB / 0.499 GB, free: 12.19 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.939e-05/0.1588, allocations: 8.031 kB / 0.499 GB, free: 12.18 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007429/0.1663, allocations: 1.827 MB / 0.5007 GB, free: 10.35 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003413/0.1697, allocations: 1.513 MB / 0.5022 GB, free: 8.789 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002134/0.17, allocations: 180.3 kB / 0.5024 GB, free: 8.609 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006763/0.1706, allocations: 227.8 kB / 0.5026 GB, free: 8.387 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2354/0.406, allocations: 8.949 MB / 0.5114 GB, free: 39.25 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001148/0.4062, allocations: 29.5 kB / 0.5114 GB, free: 39.24 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004757/0.4067, allocations: 109.8 kB / 0.5115 GB, free: 39.24 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005241/0.4119, allocations: 2.017 MB / 0.5135 GB, free: 39.22 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02462/0.4366, allocations: 7.966 MB / 0.5212 GB, free: 36.69 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04037/0.477, allocations: 28.54 MB / 0.5491 GB, free: 16.12 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006223/0.4832, allocations: 2.819 MB / 0.5519 GB, free: 13.18 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001219/0.4845, allocations: 0.9855 MB / 0.5528 GB, free: 12.19 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006668/0.4912, allocations: 6.476 MB / 0.5591 GB, free: 5.227 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.838e-05/0.4912, allocations: 43.88 kB / 0.5592 GB, free: 5.176 MB / 382.1 MB Notification: Performance of pre-optimization done (n=155): time 3.086e-06/0.4912, allocations: 0 / 0.5592 GB, free: 5.176 MB / 382.1 MB Notification: Performance of matching and sorting (n=197): time 0.02079/0.512, allocations: 9.82 MB / 0.5688 GB, free: 11.42 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.009181/0.5213, allocations: 6.783 MB / 0.5754 GB, free: 4.332 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00488/0.5262, allocations: 3.032 MB / 0.5784 GB, free: 1.289 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003166/0.5265, allocations: 53.7 kB / 0.5784 GB, free: 1.23 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002071/0.5286, allocations: 2.446 MB / 0.5808 GB, free: 14.76 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001003/0.5296, allocations: 0.7596 MB / 0.5815 GB, free: 13.99 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001408/0.531, allocations: 0.9453 MB / 0.5825 GB, free: 13.04 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001579/0.5312, allocations: 301.1 kB / 0.5828 GB, free: 12.74 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002686/0.5339, allocations: 1.54 MB / 0.5843 GB, free: 11.19 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005066/0.539, allocations: 4.129 MB / 0.5883 GB, free: 5.789 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008709/0.5477, allocations: 6.097 MB / 0.5942 GB, free: 14.43 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.463e-05/0.5478, allocations: 32 kB / 0.5943 GB, free: 14.4 MB / 430.1 MB Notification: Performance of matching and sorting (n=621) (initialization): time 0.01188/0.5597, allocations: 6.089 MB / 0.6002 GB, free: 8.305 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.826e-05/0.5598, allocations: 44 kB / 0.6003 GB, free: 8.262 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001227/0.56, allocations: 92.09 kB / 0.6004 GB, free: 8.172 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001539/0.5615, allocations: 0.5767 MB / 0.6009 GB, free: 7.59 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003393/0.5649, allocations: 1.025 MB / 0.6019 GB, free: 6.562 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01202/0.5769, allocations: 9.321 MB / 0.611 GB, free: 12.82 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003355/0.5803, allocations: 247.9 kB / 0.6113 GB, free: 12.58 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000476/0.5808, allocations: 285 kB / 0.6115 GB, free: 12.3 MB / 446.1 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.002754/0.5836, allocations: 1.73 MB / 0.6132 GB, free: 10.56 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004761/0.5841, allocations: 282.1 kB / 0.6135 GB, free: 10.29 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005421/0.5895, allocations: 2.906 MB / 0.6163 GB, free: 7.352 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001171/0.5896, allocations: 35.92 kB / 0.6164 GB, free: 7.316 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.548e-06/0.5897, allocations: 4 kB / 0.6164 GB, free: 7.312 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.007e-05/0.5897, allocations: 11.95 kB / 0.6164 GB, free: 7.301 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01715/0.6068, allocations: 9.264 MB / 0.6254 GB, free: 13.86 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-05/0.607, allocations: 12.08 kB / 0.6254 GB, free: 13.85 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008049/0.6078, allocations: 211.8 kB / 0.6256 GB, free: 13.64 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001621/0.6094, allocations: 0.6137 MB / 0.6262 GB, free: 13.02 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001063/0.6096, allocations: 35.98 kB / 0.6263 GB, free: 12.99 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01315/0.6227, allocations: 9.491 MB / 0.6355 GB, free: 3.074 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.007718/0.6305, allocations: 5.933 MB / 0.6413 GB, free: 12.84 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008305/0.6389, allocations: 4.242 MB / 0.6455 GB, free: 8.531 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001155/0.6401, allocations: 359.2 kB / 0.6458 GB, free: 8.16 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003595/0.6404, allocations: 35.94 kB / 0.6458 GB, free: 8.125 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001031/0.6415, allocations: 87.89 kB / 0.6459 GB, free: 8.039 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003885/0.6419, allocations: 129.1 kB / 0.6461 GB, free: 7.914 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001368/0.642, allocations: 56.05 kB / 0.6461 GB, free: 7.859 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003324/0.6453, allocations: 1.94 MB / 0.648 GB, free: 5.914 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.6454, allocations: 3.938 kB / 0.648 GB, free: 5.91 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004819/0.6502, allocations: 0.8985 MB / 0.6489 GB, free: 5.012 MB / 478.1 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.0005115/0.6507, allocations: 178.8 kB / 0.6491 GB, free: 4.824 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007683/0.6584, allocations: 4.229 MB / 0.6532 GB, free: 0.5781 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.223e-06/0.6584, allocations: 0.8125 kB / 0.6532 GB, free: 0.5781 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003088/0.6615, allocations: 1.754 MB / 0.6549 GB, free: 14.79 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002551/0.6641, allocations: 441.1 kB / 0.6553 GB, free: 14.37 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01432/0.6784, allocations: 7.65 MB / 0.6628 GB, free: 6.617 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003749/0.6823, allocations: 2.833 MB / 0.6656 GB, free: 3.754 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003294/0.6856, allocations: 1.314 MB / 0.6668 GB, free: 2.434 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006092/0.6862, allocations: 203.4 kB / 0.667 GB, free: 2.234 MB / 494.1 MB Notification: Performance of SimCode: time 1.152e-06/0.6862, allocations: 0 / 0.667 GB, free: 2.234 MB / 494.1 MB Notification: Performance of Templates: time 0.06714/0.7534, allocations: 32.56 MB / 0.6988 GB, free: 1.836 MB / 0.5137 GB " [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: 6.680128397420049]