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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection") translateModel(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009022/0.0009024, allocations: 97.33 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.008454/0.008454, allocations: 169.8 kB / 16.27 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.425/1.425, allocations: 223.2 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1748/0.1748, allocations: 9.112 MB / 300.5 MB, free: 2.734 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003394/0.0003395, allocations: 8 kB / 363.7 MB, free: 12.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1193/0.1197, allocations: 52.43 MB / 416.1 MB, free: 8.23 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection): time 0.2649/0.3847, allocations: 38.6 MB / 454.7 MB, free: 19.38 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01797/0.4027, allocations: 8.387 MB / 463.1 MB, free: 14.26 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008861/0.4116, allocations: 145.3 kB / 463.3 MB, free: 14.24 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001266/0.4129, allocations: 349.3 kB / 463.6 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00387/0.4168, allocations: 1.429 MB / 465 MB, free: 13.44 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005515/0.4174, allocations: 162.6 kB / 465.2 MB, free: 13.35 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003693/0.4211, allocations: 3.909 MB / 469.1 MB, free: 11.99 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001306/0.4224, allocations: 0.961 MB / 470.1 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001193/0.4236, allocations: 0.8607 MB / 470.9 MB, free: 11.28 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00162/0.4252, allocations: 1.463 MB / 472.4 MB, free: 10.76 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003827/0.4256, allocations: 146.5 kB / 472.5 MB, free: 10.76 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001513/0.4271, allocations: 0.7932 MB / 473.3 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001039/0.4282, allocations: 1.265 MB / 474.6 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001116/0.4293, allocations: 1.676 MB / 476.3 MB, free: 8.918 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005705/0.435, allocations: 4.93 MB / 481.2 MB, free: 7.387 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.003e-06/0.4351, allocations: 1.062 kB / 481.2 MB, free: 7.387 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.925e-06/0.4351, allocations: 4 kB / 481.2 MB, free: 7.383 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001745/0.4352, allocations: 0 / 481.2 MB, free: 7.383 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1302 * Number of variables: 1302 Notification: Performance of Generate backend data structure: time 0.01364/0.4489, allocations: 4.447 MB / 485.7 MB, free: 5.535 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.859e-05/0.449, allocations: 9.812 kB / 485.7 MB, free: 5.535 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007867/0.4568, allocations: 1.852 MB / 487.5 MB, free: 5.211 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00301/0.4599, allocations: 1.497 MB / 489 MB, free: 4.281 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001397/0.46, allocations: 178.1 kB / 489.2 MB, free: 4.195 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005452/0.4606, allocations: 229.1 kB / 489.4 MB, free: 4.113 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01557/0.4761, allocations: 8.954 MB / 498.4 MB, free: 15.58 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.016e-05/0.4763, allocations: 33.33 kB / 498.4 MB, free: 15.56 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003475/0.4766, allocations: 108.8 kB / 498.5 MB, free: 15.48 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003374/0.48, allocations: 2.016 MB / 0.4888 GB, free: 14.67 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01919/0.4992, allocations: 7.966 MB / 0.4966 GB, free: 6.812 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05109/0.5503, allocations: 28.58 MB / 0.5245 GB, free: 9.637 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008025/0.5584, allocations: 2.821 MB / 0.5272 GB, free: 6.699 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002027/0.5605, allocations: 0.9863 MB / 0.5282 GB, free: 5.711 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01146/0.572, allocations: 6.464 MB / 0.5345 GB, free: 14.62 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.764e-05/0.5721, allocations: 43.88 kB / 0.5346 GB, free: 14.56 MB / 414.1 MB Notification: Performance of pre-optimization done (n=155): time 4.969e-06/0.5721, allocations: 3.938 kB / 0.5346 GB, free: 14.56 MB / 414.1 MB Notification: Performance of matching and sorting (n=197): time 0.02543/0.5975, allocations: 9.75 MB / 0.5441 GB, free: 4.707 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.008456/0.606, allocations: 6.474 MB / 0.5504 GB, free: 13.93 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006298/0.6123, allocations: 3.027 MB / 0.5534 GB, free: 10.89 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003079/0.6127, allocations: 53.7 kB / 0.5534 GB, free: 10.83 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001675/0.6144, allocations: 2.354 MB / 0.5557 GB, free: 8.441 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009098/0.6153, allocations: 0.7286 MB / 0.5564 GB, free: 7.703 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008048/0.6161, allocations: 392.3 kB / 0.5568 GB, free: 7.312 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001185/0.6162, allocations: 301.1 kB / 0.5571 GB, free: 7.016 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002958/0.6192, allocations: 1.543 MB / 0.5586 GB, free: 5.465 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005969/0.6252, allocations: 4.122 MB / 0.5626 GB, free: 68 kB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008375/0.6336, allocations: 6.107 MB / 0.5686 GB, free: 8.703 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.524e-05/0.6337, allocations: 35.94 kB / 0.5686 GB, free: 8.668 MB / 446.1 MB Notification: Performance of matching and sorting (n=621) (initialization): time 0.01233/0.646, allocations: 6.063 MB / 0.5745 GB, free: 2.59 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000112/0.6462, allocations: 45 kB / 0.5746 GB, free: 2.547 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001557/0.6464, allocations: 88 kB / 0.5747 GB, free: 2.461 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001565/0.6479, allocations: 0.5788 MB / 0.5752 GB, free: 1.875 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003358/0.6513, allocations: 1.022 MB / 0.5762 GB, free: 0.8516 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.26/0.9114, allocations: 8.515 MB / 0.5845 GB, free: 116.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004121/0.9155, allocations: 252.6 kB / 0.5848 GB, free: 116.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007954/0.9163, allocations: 285.7 kB / 0.585 GB, free: 116.8 MB / 446.1 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 (554): * Single equations (assignments): 547 * 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.004399/0.9208, allocations: 1.723 MB / 0.5867 GB, free: 116.7 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006194/0.9214, allocations: 268 kB / 0.587 GB, free: 116.7 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005258/0.9266, allocations: 2.91 MB / 0.5898 GB, free: 116.3 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001172/0.9268, allocations: 40.5 kB / 0.5899 GB, free: 116.3 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.35e-05/0.9268, allocations: 6.094 kB / 0.5899 GB, free: 116.3 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.033e-05/0.9268, allocations: 6.703 kB / 0.5899 GB, free: 116.3 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01783/0.9447, allocations: 9.345 MB / 0.599 GB, free: 112.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.534e-05/0.9447, allocations: 3.438 kB / 0.599 GB, free: 112.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007786/0.9455, allocations: 211.8 kB / 0.5992 GB, free: 112.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001467/0.947, allocations: 0.6107 MB / 0.5998 GB, free: 112.5 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001241/0.9472, allocations: 36.08 kB / 0.5998 GB, free: 112.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009251/0.9564, allocations: 8.721 MB / 0.6084 GB, free: 106.9 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005549/0.962, allocations: 5.687 MB / 0.6139 GB, free: 103.1 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007583/0.9696, allocations: 4.234 MB / 0.618 GB, free: 101.4 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001401/0.9711, allocations: 363.8 kB / 0.6184 GB, free: 101.2 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003398/0.9714, allocations: 32.58 kB / 0.6184 GB, free: 101.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001088/0.9725, allocations: 84.84 kB / 0.6185 GB, free: 101.1 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004661/0.973, allocations: 140.1 kB / 0.6186 GB, free: 101.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000148/0.9732, allocations: 57.61 kB / 0.6187 GB, free: 101.1 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004205/0.9774, allocations: 1.936 MB / 0.6206 GB, free: 100.4 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.9774, allocations: 0 / 0.6206 GB, free: 100.4 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006393/0.9838, allocations: 0.9058 MB / 0.6215 GB, free: 100.3 MB / 446.1 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.0006161/0.9844, allocations: 166.9 kB / 0.6216 GB, free: 100.1 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008972/0.9934, allocations: 4.21 MB / 0.6257 GB, free: 98.52 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.245e-06/0.9935, allocations: 0 / 0.6257 GB, free: 98.52 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003162/0.9966, allocations: 1.739 MB / 0.6274 GB, free: 97.69 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003859/1.001, allocations: 418.4 kB / 0.6278 GB, free: 97.53 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01693/1.017, allocations: 9.362 MB / 0.637 GB, free: 92.27 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002997/1.021, allocations: 2.834 MB / 0.6397 GB, free: 91.04 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003522/1.024, allocations: 1.329 MB / 0.641 GB, free: 90.93 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006245/1.025, allocations: 200.5 kB / 0.6412 GB, free: 90.91 MB / 446.1 MB Notification: Performance of SimCode: time 1.102e-06/1.025, allocations: 0 / 0.6412 GB, free: 90.91 MB / 446.1 MB Notification: Performance of Templates: time 0.05583/1.081, allocations: 33.22 MB / 0.6737 GB, free: 60.55 MB / 446.1 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.makefile (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=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.pipe 2>&1)