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.002559/0.002559, allocations: 85.48 kB / 19.44 MB, free: 344 kB / 13.93 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.003141/0.003141, allocations: 173.2 kB / 22.76 MB, free: 1.664 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.627/1.627, allocations: 177.1 MB / 203.1 MB, free: 5.605 MB / 186.7 MB " [Timeout remaining time 178] 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.05389/0.05389, allocations: 7.168 MB / 266.7 MB, free: 6.078 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.683e-06/1.683e-06, allocations: 0 / 338.1 MB, free: 10.55 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.216e-05/2.385e-05, allocations: 6.031 kB / 338.1 MB, free: 10.55 MB / 266.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection): time 0.007454/0.007478, allocations: 9.406 MB / 347.5 MB, free: 1.098 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005636/0.01311, allocations: 2.84 MB / 350.4 MB, free: 14.25 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009693/0.01408, allocations: 47.81 kB / 350.4 MB, free: 14.2 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001054/0.01514, allocations: 436.9 kB / 350.9 MB, free: 13.77 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003793/0.01893, allocations: 1.644 MB / 352.5 MB, free: 12.12 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004945/0.01942, allocations: 187.5 kB / 352.7 MB, free: 11.94 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.004014/0.02344, allocations: 2.933 MB / 355.6 MB, free: 8.992 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00161/0.02505, allocations: 0.9353 MB / 356.6 MB, free: 8.023 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002316/0.02736, allocations: 1.594 MB / 358.1 MB, free: 6.426 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002304/0.02967, allocations: 1.453 MB / 359.6 MB, free: 4.969 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004733/0.03014, allocations: 264 kB / 359.9 MB, free: 4.711 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001932/0.03207, allocations: 0.858 MB / 360.7 MB, free: 3.852 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00155/0.03362, allocations: 1.422 MB / 362.1 MB, free: 2.426 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001373/0.035, allocations: 0.9421 MB / 363.1 MB, free: 1.48 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007319/0.04232, allocations: 5.458 MB / 368.5 MB, free: 12 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.04232, allocations: 0 / 368.5 MB, free: 12 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.654e-06/0.04232, allocations: 0 / 368.5 MB, free: 12 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.989e-05/0.04242, allocations: 0 / 368.5 MB, free: 12 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.01534/0.05776, allocations: 6.008 MB / 374.5 MB, free: 5.934 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.167e-05/0.0578, allocations: 12.62 kB / 374.6 MB, free: 5.922 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008442/0.06624, allocations: 2.284 MB / 376.8 MB, free: 3.633 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00398/0.07022, allocations: 1.386 MB / 378.2 MB, free: 2.215 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002023/0.07042, allocations: 176.7 kB / 378.4 MB, free: 2.039 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006714/0.0711, allocations: 235.9 kB / 378.6 MB, free: 1.809 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01289/0.08398, allocations: 5.373 MB / 384 MB, free: 11.82 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.81e-05/0.08408, allocations: 31.77 kB / 384 MB, free: 11.79 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003582/0.08444, allocations: 115.8 kB / 384.1 MB, free: 11.67 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003788/0.08823, allocations: 2.013 MB / 386.2 MB, free: 9.656 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01215/0.1004, allocations: 3.394 MB / 389.6 MB, free: 6.254 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1782/0.2786, allocations: 42.21 MB / 431.8 MB, free: 48.16 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005982/0.2846, allocations: 1.601 MB / 433.4 MB, free: 48.1 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009471/0.2855, allocations: 0.5029 MB / 433.9 MB, free: 48.08 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007779/0.2933, allocations: 3.582 MB / 437.4 MB, free: 47.58 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.889e-05/0.2933, allocations: 49.45 kB / 437.5 MB, free: 47.53 MB / 330.7 MB Notification: Performance of pre-optimization done (n=155): time 3.817e-06/0.2933, allocations: 0 / 437.5 MB, free: 47.53 MB / 330.7 MB Notification: Performance of matching and sorting (n=197): time 0.01751/0.3108, allocations: 6.908 MB / 444.4 MB, free: 45.56 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.005777/0.3166, allocations: 6.52 MB / 450.9 MB, free: 40.31 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003543/0.3202, allocations: 3.106 MB / 454 MB, free: 38.25 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002445/0.3204, allocations: 54.39 kB / 454.1 MB, free: 38.19 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00117/0.3216, allocations: 2.761 MB / 456.8 MB, free: 35.48 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006146/0.3222, allocations: 0.8217 MB / 457.7 MB, free: 34.66 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001398/0.3236, allocations: 1.232 MB / 458.9 MB, free: 33.42 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001181/0.3237, allocations: 0.5511 MB / 459.4 MB, free: 32.86 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001417/0.3251, allocations: 0.6561 MB / 460.1 MB, free: 32.2 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002575/0.3277, allocations: 4.646 MB / 464.8 MB, free: 25.81 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00436/0.3321, allocations: 5.81 MB / 470.6 MB, free: 18.31 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.061e-05/0.3321, allocations: 28 kB / 470.6 MB, free: 18.29 MB / 330.7 MB Notification: Performance of matching and sorting (n=629) (initialization): time 0.007449/0.3396, allocations: 4.445 MB / 475 MB, free: 13.83 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.272e-05/0.3397, allocations: 48.06 kB / 475.1 MB, free: 13.79 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001031/0.3398, allocations: 92 kB / 475.2 MB, free: 13.7 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001762/0.3415, allocations: 0.5762 MB / 475.7 MB, free: 13.11 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00288/0.3444, allocations: 1.033 MB / 476.8 MB, free: 12.07 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007483/0.3519, allocations: 8.848 MB / 485.6 MB, free: 2.875 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00332/0.3552, allocations: 251.8 kB / 485.9 MB, free: 2.629 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006778/0.3559, allocations: 280 kB / 486.1 MB, free: 2.355 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.001908/0.3578, allocations: 0.6453 MB / 486.8 MB, free: 1.699 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005178/0.3583, allocations: 297.8 kB / 487.1 MB, free: 1.41 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003684/0.362, allocations: 1.731 MB / 488.8 MB, free: 15.65 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001175/0.3621, allocations: 31.98 kB / 488.8 MB, free: 15.62 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.588e-05/0.3621, allocations: 4 kB / 488.8 MB, free: 15.62 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.93e-05/0.3622, allocations: 10.88 kB / 488.9 MB, free: 15.61 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01907/0.3812, allocations: 7.945 MB / 496.8 MB, free: 7.539 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.207e-05/0.3812, allocations: 4 kB / 496.8 MB, free: 7.535 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008849/0.3821, allocations: 215.6 kB / 497 MB, free: 7.324 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002213/0.3843, allocations: 0.5468 MB / 497.6 MB, free: 6.77 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001398/0.3845, allocations: 39.3 kB / 497.6 MB, free: 6.734 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01221/0.3967, allocations: 8.302 MB / 0.494 GB, free: 14.08 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.007733/0.4044, allocations: 5.669 MB / 0.4996 GB, free: 8.168 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005753/0.4102, allocations: 2.439 MB / 0.502 GB, free: 5.637 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008529/0.411, allocations: 218.4 kB / 0.5022 GB, free: 5.422 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004748/0.4115, allocations: 43.86 kB / 0.5022 GB, free: 5.379 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009768/0.4125, allocations: 87.89 kB / 0.5023 GB, free: 5.293 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003461/0.4128, allocations: 137 kB / 0.5024 GB, free: 5.16 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001255/0.4129, allocations: 55.98 kB / 0.5025 GB, free: 5.105 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.00232/0.4153, allocations: 1.263 MB / 0.5037 GB, free: 3.824 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4153, allocations: 3.938 kB / 0.5037 GB, free: 3.82 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.004013/0.4193, allocations: 0.8899 MB / 0.5046 GB, free: 2.934 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.0004001/0.4197, allocations: 163 kB / 0.5047 GB, free: 2.766 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.007302/0.427, allocations: 3.351 MB / 0.508 GB, free: 15.38 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.648e-06/0.427, allocations: 4.188 kB / 0.508 GB, free: 15.37 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002826/0.4298, allocations: 1.519 MB / 0.5095 GB, free: 13.79 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001785/0.4316, allocations: 337.8 kB / 0.5098 GB, free: 13.47 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0125/0.4441, allocations: 6.722 MB / 0.5164 GB, free: 6.605 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003126/0.4472, allocations: 2.072 MB / 0.5184 GB, free: 4.5 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002837/0.4501, allocations: 1.1 MB / 0.5195 GB, free: 3.395 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004858/0.4506, allocations: 180.4 kB / 0.5197 GB, free: 3.219 MB / 378.7 MB Notification: Performance of SimCode: time 1.643e-06/0.4506, allocations: 0 / 0.5197 GB, free: 3.219 MB / 378.7 MB Notification: Performance of Templates: time 0.06262/0.5132, allocations: 26.55 MB / 0.5456 GB, free: 9.078 MB / 410.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: 6.629978705081157]