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.001331/0.001331, allocations: 92.2 kB / 20.19 MB, free: 4.363 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.001481/0.001481, allocations: 173 kB / 23.49 MB, free: 1.059 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 1.01/1.01, allocations: 177.1 MB / 203.8 MB, free: 5.621 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.02929/0.02929, allocations: 7.19 MB / 267.5 MB, free: 6.109 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.573e-06/1.573e-06, allocations: 0 / 338.9 MB, free: 10.55 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.984e-05/2.141e-05, allocations: 4.422 kB / 338.9 MB, free: 10.55 MB / 266.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection): time 0.01362/0.01364, allocations: 9.434 MB / 348.3 MB, free: 1.066 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0106/0.02424, allocations: 2.85 MB / 351.2 MB, free: 14.21 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007517/0.02499, allocations: 43.88 kB / 351.2 MB, free: 14.16 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004076/0.02907, allocations: 440.8 kB / 351.6 MB, free: 13.73 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005627/0.03469, allocations: 1.648 MB / 353.3 MB, free: 12.07 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003545/0.03505, allocations: 183.6 kB / 353.5 MB, free: 11.89 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.002597/0.03764, allocations: 2.932 MB / 356.4 MB, free: 8.953 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002727/0.04037, allocations: 0.9314 MB / 357.3 MB, free: 7.988 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001573/0.04194, allocations: 1.594 MB / 358.9 MB, free: 6.391 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001329/0.04327, allocations: 1.461 MB / 360.4 MB, free: 4.926 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002151/0.04349, allocations: 260 kB / 360.6 MB, free: 4.672 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008511/0.04434, allocations: 0.8542 MB / 361.5 MB, free: 3.816 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007561/0.0451, allocations: 1.421 MB / 362.9 MB, free: 2.391 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000624/0.04572, allocations: 0.9499 MB / 363.9 MB, free: 1.438 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002743/0.04846, allocations: 3.622 MB / 367.5 MB, free: 13.8 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.045e-06/0.04847, allocations: 4 kB / 367.5 MB, free: 13.8 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.132e-06/0.04847, allocations: 0 / 367.5 MB, free: 13.8 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.324e-05/0.04849, allocations: 0 / 367.5 MB, free: 13.8 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.007203/0.05569, allocations: 5.543 MB / 373 MB, free: 8.191 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.097e-05/0.05572, allocations: 8.625 kB / 373 MB, free: 8.184 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004179/0.0599, allocations: 2.288 MB / 375.3 MB, free: 5.891 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001476/0.06138, allocations: 1.378 MB / 376.7 MB, free: 4.48 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.643e-05/0.06148, allocations: 176.8 kB / 376.9 MB, free: 4.305 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002874/0.06176, allocations: 239.9 kB / 377.1 MB, free: 4.07 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005702/0.06747, allocations: 4.769 MB / 381.9 MB, free: 14.68 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.5e-05/0.06752, allocations: 31.77 kB / 381.9 MB, free: 14.65 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002253/0.06775, allocations: 107.9 kB / 382 MB, free: 14.54 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001825/0.06957, allocations: 2.013 MB / 384 MB, free: 12.53 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005384/0.07495, allocations: 2.764 MB / 386.8 MB, free: 9.754 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1369/0.2118, allocations: 29.99 MB / 416.8 MB, free: 39.25 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003574/0.2154, allocations: 1.423 MB / 418.2 MB, free: 39.2 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005424/0.2159, allocations: 414.6 kB / 418.6 MB, free: 39.18 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004264/0.2202, allocations: 3.391 MB / 422 MB, free: 38.79 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.848e-05/0.2202, allocations: 50.89 kB / 422 MB, free: 38.75 MB / 330.7 MB Notification: Performance of pre-optimization done (n=155): time 3.737e-06/0.2202, allocations: 0 / 422 MB, free: 38.75 MB / 330.7 MB Notification: Performance of matching and sorting (n=197): time 0.01104/0.2313, allocations: 6.431 MB / 428.5 MB, free: 37.55 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003873/0.2351, allocations: 6.19 MB / 434.7 MB, free: 33.12 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001879/0.237, allocations: 2.265 MB / 436.9 MB, free: 32.68 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.205e-05/0.2371, allocations: 52.23 kB / 437 MB, free: 32.65 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008144/0.2379, allocations: 2.6 MB / 439.6 MB, free: 31.06 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000364/0.2383, allocations: 0.7666 MB / 440.3 MB, free: 30.61 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007819/0.239, allocations: 1.02 MB / 441.4 MB, free: 30.49 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.097e-05/0.2391, allocations: 0.5226 MB / 441.9 MB, free: 30.01 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008415/0.24, allocations: 0.5194 MB / 442.4 MB, free: 29.98 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001734/0.2417, allocations: 4.324 MB / 446.7 MB, free: 24.84 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003093/0.2448, allocations: 5.349 MB / 452.1 MB, free: 18.85 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.714e-05/0.2448, allocations: 24 kB / 452.1 MB, free: 18.83 MB / 330.7 MB Notification: Performance of matching and sorting (n=629) (initialization): time 0.004276/0.2491, allocations: 4.148 MB / 456.3 MB, free: 15.58 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.322e-05/0.2491, allocations: 40 kB / 456.3 MB, free: 15.54 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.227e-05/0.2492, allocations: 92 kB / 456.4 MB, free: 15.45 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009156/0.2501, allocations: 0.5372 MB / 456.9 MB, free: 15.03 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001492/0.2516, allocations: 1.032 MB / 458 MB, free: 14.13 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004202/0.2558, allocations: 8.342 MB / 466.3 MB, free: 5.688 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001489/0.2573, allocations: 247.9 kB / 466.5 MB, free: 5.445 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002096/0.2575, allocations: 280 kB / 466.8 MB, free: 5.172 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.0007482/0.2582, allocations: 0.5228 MB / 467.3 MB, free: 4.645 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002336/0.2584, allocations: 295.3 kB / 467.6 MB, free: 4.355 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00193/0.2604, allocations: 1.567 MB / 469.2 MB, free: 2.762 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.316e-05/0.2604, allocations: 34.95 kB / 469.2 MB, free: 2.73 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/0.2604, allocations: 8 kB / 469.2 MB, free: 2.723 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.142e-05/0.2604, allocations: 7.969 kB / 469.2 MB, free: 2.715 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007597/0.268, allocations: 6.727 MB / 476 MB, free: 11.86 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.403e-06/0.2681, allocations: 7.312 kB / 476 MB, free: 11.86 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004559/0.2685, allocations: 215.6 kB / 476.2 MB, free: 11.64 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001361/0.2699, allocations: 0.5196 MB / 476.7 MB, free: 11.12 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.123e-05/0.27, allocations: 39.98 kB / 476.7 MB, free: 11.08 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005883/0.2758, allocations: 7.868 MB / 484.6 MB, free: 2.863 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003455/0.2793, allocations: 5.457 MB / 490.1 MB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002886/0.2822, allocations: 2.129 MB / 492.2 MB, free: 10.94 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003139/0.2825, allocations: 218.4 kB / 492.4 MB, free: 10.72 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001619/0.2827, allocations: 39.94 kB / 492.4 MB, free: 10.68 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004723/0.2831, allocations: 95.81 kB / 492.5 MB, free: 10.59 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002161/0.2833, allocations: 133 kB / 492.7 MB, free: 10.46 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.558e-05/0.2834, allocations: 62 kB / 492.7 MB, free: 10.4 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0011/0.2845, allocations: 0.9969 MB / 493.7 MB, free: 9.387 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.2845, allocations: 8.031 kB / 493.7 MB, free: 9.379 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002661/0.2872, allocations: 0.8857 MB / 494.6 MB, free: 8.496 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.0003061/0.2875, allocations: 162.7 kB / 494.8 MB, free: 8.332 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003586/0.2911, allocations: 2.931 MB / 497.7 MB, free: 5.359 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.327e-06/0.2911, allocations: 0 / 497.7 MB, free: 5.359 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001536/0.2926, allocations: 1.392 MB / 499.1 MB, free: 3.91 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009381/0.2936, allocations: 326.7 kB / 499.4 MB, free: 3.598 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00816/0.3017, allocations: 6.566 MB / 0.4941 GB, free: 12.89 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009691/0.3027, allocations: 1.043 MB / 0.4951 GB, free: 11.83 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.00155/0.3042, allocations: 1.096 MB / 0.4962 GB, free: 10.73 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003062/0.3045, allocations: 182.3 kB / 0.4964 GB, free: 10.55 MB / 378.7 MB Notification: Performance of SimCode: time 1.212e-06/0.3045, allocations: 3.938 kB / 0.4964 GB, free: 10.55 MB / 378.7 MB Notification: Performance of Templates: time 0.036/0.3405, allocations: 26.55 MB / 0.5223 GB, free: 440 kB / 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.8734765520785004]