Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.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.PendulumExcited,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PendulumExcited") translateModel(PlanarMechanics.Examples.PendulumExcited,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PendulumExcited") [: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.002353/0.002353, allocations: 181.2 kB / 7.454 MB, free: 2.516 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.218/1.218, allocations: 221.4 MB / 229.3 MB, free: 3.25 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.0009273/0.0009272, allocations: 99.58 kB / 280.1 MB, free: 1.281 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04381/0.04381, allocations: 8.843 MB / 339.7 MB, free: 5.723 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 5.55e-06/5.59e-06, allocations: 0 / 398.1 MB, free: 67.43 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06965/0.06967, allocations: 52.38 MB / 450.5 MB, free: 15.1 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2386/0.3083, allocations: 95.28 MB / 0.533 GB, free: 14.31 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002023/0.3085, allocations: 75.78 kB / 0.5331 GB, free: 14.28 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.288/0.5965, allocations: 107.4 MB / 0.638 GB, free: 9.352 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002494/0.5968, allocations: 95.94 kB / 0.6381 GB, free: 9.258 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: 2108 * Number of variables: 2108 Notification: Performance of Generate backend data structure: time 0.01651/0.6134, allocations: 4.944 MB / 0.6429 GB, free: 4.246 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.011e-05/0.6134, allocations: 8.031 kB / 0.6429 GB, free: 4.238 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01877/0.6322, allocations: 3.073 MB / 0.6459 GB, free: 1.148 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1604/0.7926, allocations: 2.925 MB / 0.6488 GB, free: 83.83 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001726/0.7928, allocations: 169.1 kB / 0.6489 GB, free: 83.83 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001315/0.7942, allocations: 294.4 kB / 0.6492 GB, free: 83.83 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01322/0.8074, allocations: 9.698 MB / 0.6587 GB, free: 83.8 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0187/0.8261, allocations: 13.58 MB / 0.6719 GB, free: 80.82 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001429/0.8263, allocations: 53.38 kB / 0.672 GB, free: 80.82 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008587/0.8272, allocations: 39 kB / 0.672 GB, free: 80.82 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001622/0.8288, allocations: 1.718 MB / 0.6737 GB, free: 80.81 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05094/0.8797, allocations: 55.9 MB / 0.7283 GB, free: 46.6 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002961/0.8827, allocations: 2.532 MB / 0.7308 GB, free: 45.28 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0016/0.8844, allocations: 1.294 MB / 0.732 GB, free: 44.79 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00738/0.8918, allocations: 5.427 MB / 0.7373 GB, free: 41.39 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.363e-05/0.8918, allocations: 54.81 kB / 0.7374 GB, free: 41.34 MB / 458.7 MB Notification: Performance of pre-optimization done (n=214): time 4.138e-06/0.8918, allocations: 3.969 kB / 0.7374 GB, free: 41.34 MB / 458.7 MB Notification: Performance of matching and sorting (n=228): time 0.01269/0.9045, allocations: 7.896 MB / 0.7451 GB, free: 37.41 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.166e-05/0.9046, allocations: 156.5 kB / 0.7452 GB, free: 37.26 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005771/0.9104, allocations: 3.93 MB / 0.7491 GB, free: 35.73 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002084/0.9106, allocations: 25.7 kB / 0.7491 GB, free: 35.7 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001717/0.9124, allocations: 4.042 MB / 0.7531 GB, free: 32.56 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006902/0.9131, allocations: 0.8685 MB / 0.7539 GB, free: 31.93 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003076/0.9134, allocations: 0 / 0.7539 GB, free: 31.93 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0004004/0.9138, allocations: 0.6684 MB / 0.7546 GB, free: 31.48 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003512/0.9173, allocations: 2.441 MB / 0.7569 GB, free: 30.6 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005511/0.9228, allocations: 7.602 MB / 0.7644 GB, free: 22.65 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006324/0.9292, allocations: 4.474 MB / 0.7687 GB, free: 20.72 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001159/0.9293, allocations: 56 kB / 0.7688 GB, free: 20.66 MB / 458.7 MB Notification: Performance of matching and sorting (n=1094) (initialization): time 0.01406/0.9434, allocations: 8.931 MB / 0.7775 GB, free: 12.77 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.604e-05/0.9434, allocations: 4 kB / 0.7775 GB, free: 12.76 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001719/0.9436, allocations: 188.9 kB / 0.7777 GB, free: 12.58 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00068/0.9443, allocations: 405.8 kB / 0.7781 GB, free: 12.21 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006075/0.9504, allocations: 1.896 MB / 0.7799 GB, free: 10.54 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002588/0.953, allocations: 2.657 MB / 0.7825 GB, free: 7.98 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00596/0.959, allocations: 248.6 kB / 0.7828 GB, free: 7.758 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008141/0.9598, allocations: 0.5105 MB / 0.7833 GB, free: 7.258 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 847 * Number of states: 0 () * Number of discrete variables: 29 (worldForce.color[3],worldForce.color[2],worldForce.color[1],cutForce.forceArrow.arrowLine.twoHeadedArrow,cutForce.forceArrow.headAtOrigin,cutForce.forceColor[3],cutForce.forceColor[2],cutForce.forceColor[1],cutForce.world.gravityArrowColor[3],cutForce.world.gravityArrowColor[2],cutForce.world.gravityArrowColor[1],cutForce.world.axisColor_x[3],cutForce.world.axisColor_x[2],cutForce.world.axisColor_x[1],cutForce.world.groundColor[3],cutForce.world.groundColor[2],cutForce.world.groundColor[1],cutForce.world.gravitySphereColor[3],cutForce.world.gravitySphereColor[2],cutForce.world.gravitySphereColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[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 (1032): * Single equations (assignments): 1024 * Array equations: 7 * 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 {(1,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008819/0.9607, allocations: 0.5477 MB / 0.7838 GB, free: 6.707 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00054/0.9612, allocations: 374.8 kB / 0.7841 GB, free: 6.34 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003655/0.9649, allocations: 2.36 MB / 0.7865 GB, free: 4.312 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001534/0.9651, allocations: 26.72 kB / 0.7865 GB, free: 4.289 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.061e-05/0.9651, allocations: 7.562 kB / 0.7865 GB, free: 4.285 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.85e-05/0.9651, allocations: 14.08 kB / 0.7865 GB, free: 4.281 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01399/0.9791, allocations: 7.031 MB / 0.7934 GB, free: 15.02 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.065e-05/0.9791, allocations: 4 kB / 0.7934 GB, free: 15.02 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001637/0.9808, allocations: 315.9 kB / 0.7937 GB, free: 14.76 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004526/0.9813, allocations: 133.2 kB / 0.7938 GB, free: 14.66 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001375/0.9814, allocations: 23.56 kB / 0.7938 GB, free: 14.64 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002368/0.9838, allocations: 2.136 MB / 0.7959 GB, free: 12.54 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.622e-06/0.9838, allocations: 7.938 kB / 0.7959 GB, free: 12.53 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006559/0.9904, allocations: 5.21 MB / 0.801 GB, free: 7.664 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00091/0.9913, allocations: 430.6 kB / 0.8014 GB, free: 7.234 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005635/0.9919, allocations: 4 kB / 0.8014 GB, free: 7.23 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001561/0.9934, allocations: 58.09 kB / 0.8015 GB, free: 7.191 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002446/0.9937, allocations: 106.3 kB / 0.8016 GB, free: 7.129 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001612/0.9939, allocations: 67.08 kB / 0.8016 GB, free: 7.07 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.003888/0.9978, allocations: 2.594 MB / 0.8042 GB, free: 4.781 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006182/1.004, allocations: 1.01 MB / 0.8052 GB, free: 3.781 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 2 (revolute.phi,revolute.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (168): * Single equations (assignments): 160 * Array equations: 7 * 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 {(1,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004374/1.004, allocations: 150.1 kB / 0.8053 GB, free: 3.637 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.008822/1.013, allocations: 5.639 MB / 0.8108 GB, free: 14.52 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/1.013, allocations: 0 / 0.8108 GB, free: 14.52 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002226/1.016, allocations: 1.457 MB / 0.8122 GB, free: 13.19 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001881/1.017, allocations: 346.5 kB / 0.8126 GB, free: 12.89 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01955/1.037, allocations: 9.462 MB / 0.8218 GB, free: 4.336 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006973/1.044, allocations: 4.597 MB / 0.8263 GB, free: 0.7539 MB / 490.7 MB Notification: Performance of SimCode: time 6.31e-07/1.044, allocations: 3.281 kB / 0.8263 GB, free: 0.7539 MB / 490.7 MB Notification: Performance of Templates: time 0.2041/1.248, allocations: 39.25 MB / 0.8646 GB, free: 160.2 MB / 490.7 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.sim & ./PlanarMechanics_PlanarMechanics.Examples.PendulumExcited -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.pipe 2>&1)