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.0006732/0.0006732, allocations: 81.05 kB / 9.981 MB, free: 0.707 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009468/0.00162, allocations: 440 kB / 10.41 MB, free: 284 kB / 10.45 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.0007314/0.0007314, allocations: 157.1 kB / 11.33 MB, free: 2.844 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009809/0.001712, allocations: 475.6 kB / 11.79 MB, free: 2.375 MB / 13.93 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.001/1.001, allocations: 177.2 MB / 189.7 MB, free: 5.234 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0881/1.09, allocations: 53.66 MB / 243.4 MB, free: 15.5 MB / 250.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.02889/0.02889, allocations: 7.177 MB / 251.3 MB, free: 7.773 MB / 250.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.004605/0.03349, allocations: 2.557 MB / 253.9 MB, free: 5.211 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.453e-06/1.453e-06, allocations: 0 / 255.2 MB, free: 3.922 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.453e-05/2.598e-05, allocations: 2.312 kB / 255.2 MB, free: 3.918 MB / 250.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection): time 0.01067/0.01069, allocations: 9.399 MB / 264.6 MB, free: 10.48 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006428/0.01712, allocations: 2.966 MB / 267.5 MB, free: 7.5 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001469/0.01859, allocations: 47.81 kB / 267.6 MB, free: 7.453 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001122/0.01971, allocations: 464.9 kB / 268 MB, free: 6.996 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003921/0.02364, allocations: 1.621 MB / 269.6 MB, free: 5.367 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005265/0.02416, allocations: 175.5 kB / 269.8 MB, free: 5.195 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003679/0.02784, allocations: 2.942 MB / 272.8 MB, free: 2.246 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00155/0.02939, allocations: 0.9527 MB / 273.7 MB, free: 1.258 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1117/0.1411, allocations: 1.657 MB / 275.4 MB, free: 3.215 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002094/0.1432, allocations: 1.395 MB / 276.8 MB, free: 3.215 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006365/0.1439, allocations: 262 kB / 277 MB, free: 3.215 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00143/0.1453, allocations: 0.8611 MB / 277.9 MB, free: 3.215 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009291/0.1462, allocations: 1.266 MB / 279.1 MB, free: 3.215 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009331/0.1472, allocations: 0.782 MB / 279.9 MB, free: 3.215 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003217/0.1504, allocations: 3.39 MB / 283.3 MB, free: 2.699 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.378e-06/0.1504, allocations: 4.656 kB / 283.3 MB, free: 2.699 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.392e-06/0.1504, allocations: 0 / 283.3 MB, free: 2.699 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001228/0.1505, allocations: 0 / 283.3 MB, free: 2.699 MB / 266.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.007383/0.1579, allocations: 4.922 MB / 288.2 MB, free: 1.074 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.595e-05/0.1579, allocations: 9.578 kB / 288.3 MB, free: 1.074 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002644/0.1606, allocations: 1.065 MB / 289.3 MB, free: 1.051 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001382/0.162, allocations: 1.11 MB / 290.4 MB, free: 0.6562 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.964e-05/0.162, allocations: 172 kB / 290.6 MB, free: 0.6484 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002665/0.1623, allocations: 236 kB / 290.8 MB, free: 0.6445 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003997/0.1663, allocations: 4.021 MB / 294.8 MB, free: 15.36 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.345e-05/0.1664, allocations: 29.67 kB / 294.9 MB, free: 15.35 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002123/0.1666, allocations: 114.9 kB / 295 MB, free: 15.35 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001502/0.1681, allocations: 1.728 MB / 296.7 MB, free: 14.52 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003771/0.1718, allocations: 2.25 MB / 299 MB, free: 12.41 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01705/0.1889, allocations: 21.48 MB / 320.5 MB, free: 7.281 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004054/0.1929, allocations: 1.33 MB / 321.8 MB, free: 6 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004839/0.1934, allocations: 305.9 kB / 322.1 MB, free: 5.711 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004852/0.1983, allocations: 2.967 MB / 325 MB, free: 2.805 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.941e-05/0.1983, allocations: 47.16 kB / 325.1 MB, free: 2.754 MB / 298.7 MB Notification: Performance of pre-optimization done (n=155): time 3.667e-06/0.1983, allocations: 5.25 kB / 325.1 MB, free: 2.75 MB / 298.7 MB Notification: Performance of matching and sorting (n=197): time 0.01326/0.2116, allocations: 5.77 MB / 330.9 MB, free: 13.08 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004448/0.216, allocations: 4.714 MB / 335.6 MB, free: 8.246 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001917/0.218, allocations: 2.045 MB / 337.6 MB, free: 6.531 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.099e-05/0.218, allocations: 53.7 kB / 337.7 MB, free: 6.473 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00117/0.2192, allocations: 2.42 MB / 340.1 MB, free: 4.145 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004802/0.2197, allocations: 0.7438 MB / 340.8 MB, free: 3.441 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001226/0.2209, allocations: 0.9184 MB / 341.8 MB, free: 2.617 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001015/0.221, allocations: 353 kB / 342.1 MB, free: 2.289 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001175/0.2222, allocations: 0.5902 MB / 342.7 MB, free: 1.691 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002336/0.2245, allocations: 3.092 MB / 345.8 MB, free: 13.48 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004497/0.229, allocations: 4.518 MB / 350.3 MB, free: 7.848 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.913e-05/0.2291, allocations: 28 kB / 350.3 MB, free: 7.82 MB / 330.7 MB Notification: Performance of matching and sorting (n=633) (initialization): time 0.005021/0.2341, allocations: 3.362 MB / 353.7 MB, free: 4.422 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.644e-05/0.2341, allocations: 48.06 kB / 353.7 MB, free: 4.375 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001003/0.2342, allocations: 101.8 kB / 353.8 MB, free: 4.277 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00106/0.2353, allocations: 488.9 kB / 354.3 MB, free: 3.801 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002402/0.2377, allocations: 1.131 MB / 355.5 MB, free: 2.668 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005317/0.243, allocations: 6.214 MB / 361.7 MB, free: 12.24 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001891/0.2449, allocations: 187.9 kB / 361.8 MB, free: 12.06 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002897/0.2452, allocations: 240 kB / 362.1 MB, free: 11.82 MB / 346.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.003389/0.2486, allocations: 498.3 kB / 362.6 MB, free: 11.33 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005064/0.2491, allocations: 174 kB / 362.7 MB, free: 11.16 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002525/0.2516, allocations: 1.209 MB / 363.9 MB, free: 9.934 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.718e-05/0.2517, allocations: 23.98 kB / 364 MB, free: 9.91 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.153e-05/0.2517, allocations: 4 kB / 364 MB, free: 9.906 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.867e-05/0.2517, allocations: 9.375 kB / 364 MB, free: 9.898 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01091/0.2626, allocations: 4.964 MB / 368.9 MB, free: 5.133 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.747e-05/0.2627, allocations: 13.53 kB / 369 MB, free: 5.121 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007866/0.2634, allocations: 235.6 kB / 369.2 MB, free: 4.891 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006937/0.2641, allocations: 202.4 kB / 369.4 MB, free: 4.691 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001757/0.2659, allocations: 0.5354 MB / 369.9 MB, free: 4.145 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001419/0.266, allocations: 31.98 kB / 370 MB, free: 4.113 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006606/0.2726, allocations: 5.694 MB / 375.6 MB, free: 14.13 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004143/0.2768, allocations: 4.06 MB / 379.7 MB, free: 9.863 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003211/0.28, allocations: 1.628 MB / 381.3 MB, free: 8.148 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002831/0.2803, allocations: 32.11 kB / 381.4 MB, free: 8.117 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005047/0.2808, allocations: 39.92 kB / 381.4 MB, free: 8.078 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000225/0.281, allocations: 144.9 kB / 381.5 MB, free: 7.934 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.62e-05/0.2811, allocations: 43.98 kB / 381.6 MB, free: 7.891 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001381/0.2825, allocations: 1.453 MB / 383 MB, free: 6.152 MB / 362.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2825, allocations: 0 / 383 MB, free: 6.152 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002515/0.285, allocations: 0.8867 MB / 383.9 MB, free: 5.266 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.0002736/0.2852, allocations: 149.6 kB / 384.1 MB, free: 5.113 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002853/0.2881, allocations: 2.575 MB / 386.7 MB, free: 2.516 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 0.000124/0.2882, allocations: 66.56 kB / 386.7 MB, free: 2.441 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0011/0.2893, allocations: 1.191 MB / 387.9 MB, free: 1.215 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001513/0.2908, allocations: 2.163 MB / 390.1 MB, free: 14.73 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01009/0.3009, allocations: 6.703 MB / 396.8 MB, free: 7.91 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009546/0.3019, allocations: 1.031 MB / 397.8 MB, free: 6.859 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0007995/0.3027, allocations: 343.8 kB / 398.1 MB, free: 6.52 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005231/0.3032, allocations: 405.2 kB / 398.5 MB, free: 6.125 MB / 378.7 MB Notification: Performance of SimCode: time 1.363e-06/0.3032, allocations: 0 / 398.5 MB, free: 6.125 MB / 378.7 MB Notification: Performance of Templates: time 0.1423/0.4455, allocations: 29.41 MB / 427.9 MB, free: 120.8 MB / 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.3559644911438227]