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/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/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) 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) 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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.003531/0.003531, allocations: 178.1 kB / 7.454 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.292/1.292, allocations: 221.4 MB / 229.3 MB, free: 2.992 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001065/0.001065, allocations: 101.2 kB / 280.1 MB, free: 1.273 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04327/0.04327, allocations: 8.834 MB / 339.7 MB, free: 5.727 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 5.42e-06/5.45e-06, allocations: 0 / 398.1 MB, free: 67.39 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0698/0.06982, allocations: 52.39 MB / 450.5 MB, free: 15.06 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2276/0.2975, allocations: 87.08 MB / 0.525 GB, free: 6.348 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001508/0.2976, allocations: 70.91 kB / 0.5251 GB, free: 6.316 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.1824/0.4801, allocations: 67.69 MB / 0.5912 GB, free: 9.633 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000112/0.4802, allocations: 56 kB / 0.5912 GB, free: 9.578 MB / 410.7 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.01286/0.4931, allocations: 3.736 MB / 0.5949 GB, free: 5.781 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.543e-05/0.4932, allocations: 8.031 kB / 0.5949 GB, free: 5.773 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009745/0.5029, allocations: 1.649 MB / 0.5965 GB, free: 4.117 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004202/0.5071, allocations: 1.86 MB / 0.5983 GB, free: 2.211 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00015/0.5073, allocations: 111.9 kB / 0.5984 GB, free: 2.102 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001064/0.5084, allocations: 195.9 kB / 0.5986 GB, free: 1.91 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009371/0.5177, allocations: 5.897 MB / 0.6044 GB, free: 12 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01241/0.5302, allocations: 7.874 MB / 0.612 GB, free: 3.684 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001119/0.5303, allocations: 31.75 kB / 0.6121 GB, free: 3.652 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005864/0.5309, allocations: 16 kB / 0.6121 GB, free: 3.637 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001402/0.5323, allocations: 1.053 MB / 0.6131 GB, free: 2.582 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03824/0.5706, allocations: 29.09 MB / 0.6415 GB, free: 4.551 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002214/0.5728, allocations: 1.195 MB / 0.6427 GB, free: 3.352 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001435/0.5743, allocations: 0.8368 MB / 0.6435 GB, free: 2.52 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1272/0.7015, allocations: 4.856 MB / 0.6482 GB, free: 171.8 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.114e-05/0.7015, allocations: 44.75 kB / 0.6483 GB, free: 171.7 MB / 458.7 MB Notification: Performance of pre-optimization done (n=152): time 3.517e-06/0.7016, allocations: 0 / 0.6483 GB, free: 171.7 MB / 458.7 MB Notification: Performance of matching and sorting (n=194): time 0.01506/0.7166, allocations: 7.853 MB / 0.656 GB, free: 170.7 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.418e-05/0.7167, allocations: 73.31 kB / 0.656 GB, free: 170.6 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002673/0.7194, allocations: 2.213 MB / 0.6582 GB, free: 170.3 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 8.975e-05/0.7195, allocations: 25.7 kB / 0.6582 GB, free: 170.3 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008096/0.7203, allocations: 2.346 MB / 0.6605 GB, free: 168.9 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003806/0.7207, allocations: 0.6929 MB / 0.6612 GB, free: 168.5 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001844/0.7209, allocations: 0 / 0.6612 GB, free: 168.5 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002476/0.7211, allocations: 0.5608 MB / 0.6617 GB, free: 168.2 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001874/0.723, allocations: 1.504 MB / 0.6632 GB, free: 168.2 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002814/0.7258, allocations: 4.183 MB / 0.6673 GB, free: 164.7 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002939/0.7288, allocations: 2.565 MB / 0.6698 GB, free: 164.7 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.373e-05/0.7288, allocations: 25.88 kB / 0.6698 GB, free: 164.7 MB / 458.7 MB Notification: Performance of matching and sorting (n=649) (initialization): time 0.008044/0.7369, allocations: 5.574 MB / 0.6753 GB, free: 164.5 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.691e-05/0.7369, allocations: 6.281 kB / 0.6753 GB, free: 164.5 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.319e-05/0.737, allocations: 99.72 kB / 0.6754 GB, free: 164.5 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001332/0.7383, allocations: 0.5667 MB / 0.6759 GB, free: 164.4 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003324/0.7417, allocations: 1.057 MB / 0.6769 GB, free: 164.3 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00761/0.7493, allocations: 7.759 MB / 0.6845 GB, free: 160.3 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003411/0.7527, allocations: 134.8 kB / 0.6847 GB, free: 160.3 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003995/0.7531, allocations: 292.4 kB / 0.6849 GB, free: 160.3 MB / 458.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pistonRod.frame_b.phi:DUMMY_STATE(flow=false unit = "rad" ) "Angle (counter-clockwise)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 434 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (582): * Single equations (assignments): 575 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(4,68.8%) 20,(1,100.0%) 9} * Non-linear torn systems: 1 {1 9} Notification: Performance of prepare postOptimizeDAE: time 0.0006094/0.7538, allocations: 352.3 kB / 0.6853 GB, free: 160 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003013/0.7541, allocations: 227.9 kB / 0.6855 GB, free: 159.9 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004372/0.7585, allocations: 2.673 MB / 0.6881 GB, free: 159.4 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001262/0.7586, allocations: 29.44 kB / 0.6881 GB, free: 159.4 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.929e-06/0.7586, allocations: 6.844 kB / 0.6881 GB, free: 159.4 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.589e-05/0.7586, allocations: 13.92 kB / 0.6881 GB, free: 159.4 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01291/0.7716, allocations: 8.138 MB / 0.6961 GB, free: 156.2 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.532e-06/0.7716, allocations: 0 / 0.6961 GB, free: 156.2 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008816/0.7725, allocations: 195.6 kB / 0.6963 GB, free: 156.2 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001615/0.7741, allocations: 0.56 MB / 0.6968 GB, free: 156.1 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001054/0.7742, allocations: 9.344 kB / 0.6968 GB, free: 156.1 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008914/0.7831, allocations: 7.937 MB / 0.7046 GB, free: 150.8 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005503/0.7887, allocations: 5.232 MB / 0.7097 GB, free: 146.5 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005324/0.794, allocations: 4.04 MB / 0.7136 GB, free: 142.8 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005793/0.7946, allocations: 304.4 kB / 0.7139 GB, free: 142.5 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003669/0.795, allocations: 6.812 kB / 0.7139 GB, free: 142.5 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001044/0.796, allocations: 32.98 kB / 0.714 GB, free: 142.5 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000164/0.7962, allocations: 88.08 kB / 0.714 GB, free: 142.5 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001117/0.7963, allocations: 51.52 kB / 0.7141 GB, free: 142.4 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.001955/0.7983, allocations: 1.475 MB / 0.7155 GB, free: 141.1 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004056/0.8024, allocations: 0.7613 MB / 0.7163 GB, free: 140.4 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 ($STATESET2.x,$STATESET1.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (121): * Single equations (assignments): 114 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,88.9%) 17,(2,100.0%) 11} * Non-linear torn systems: 1 {2 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003778/0.8028, allocations: 138.5 kB / 0.7164 GB, free: 140.2 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005223/0.808, allocations: 3.903 MB / 0.7202 GB, free: 136.7 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.808, allocations: 3.938 kB / 0.7202 GB, free: 136.7 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002053/0.8101, allocations: 1.477 MB / 0.7217 GB, free: 135.3 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001183/0.8113, allocations: 229.2 kB / 0.7219 GB, free: 135.1 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009701/0.821, allocations: 6.052 MB / 0.7278 GB, free: 129.6 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003253/0.8243, allocations: 3.096 MB / 0.7308 GB, free: 127.2 MB / 458.7 MB Notification: Performance of SimCode: time 7.31e-07/0.8243, allocations: 0 / 0.7308 GB, free: 127.2 MB / 458.7 MB Notification: Performance of Templates: time 0.05127/0.8756, allocations: 31.24 MB / 0.7613 GB, free: 102 MB / 458.7 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)