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.00102/0.00102, allocations: 77.95 kB / 20.66 MB, free: 3.832 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.001014/0.001014, allocations: 169 kB / 24.05 MB, free: 452 kB / 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.9805/0.9805, allocations: 177.1 MB / 204.5 MB, free: 5.488 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.02896/0.02896, allocations: 7.182 MB / 268.2 MB, free: 5.887 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.533e-06/1.533e-06, allocations: 0 / 340.1 MB, free: 10.98 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.367e-05/2.521e-05, allocations: 6.312 kB / 340.1 MB, free: 10.97 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection): time 0.007641/0.007667, allocations: 9.269 MB / 349.4 MB, free: 1.652 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.005287/0.01295, allocations: 2.835 MB / 352.2 MB, free: 14.81 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001619/0.01457, allocations: 47.81 kB / 352.2 MB, free: 14.76 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001169/0.01574, allocations: 440.8 kB / 352.7 MB, free: 14.33 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004682/0.02042, allocations: 1.645 MB / 354.3 MB, free: 12.68 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005528/0.02098, allocations: 187.5 kB / 354.5 MB, free: 12.49 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.003655/0.02463, allocations: 2.927 MB / 357.4 MB, free: 9.555 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001502/0.02613, allocations: 0.9391 MB / 358.4 MB, free: 8.582 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002658/0.02879, allocations: 1.586 MB / 360 MB, free: 6.992 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001939/0.03073, allocations: 1.465 MB / 361.4 MB, free: 5.523 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006337/0.03136, allocations: 264 kB / 361.7 MB, free: 5.266 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001373/0.03274, allocations: 0.8542 MB / 362.5 MB, free: 4.41 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001202/0.03394, allocations: 1.418 MB / 364 MB, free: 2.988 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001282/0.03522, allocations: 0.9498 MB / 364.9 MB, free: 2.035 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004266/0.03949, allocations: 3.618 MB / 368.5 MB, free: 14.4 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.03949, allocations: 0 / 368.5 MB, free: 14.4 MB / 346.7 MB Notification: Performance of FrontEnd: time 9.22e-07/0.03949, allocations: 4 kB / 368.5 MB, free: 14.4 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.545e-05/0.03958, allocations: 4 kB / 368.5 MB, free: 14.39 MB / 346.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.009159/0.04874, allocations: 5.484 MB / 374 MB, free: 8.848 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.788e-05/0.04879, allocations: 8.625 kB / 374 MB, free: 8.84 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003663/0.05245, allocations: 1.337 MB / 375.4 MB, free: 7.5 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002056/0.0545, allocations: 1.318 MB / 376.7 MB, free: 6.152 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001124/0.05462, allocations: 172.8 kB / 376.8 MB, free: 5.98 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004109/0.05503, allocations: 247.9 kB / 377.1 MB, free: 5.738 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006228/0.06126, allocations: 4.358 MB / 381.4 MB, free: 0.7617 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.464e-05/0.06133, allocations: 31.75 kB / 381.5 MB, free: 0.7305 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002471/0.06158, allocations: 107.9 kB / 381.6 MB, free: 0.625 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001757/0.06334, allocations: 1.814 MB / 383.4 MB, free: 14.81 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005191/0.06853, allocations: 2.252 MB / 385.6 MB, free: 12.54 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02486/0.09339, allocations: 29.79 MB / 415.4 MB, free: 13.98 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003469/0.09686, allocations: 1.319 MB / 416.8 MB, free: 12.65 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004565/0.09731, allocations: 352.7 kB / 417.1 MB, free: 12.3 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004814/0.1021, allocations: 3.206 MB / 420.3 MB, free: 9.07 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.19e-05/0.1022, allocations: 46.7 kB / 420.4 MB, free: 9.016 MB / 394.7 MB Notification: Performance of pre-optimization done (n=155): time 3.767e-06/0.1022, allocations: 0 / 420.4 MB, free: 9.016 MB / 394.7 MB Notification: Performance of matching and sorting (n=197): time 0.01079/0.113, allocations: 5.58 MB / 425.9 MB, free: 3.383 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004172/0.1171, allocations: 5.931 MB / 431.9 MB, free: 13.2 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002036/0.1192, allocations: 2.267 MB / 434.1 MB, free: 10.89 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001705/0.1193, allocations: 53.7 kB / 434.2 MB, free: 10.83 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001144/0.1205, allocations: 2.627 MB / 436.8 MB, free: 8.172 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005157/0.121, allocations: 0.7751 MB / 437.6 MB, free: 7.391 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009014/0.1219, allocations: 1.052 MB / 438.6 MB, free: 6.324 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003226/0.1222, allocations: 0.5315 MB / 439.2 MB, free: 5.785 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007432/0.123, allocations: 469.3 kB / 439.6 MB, free: 5.32 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1313/0.2543, allocations: 4.318 MB / 443.9 MB, free: 122.9 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003552/0.2578, allocations: 5.295 MB / 449.2 MB, free: 117.9 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.7e-05/0.2579, allocations: 25.94 kB / 449.3 MB, free: 117.9 MB / 410.7 MB Notification: Performance of matching and sorting (n=633) (initialization): time 0.005138/0.263, allocations: 3.891 MB / 453.2 MB, free: 117.2 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.3e-05/0.2631, allocations: 43.34 kB / 453.2 MB, free: 117.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.801e-05/0.2632, allocations: 93.53 kB / 453.3 MB, free: 117.2 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000883/0.264, allocations: 493.4 kB / 453.8 MB, free: 117.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001808/0.2658, allocations: 1.016 MB / 454.8 MB, free: 117 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004314/0.2702, allocations: 7.999 MB / 462.8 MB, free: 111.1 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002025/0.2722, allocations: 194.6 kB / 463 MB, free: 111.1 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000258/0.2724, allocations: 246 kB / 463.2 MB, free: 111.1 MB / 410.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.001122/0.2736, allocations: 0.5248 MB / 463.7 MB, free: 110.8 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002719/0.2738, allocations: 299.7 kB / 464 MB, free: 110.8 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001574/0.2754, allocations: 1.409 MB / 465.4 MB, free: 110.6 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.3e-05/0.2755, allocations: 24.88 kB / 465.5 MB, free: 110.6 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.945e-06/0.2755, allocations: 10.16 kB / 465.5 MB, free: 110.6 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.079e-05/0.2755, allocations: 6.75 kB / 465.5 MB, free: 110.6 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007077/0.2825, allocations: 6.422 MB / 471.9 MB, free: 108.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.943e-06/0.2826, allocations: 7.094 kB / 471.9 MB, free: 108.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004007/0.283, allocations: 204.6 kB / 472.1 MB, free: 108.7 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000911/0.2839, allocations: 464.7 kB / 472.6 MB, free: 108.6 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.849e-05/0.2839, allocations: 43.14 kB / 472.6 MB, free: 108.6 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00403/0.288, allocations: 7.486 MB / 480.1 MB, free: 102.4 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003316/0.2913, allocations: 5.235 MB / 485.3 MB, free: 98.01 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00233/0.2936, allocations: 1.922 MB / 487.3 MB, free: 97.14 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003338/0.2939, allocations: 220 kB / 487.5 MB, free: 97 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001622/0.2941, allocations: 35.22 kB / 487.5 MB, free: 96.98 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000414/0.2945, allocations: 39.98 kB / 487.5 MB, free: 96.95 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002002/0.2947, allocations: 144.3 kB / 487.7 MB, free: 96.93 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.36e-05/0.2948, allocations: 44.95 kB / 487.7 MB, free: 96.92 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0008756/0.2957, allocations: 0.9303 MB / 488.7 MB, free: 96.66 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.2957, allocations: 0 / 488.7 MB, free: 96.66 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002868/0.2985, allocations: 0.8813 MB / 489.5 MB, free: 96.55 MB / 410.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.0002996/0.2988, allocations: 167.8 kB / 489.7 MB, free: 96.42 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003299/0.3021, allocations: 2.786 MB / 492.5 MB, free: 95.24 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.879e-06/0.3021, allocations: 0 / 492.5 MB, free: 95.24 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001452/0.3036, allocations: 1.317 MB / 493.8 MB, free: 94.45 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001135/0.3047, allocations: 332.2 kB / 494.1 MB, free: 94.3 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009252/0.314, allocations: 6.54 MB / 0.4889 GB, free: 90.78 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009523/0.3149, allocations: 1.038 MB / 0.4899 GB, free: 90.43 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001073/0.316, allocations: 357.8 kB / 0.4903 GB, free: 90.33 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005817/0.3166, allocations: 459.2 kB / 0.4907 GB, free: 90.25 MB / 410.7 MB Notification: Performance of SimCode: time 2.023e-06/0.3166, allocations: 0 / 0.4907 GB, free: 90.25 MB / 410.7 MB Notification: Performance of Templates: time 0.04257/0.3592, allocations: 29.7 MB / 0.5197 GB, free: 67.02 MB / 410.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: 4.176755803171545]