Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_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.KinematicLoop_DynamicStateSelection,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection") translateModel(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_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.003207/0.003207, allocations: 180 kB / 7.453 MB, free: 2.512 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.345/1.345, allocations: 221.4 MB / 229.3 MB, free: 3.07 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.0009976/0.0009975, allocations: 100.3 kB / 280.1 MB, free: 1.344 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04499/0.04499, allocations: 8.845 MB / 339.7 MB, free: 5.785 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 5.08e-06/5.18e-06, allocations: 0 / 398.1 MB, free: 67.44 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06772/0.06774, allocations: 52.38 MB / 450.5 MB, free: 15.12 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2298/0.2975, allocations: 88.1 MB / 0.526 GB, free: 5.367 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001787/0.2978, allocations: 73 kB / 0.5261 GB, free: 5.336 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.1921/0.4898, allocations: 71.47 MB / 0.5958 GB, free: 4.848 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000118/0.49, allocations: 64 kB / 0.5959 GB, free: 4.785 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: 1368 * Number of variables: 1368 Notification: Performance of Generate backend data structure: time 0.0138/0.5038, allocations: 3.96 MB / 0.5998 GB, free: 0.7656 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.665e-05/0.5039, allocations: 8.031 kB / 0.5998 GB, free: 0.7578 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009825/0.5137, allocations: 1.676 MB / 0.6014 GB, free: 15.07 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004259/0.518, allocations: 1.926 MB / 0.6033 GB, free: 13.1 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001517/0.5181, allocations: 120 kB / 0.6034 GB, free: 12.98 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001028/0.5192, allocations: 203.9 kB / 0.6036 GB, free: 12.78 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009534/0.5287, allocations: 6.121 MB / 0.6096 GB, free: 6.656 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01248/0.5412, allocations: 8.183 MB / 0.6176 GB, free: 14 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001085/0.5413, allocations: 31.7 kB / 0.6176 GB, free: 13.97 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005398/0.5419, allocations: 12 kB / 0.6176 GB, free: 13.96 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001371/0.5433, allocations: 1.096 MB / 0.6187 GB, free: 12.86 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.186/0.7293, allocations: 29.67 MB / 0.6477 GB, free: 98.73 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001842/0.7311, allocations: 1.364 MB / 0.649 GB, free: 98.7 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00123/0.7324, allocations: 0.9684 MB / 0.6499 GB, free: 98.69 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005875/0.7383, allocations: 5.425 MB / 0.6552 GB, free: 95.74 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.151e-05/0.7383, allocations: 49.84 kB / 0.6553 GB, free: 95.7 MB / 458.7 MB Notification: Performance of pre-optimization done (n=179): time 4.208e-06/0.7383, allocations: 0 / 0.6553 GB, free: 95.7 MB / 458.7 MB Notification: Performance of matching and sorting (n=239): time 0.01842/0.7568, allocations: 9.501 MB / 0.6646 GB, free: 94.56 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.741e-05/0.7568, allocations: 74.69 kB / 0.6646 GB, free: 94.5 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002604/0.7594, allocations: 2.224 MB / 0.6668 GB, free: 94.22 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001087/0.7595, allocations: 27.58 kB / 0.6668 GB, free: 94.19 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008177/0.7604, allocations: 2.394 MB / 0.6692 GB, free: 92.79 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000458/0.7608, allocations: 0.8383 MB / 0.67 GB, free: 92.27 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002011/0.761, allocations: 0 / 0.67 GB, free: 92.27 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002596/0.7613, allocations: 0.5755 MB / 0.6706 GB, free: 91.95 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002124/0.7634, allocations: 1.651 MB / 0.6722 GB, free: 91.94 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00294/0.7664, allocations: 4.378 MB / 0.6764 GB, free: 88.46 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003194/0.7696, allocations: 2.767 MB / 0.6791 GB, free: 88.42 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.433e-05/0.7696, allocations: 27.03 kB / 0.6792 GB, free: 88.42 MB / 458.7 MB Notification: Performance of matching and sorting (n=696) (initialization): time 0.008896/0.7785, allocations: 6.123 MB / 0.6852 GB, free: 88.07 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.415e-05/0.7786, allocations: 7.344 kB / 0.6852 GB, free: 88.07 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.518e-05/0.7786, allocations: 94.12 kB / 0.6852 GB, free: 88.07 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001727/0.7804, allocations: 0.703 MB / 0.6859 GB, free: 88.02 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003377/0.7838, allocations: 1.112 MB / 0.687 GB, free: 87.93 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01028/0.7941, allocations: 11.39 MB / 0.6981 GB, free: 81.35 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003495/0.7976, allocations: 155.2 kB / 0.6983 GB, free: 81.35 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004185/0.798, allocations: 310.6 kB / 0.6986 GB, free: 81.35 MB / 458.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: fixedTranslation1.frame_b.phi:DUMMY_STATE(flow=false unit = "rad" ) "Angle (counter-clockwise)" type: Real fixedTranslation2.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: 437 * Number of states: 0 () * Number of discrete variables: 27 (fixedTranslation3.color[3],fixedTranslation3.color[2],fixedTranslation3.color[1],fixedTranslation2.color[3],fixedTranslation2.color[2],fixedTranslation2.color[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],revolute4.cylinderColor[3],revolute4.cylinderColor[2],revolute4.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (618): * Single equations (assignments): 607 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 9,(2,100.0%) 17,(1,100.0%) 1,(2,100.0%) 10} * Non-linear torn systems: 1 {2 10} Notification: Performance of prepare postOptimizeDAE: time 0.0006532/0.7987, allocations: 361.9 kB / 0.6989 GB, free: 81.07 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003166/0.799, allocations: 248.9 kB / 0.6992 GB, free: 80.94 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005109/0.8041, allocations: 3.185 MB / 0.7023 GB, free: 80.76 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004914/0.809, allocations: 2.785 MB / 0.705 GB, free: 80.61 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.849e-05/0.8091, allocations: 10.94 kB / 0.705 GB, free: 80.61 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.099e-05/0.8091, allocations: 9.75 kB / 0.705 GB, free: 80.61 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0173/0.8264, allocations: 9.497 MB / 0.7143 GB, free: 77.1 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.007e-05/0.8264, allocations: 1.375 kB / 0.7143 GB, free: 77.1 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001247/0.8277, allocations: 261.5 kB / 0.7145 GB, free: 77.08 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001954/0.8297, allocations: 0.7119 MB / 0.7152 GB, free: 76.9 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000147/0.8298, allocations: 14.09 kB / 0.7153 GB, free: 76.89 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01169/0.8415, allocations: 11.45 MB / 0.7264 GB, free: 68.71 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005431/0.847, allocations: 5.298 MB / 0.7316 GB, free: 63.72 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006443/0.8535, allocations: 4.892 MB / 0.7364 GB, free: 59.31 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006115/0.8541, allocations: 320.7 kB / 0.7367 GB, free: 58.99 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005032/0.8546, allocations: 11.56 kB / 0.7367 GB, free: 58.98 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001233/0.8558, allocations: 45.81 kB / 0.7367 GB, free: 58.95 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002085/0.8561, allocations: 104.5 kB / 0.7368 GB, free: 58.9 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001393/0.8562, allocations: 69.77 kB / 0.7369 GB, free: 58.84 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.002089/0.8583, allocations: 1.479 MB / 0.7384 GB, free: 57.52 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004344/0.8627, allocations: 0.8438 MB / 0.7392 GB, free: 56.68 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 4 ($STATESET2.x,$STATESET1.x[2],$STATESET1.x[1],revolute4.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (158): * Single equations (assignments): 149 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 7,(2,100.0%) 15,(1,100.0%) 1,(3,88.9%) 13} * Non-linear torn systems: 1 {2 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003761/0.863, allocations: 157.2 kB / 0.7393 GB, free: 56.54 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006026/0.8691, allocations: 4.568 MB / 0.7438 GB, free: 52.33 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.8691, allocations: 0 / 0.7438 GB, free: 52.33 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00257/0.8717, allocations: 1.944 MB / 0.7457 GB, free: 50.5 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001199/0.8729, allocations: 235.9 kB / 0.7459 GB, free: 50.31 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01139/0.8843, allocations: 6.636 MB / 0.7524 GB, free: 44.27 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003825/0.8881, allocations: 3.238 MB / 0.7556 GB, free: 41.7 MB / 458.7 MB Notification: Performance of SimCode: time 4.81e-07/0.8881, allocations: 1.969 kB / 0.7556 GB, free: 41.7 MB / 458.7 MB Notification: Performance of Templates: time 0.05952/0.9477, allocations: 35.24 MB / 0.79 GB, free: 12.77 MB / 458.7 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.sim & ./PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.pipe 2>&1)