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.001116/0.001116, allocations: 81.95 kB / 19.87 MB, free: 4.617 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.001153/0.001153, allocations: 173.7 kB / 23.28 MB, free: 1.219 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.074/1.074, allocations: 177.2 MB / 203.7 MB, free: 5.496 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.02899/0.02899, allocations: 7.185 MB / 267.4 MB, free: 5.898 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 2.184e-06/2.184e-06, allocations: 0 / 339.3 MB, free: 9.938 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.56e-05/3.778e-05, allocations: 10.25 kB / 339.3 MB, free: 9.926 MB / 266.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection): time 0.01117/0.0112, allocations: 9.258 MB / 348.6 MB, free: 0.6172 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00877/0.01997, allocations: 2.834 MB / 351.4 MB, free: 13.77 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002041/0.02201, allocations: 47.81 kB / 351.5 MB, free: 13.73 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000866/0.02288, allocations: 437 kB / 351.9 MB, free: 13.3 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003121/0.026, allocations: 1.652 MB / 353.5 MB, free: 11.64 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003652/0.02637, allocations: 187.5 kB / 353.7 MB, free: 11.45 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.002959/0.02933, allocations: 2.931 MB / 356.7 MB, free: 8.512 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000748/0.03007, allocations: 0.9314 MB / 357.6 MB, free: 7.547 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001125/0.0312, allocations: 1.594 MB / 359.2 MB, free: 5.949 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001549/0.03275, allocations: 1.461 MB / 360.6 MB, free: 4.484 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002394/0.03299, allocations: 260 kB / 360.9 MB, free: 4.23 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00102/0.03401, allocations: 0.8542 MB / 361.7 MB, free: 3.375 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007989/0.03481, allocations: 1.418 MB / 363.2 MB, free: 1.953 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006369/0.03544, allocations: 0.946 MB / 364.1 MB, free: 1.004 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003009/0.03845, allocations: 3.634 MB / 367.7 MB, free: 13.36 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.087e-06/0.03846, allocations: 0 / 367.7 MB, free: 13.36 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.03846, allocations: 0 / 367.7 MB, free: 13.36 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.501e-05/0.03848, allocations: 0 / 367.7 MB, free: 13.36 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.007123/0.0456, allocations: 5.484 MB / 373.2 MB, free: 7.809 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.926e-05/0.04566, allocations: 12.62 kB / 373.2 MB, free: 7.797 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003495/0.04916, allocations: 1.333 MB / 374.6 MB, free: 6.461 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001467/0.05063, allocations: 1.318 MB / 375.9 MB, free: 5.113 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001031/0.05073, allocations: 180.7 kB / 376.1 MB, free: 4.934 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002826/0.05101, allocations: 235.9 kB / 376.3 MB, free: 4.703 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005084/0.0561, allocations: 4.366 MB / 380.7 MB, free: 15.71 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.46e-05/0.05615, allocations: 27.7 kB / 380.7 MB, free: 15.68 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002043/0.05635, allocations: 111.8 kB / 380.8 MB, free: 15.57 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001592/0.05795, allocations: 1.818 MB / 382.6 MB, free: 13.76 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003472/0.06142, allocations: 2.24 MB / 384.9 MB, free: 11.51 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2695/0.3309, allocations: 29.8 MB / 414.7 MB, free: 49.61 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003723/0.3346, allocations: 1.315 MB / 416 MB, free: 49.56 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005588/0.3352, allocations: 352.7 kB / 416.3 MB, free: 49.54 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00549/0.3407, allocations: 3.21 MB / 419.5 MB, free: 49.16 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.919e-05/0.3407, allocations: 49.17 kB / 419.6 MB, free: 49.11 MB / 330.7 MB Notification: Performance of pre-optimization done (n=155): time 3.086e-06/0.3407, allocations: 0 / 419.6 MB, free: 49.11 MB / 330.7 MB Notification: Performance of matching and sorting (n=197): time 0.009885/0.3506, allocations: 5.586 MB / 425.2 MB, free: 48.25 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00346/0.354, allocations: 5.928 MB / 431.1 MB, free: 43.86 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001812/0.3559, allocations: 2.272 MB / 433.4 MB, free: 43.42 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.849e-05/0.3559, allocations: 51.58 kB / 433.4 MB, free: 43.39 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001003/0.3569, allocations: 2.624 MB / 436 MB, free: 41.81 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004639/0.3574, allocations: 0.7796 MB / 436.8 MB, free: 41.36 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009403/0.3583, allocations: 1.047 MB / 437.9 MB, free: 41.24 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.568e-05/0.3584, allocations: 0.5264 MB / 438.4 MB, free: 40.76 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006805/0.3591, allocations: 474.4 kB / 438.8 MB, free: 40.64 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002351/0.3614, allocations: 4.325 MB / 443.2 MB, free: 34.83 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003836/0.3653, allocations: 5.294 MB / 448.5 MB, free: 28.27 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.321e-05/0.3653, allocations: 28 kB / 448.5 MB, free: 28.24 MB / 330.7 MB Notification: Performance of matching and sorting (n=633) (initialization): time 0.006994/0.3723, allocations: 3.886 MB / 452.4 MB, free: 24.4 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.445e-05/0.3724, allocations: 44 kB / 452.4 MB, free: 24.36 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.148e-05/0.3725, allocations: 92 kB / 452.5 MB, free: 24.27 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009835/0.3734, allocations: 494.4 kB / 453 MB, free: 23.78 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001961/0.3754, allocations: 1.018 MB / 454 MB, free: 22.76 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0052/0.3806, allocations: 8.017 MB / 462 MB, free: 14.4 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004365/0.385, allocations: 187.9 kB / 462.2 MB, free: 14.22 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006483/0.3856, allocations: 244 kB / 462.5 MB, free: 13.98 MB / 330.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.001679/0.3873, allocations: 0.5273 MB / 463 MB, free: 13.45 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005759/0.3879, allocations: 286.4 kB / 463.3 MB, free: 13.16 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001843/0.3897, allocations: 1.419 MB / 464.7 MB, free: 11.72 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.621e-05/0.3898, allocations: 24 kB / 464.7 MB, free: 11.7 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.416e-06/0.3898, allocations: 4 kB / 464.7 MB, free: 11.69 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.454e-05/0.3898, allocations: 7.969 kB / 464.7 MB, free: 11.68 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01022/0.4, allocations: 6.439 MB / 471.2 MB, free: 5.078 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.15e-05/0.4, allocations: 4 kB / 471.2 MB, free: 5.074 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004964/0.4005, allocations: 195.7 kB / 471.3 MB, free: 4.883 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00102/0.4015, allocations: 476.3 kB / 471.8 MB, free: 4.41 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.676e-05/0.4016, allocations: 35.98 kB / 471.8 MB, free: 4.375 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006052/0.4077, allocations: 7.5 MB / 479.3 MB, free: 12.54 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004275/0.412, allocations: 5.235 MB / 484.6 MB, free: 7.082 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00366/0.4156, allocations: 1.924 MB / 486.5 MB, free: 5.059 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000832/0.4164, allocations: 222.4 kB / 486.7 MB, free: 4.84 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000216/0.4167, allocations: 36.09 kB / 486.8 MB, free: 4.805 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000463/0.4171, allocations: 35.98 kB / 486.8 MB, free: 4.77 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003384/0.4175, allocations: 144.9 kB / 486.9 MB, free: 4.629 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.641e-05/0.4175, allocations: 47.81 kB / 487 MB, free: 4.586 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001312/0.4189, allocations: 0.9345 MB / 487.9 MB, free: 3.633 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.4189, allocations: 0 / 487.9 MB, free: 3.633 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.004993/0.4238, allocations: 0.8828 MB / 488.8 MB, free: 2.75 MB / 346.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.0005583/0.4244, allocations: 166.9 kB / 489 MB, free: 2.578 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.005192/0.4296, allocations: 2.793 MB / 491.8 MB, free: 15.75 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.167e-05/0.4296, allocations: 5.812 kB / 491.8 MB, free: 15.74 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001718/0.4313, allocations: 1.304 MB / 493.1 MB, free: 14.38 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0018/0.4331, allocations: 321.9 kB / 493.4 MB, free: 14.07 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02193/0.4551, allocations: 6.533 MB / 499.9 MB, free: 7.379 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002933/0.458, allocations: 1.046 MB / 0.4892 GB, free: 6.32 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.002794/0.4608, allocations: 351.7 kB / 0.4896 GB, free: 5.973 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001306/0.4621, allocations: 466 kB / 0.49 GB, free: 5.516 MB / 362.7 MB Notification: Performance of SimCode: time 3.106e-06/0.4621, allocations: 0 / 0.49 GB, free: 5.516 MB / 362.7 MB Notification: Performance of Templates: time 0.05654/0.5186, allocations: 29.06 MB / 0.5184 GB, free: 8.805 MB / 394.7 MB " [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=240 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.428428560029715]