Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.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.PowerDistanceDemo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo") translateModel(PlanarMechanics.Examples.PowerDistanceDemo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo") [: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.002952/0.002952, allocations: 175.2 kB / 7.451 MB, free: 2.504 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.321/1.321, allocations: 221.4 MB / 229.3 MB, free: 3.137 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.001064/0.001064, allocations: 100.4 kB / 280.1 MB, free: 1.258 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04317/0.04317, allocations: 8.846 MB / 339.7 MB, free: 5.699 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 5.51e-06/5.54e-06, allocations: 0 / 398.1 MB, free: 67.43 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06799/0.06801, allocations: 52.4 MB / 450.5 MB, free: 15.09 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2387/0.3067, allocations: 95.97 MB / 0.5337 GB, free: 13.84 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001939/0.307, allocations: 81.64 kB / 0.5338 GB, free: 13.81 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.2798/0.5868, allocations: 106.1 MB / 0.6373 GB, free: 10.07 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001931/0.587, allocations: 95.98 kB / 0.6374 GB, free: 9.977 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2088 * Number of variables: 2088 Notification: Performance of Generate backend data structure: time 0.01377/0.6008, allocations: 4.76 MB / 0.6421 GB, free: 5.148 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.583e-05/0.6008, allocations: 12.03 kB / 0.6421 GB, free: 5.137 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01738/0.6182, allocations: 3.046 MB / 0.6451 GB, free: 2.078 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1268/0.745, allocations: 2.842 MB / 0.6478 GB, free: 153.8 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002268/0.7453, allocations: 174.5 kB / 0.648 GB, free: 153.8 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001879/0.7472, allocations: 304.8 kB / 0.6483 GB, free: 153.8 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01324/0.7604, allocations: 9.145 MB / 0.6572 GB, free: 153.8 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01929/0.7798, allocations: 13.21 MB / 0.6701 GB, free: 150.6 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001531/0.7799, allocations: 58.5 kB / 0.6702 GB, free: 150.6 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007649/0.7807, allocations: 35.84 kB / 0.6702 GB, free: 150.6 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001591/0.7823, allocations: 1.675 MB / 0.6718 GB, free: 150.6 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05134/0.8337, allocations: 56.98 MB / 0.7275 GB, free: 111.8 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002903/0.8366, allocations: 2.447 MB / 0.7299 GB, free: 110.5 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001495/0.8381, allocations: 1.233 MB / 0.7311 GB, free: 110 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008334/0.8465, allocations: 5.553 MB / 0.7365 GB, free: 106.8 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.729e-05/0.8465, allocations: 64.81 kB / 0.7366 GB, free: 106.7 MB / 458.7 MB Notification: Performance of pre-optimization done (n=208): time 4.428e-06/0.8465, allocations: 3.5 kB / 0.7366 GB, free: 106.7 MB / 458.7 MB Notification: Performance of matching and sorting (n=230): time 0.01661/0.8631, allocations: 10.14 MB / 0.7465 GB, free: 101.8 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.829e-05/0.8632, allocations: 153.8 kB / 0.7466 GB, free: 101.6 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005794/0.869, allocations: 4.05 MB / 0.7506 GB, free: 99.76 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002058/0.8692, allocations: 25.7 kB / 0.7506 GB, free: 99.73 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001475/0.8707, allocations: 4.072 MB / 0.7546 GB, free: 96.06 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005843/0.8713, allocations: 0.8852 MB / 0.7554 GB, free: 95.27 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003057/0.8716, allocations: 0 / 0.7554 GB, free: 95.27 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.000364/0.872, allocations: 0.6737 MB / 0.7561 GB, free: 94.7 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003142/0.8751, allocations: 2.448 MB / 0.7585 GB, free: 92.48 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004807/0.8799, allocations: 7.799 MB / 0.7661 GB, free: 82.52 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00512/0.8851, allocations: 4.509 MB / 0.7705 GB, free: 78.65 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.52e-05/0.8852, allocations: 56 kB / 0.7706 GB, free: 78.59 MB / 458.7 MB Notification: Performance of matching and sorting (n=1132) (initialization): time 0.01291/0.8981, allocations: 9.109 MB / 0.7794 GB, free: 70.54 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.618e-05/0.8981, allocations: 12.03 kB / 0.7795 GB, free: 70.53 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001559/0.8983, allocations: 192 kB / 0.7796 GB, free: 70.34 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008594/0.8992, allocations: 486.7 kB / 0.7801 GB, free: 69.91 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005855/0.905, allocations: 1.939 MB / 0.782 GB, free: 68.2 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003579/0.9086, allocations: 3.293 MB / 0.7852 GB, free: 65.09 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005472/0.9141, allocations: 231.5 kB / 0.7854 GB, free: 64.89 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006938/0.9148, allocations: 0.5303 MB / 0.786 GB, free: 64.36 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 880 * Number of states: 0 () * Number of discrete variables: 44 (distance.arrow.arrowLine.twoHeadedArrow,distance.arrow.headAtOrigin,distance.arrowColor[3],distance.arrowColor[2],distance.arrowColor[1],distance.world.gravityArrowColor[3],distance.world.gravityArrowColor[2],distance.world.gravityArrowColor[1],distance.world.axisColor_x[3],distance.world.axisColor_x[2],distance.world.axisColor_x[1],distance.world.groundColor[3],distance.world.groundColor[2],distance.world.groundColor[1],distance.world.gravitySphereColor[3],distance.world.gravitySphereColor[2],distance.world.gravitySphereColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],damper.color_b[3],damper.color_b[2],damper.color_b[1],damper.color_a[3],damper.color_a[2],damper.color_a[1],damper.colorConnector_b[3],damper.colorConnector_b[2],damper.colorConnector_b[1],damper.colorConnector_a[3],damper.colorConnector_a[2],damper.colorConnector_a[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1063): * Single equations (assignments): 1054 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,88.9%) 16} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008051/0.9156, allocations: 0.5779 MB / 0.7865 GB, free: 63.79 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005423/0.9162, allocations: 379 kB / 0.7869 GB, free: 63.41 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003468/0.9197, allocations: 2.333 MB / 0.7892 GB, free: 61.41 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001888/0.9199, allocations: 31.8 kB / 0.7892 GB, free: 61.39 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.123e-05/0.9199, allocations: 4 kB / 0.7892 GB, free: 61.38 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.76e-05/0.9199, allocations: 11.44 kB / 0.7892 GB, free: 61.38 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01131/0.9312, allocations: 6.723 MB / 0.7958 GB, free: 55.84 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-05/0.9313, allocations: 7.875 kB / 0.7958 GB, free: 55.84 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001462/0.9327, allocations: 284.9 kB / 0.796 GB, free: 55.6 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005875/0.9333, allocations: 206.6 kB / 0.7962 GB, free: 55.44 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001269/0.9335, allocations: 15.38 kB / 0.7963 GB, free: 55.43 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002547/0.936, allocations: 2.511 MB / 0.7987 GB, free: 53.01 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.058e-06/0.936, allocations: 3.938 kB / 0.7987 GB, free: 53.01 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005267/0.9413, allocations: 5.133 MB / 0.8037 GB, free: 48.18 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000779/0.9421, allocations: 443.5 kB / 0.8042 GB, free: 47.74 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005395/0.9427, allocations: 4 kB / 0.8042 GB, free: 47.73 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001485/0.9441, allocations: 39.28 kB / 0.8042 GB, free: 47.71 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001908/0.9443, allocations: 102.4 kB / 0.8043 GB, free: 47.64 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001989/0.9446, allocations: 67.61 kB / 0.8044 GB, free: 47.58 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.003355/0.9479, allocations: 2.664 MB / 0.807 GB, free: 45.24 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005733/0.9537, allocations: 1.029 MB / 0.808 GB, free: 44.22 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (revolute.phi,revolute.w,prismatic.s,prismatic.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (164): * Single equations (assignments): 155 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003836/0.9541, allocations: 159.3 kB / 0.8081 GB, free: 44.07 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.007842/0.9619, allocations: 5.684 MB / 0.8137 GB, free: 38.89 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.611e-06/0.9619, allocations: 4.062 kB / 0.8137 GB, free: 38.89 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001967/0.9639, allocations: 1.413 MB / 0.815 GB, free: 37.6 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001841/0.9658, allocations: 356.9 kB / 0.8154 GB, free: 37.29 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01661/0.9824, allocations: 9.345 MB / 0.8245 GB, free: 28.81 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006061/0.9885, allocations: 4.546 MB / 0.829 GB, free: 25.15 MB / 458.7 MB Notification: Performance of SimCode: time 9.52e-07/0.9885, allocations: 0 / 0.829 GB, free: 25.15 MB / 458.7 MB Notification: Performance of Templates: time 0.1945/1.183, allocations: 39.78 MB / 0.8678 GB, free: 127.9 MB / 458.7 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.sim & ./PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.pipe 2>&1)