Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.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.MeasureDemo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.MeasureDemo") translateModel(PlanarMechanics.Examples.MeasureDemo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.MeasureDemo") [: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.003246/0.003246, allocations: 176.8 kB / 7.452 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.233/1.233, allocations: 221.4 MB / 229.3 MB, free: 3.074 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.0009947/0.0009947, allocations: 97.25 kB / 280.1 MB, free: 1.309 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04464/0.04464, allocations: 8.84 MB / 339.7 MB, free: 5.773 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 5.23e-06/5.25e-06, allocations: 0 / 398.1 MB, free: 67.44 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06995/0.06997, allocations: 52.4 MB / 450.5 MB, free: 15.11 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2375/0.3075, allocations: 95.48 MB / 0.5332 GB, free: 14.01 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000193/0.3077, allocations: 83.14 kB / 0.5333 GB, free: 13.97 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.1274/0.4352, allocations: 47.18 MB / 0.5794 GB, free: 6.098 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001324/0.4354, allocations: 63.98 kB / 0.5794 GB, free: 6.035 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 869 * Number of variables: 869 Notification: Performance of Generate backend data structure: time 0.01025/0.4456, allocations: 3.005 MB / 0.5823 GB, free: 2.973 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.554e-05/0.4457, allocations: 8.031 kB / 0.5824 GB, free: 2.965 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009139/0.4466, allocations: 304.2 kB / 0.5826 GB, free: 2.664 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002357/0.449, allocations: 1.193 MB / 0.5838 GB, free: 1.426 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001026/0.4491, allocations: 96 kB / 0.5839 GB, free: 1.332 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004837/0.4496, allocations: 179.9 kB / 0.5841 GB, free: 1.156 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00503/0.4546, allocations: 2.937 MB / 0.5869 GB, free: 14.21 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006213/0.4608, allocations: 4.231 MB / 0.5911 GB, free: 9.516 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001135/0.461, allocations: 35.62 kB / 0.5911 GB, free: 9.48 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002642/0.4612, allocations: 16 kB / 0.5911 GB, free: 9.465 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004696/0.4617, allocations: 352.3 kB / 0.5915 GB, free: 9.117 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02221/0.4839, allocations: 21.87 MB / 0.6128 GB, free: 2.465 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001215/0.4852, allocations: 0.7572 MB / 0.6136 GB, free: 1.703 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001075/0.4863, allocations: 0.669 MB / 0.6142 GB, free: 1.035 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005043/0.4913, allocations: 4.04 MB / 0.6182 GB, free: 12.59 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.723e-05/0.4914, allocations: 43.47 kB / 0.6182 GB, free: 12.54 MB / 442.7 MB Notification: Performance of pre-optimization done (n=102): time 3.296e-06/0.4914, allocations: 0 / 0.6182 GB, free: 12.54 MB / 442.7 MB Notification: Performance of matching and sorting (n=146): time 0.02148/0.5129, allocations: 8.498 MB / 0.6265 GB, free: 3.93 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.948e-05/0.5129, allocations: 68.72 kB / 0.6266 GB, free: 3.848 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002015/0.515, allocations: 1.401 MB / 0.6279 GB, free: 2.445 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 9.591e-05/0.5151, allocations: 25.7 kB / 0.628 GB, free: 2.414 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009338/0.516, allocations: 1.68 MB / 0.6296 GB, free: 0.7031 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004525/0.5165, allocations: 0.5279 MB / 0.6301 GB, free: 172 kB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001452/0.5166, allocations: 0 / 0.6301 GB, free: 172 kB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003023/0.5169, allocations: 0.4952 MB / 0.6306 GB, free: 15.66 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001762/0.5187, allocations: 1.14 MB / 0.6317 GB, free: 14.52 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00317/0.5219, allocations: 3.302 MB / 0.6349 GB, free: 10.14 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002635/0.5245, allocations: 1.852 MB / 0.6367 GB, free: 8.285 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.694e-05/0.5246, allocations: 24 kB / 0.6368 GB, free: 8.262 MB / 458.7 MB Notification: Performance of matching and sorting (n=497) (initialization): time 0.007391/0.532, allocations: 4.48 MB / 0.6411 GB, free: 3.727 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.585e-05/0.532, allocations: 5.406 kB / 0.6411 GB, free: 3.723 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.276e-05/0.5321, allocations: 76 kB / 0.6412 GB, free: 3.648 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001105/0.5332, allocations: 435.1 kB / 0.6416 GB, free: 3.219 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003145/0.5364, allocations: 0.8851 MB / 0.6425 GB, free: 2.332 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1215/0.6579, allocations: 6.35 MB / 0.6487 GB, free: 172.5 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00254/0.6605, allocations: 121.7 kB / 0.6488 GB, free: 172.5 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002785/0.6608, allocations: 229.1 kB / 0.649 GB, free: 172.5 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 352 * Number of states: 0 () * Number of discrete variables: 18 (revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[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 (470): * Single equations (assignments): 467 * Array equations: 0 * 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: 3 {(2,100.0%) 20,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000416/0.6612, allocations: 300.4 kB / 0.6493 GB, free: 172.4 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000227/0.6614, allocations: 185.9 kB / 0.6495 GB, free: 172.4 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0039/0.6653, allocations: 2.777 MB / 0.6522 GB, free: 172.1 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.115e-05/0.6654, allocations: 14.69 kB / 0.6522 GB, free: 172.1 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.458e-06/0.6654, allocations: 5.719 kB / 0.6522 GB, free: 172.1 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.457e-05/0.6654, allocations: 11.27 kB / 0.6522 GB, free: 172.1 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009179/0.6746, allocations: 6.1 MB / 0.6582 GB, free: 171.3 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.042e-06/0.6746, allocations: 0 / 0.6582 GB, free: 171.3 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001182/0.6758, allocations: 245.5 kB / 0.6584 GB, free: 171.3 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008214/0.6766, allocations: 323.5 kB / 0.6587 GB, free: 171.3 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.499e-05/0.6767, allocations: 7.406 kB / 0.6587 GB, free: 171.3 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004444/0.6812, allocations: 5.753 MB / 0.6644 GB, free: 167.6 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.838e-06/0.6812, allocations: 6.125 kB / 0.6644 GB, free: 167.6 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00447/0.6857, allocations: 4.251 MB / 0.6685 GB, free: 167 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002624/0.686, allocations: 226.8 kB / 0.6687 GB, free: 166.8 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002939/0.6863, allocations: 3.812 kB / 0.6687 GB, free: 166.8 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008985/0.6872, allocations: 56.83 kB / 0.6688 GB, free: 166.8 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001609/0.6873, allocations: 74.83 kB / 0.6689 GB, free: 166.8 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.332e-05/0.6874, allocations: 36.28 kB / 0.6689 GB, free: 166.8 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.00116/0.6886, allocations: 0.8994 MB / 0.6698 GB, free: 166.7 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002576/0.6912, allocations: 0.543 MB / 0.6703 GB, free: 166.7 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (121): * Single equations (assignments): 118 * Array equations: 0 * 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: 3 {(2,100.0%) 18,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002247/0.6914, allocations: 125.2 kB / 0.6704 GB, free: 166.6 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003762/0.6952, allocations: 3.312 MB / 0.6737 GB, free: 166.3 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.6952, allocations: 0 / 0.6737 GB, free: 166.3 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001494/0.6967, allocations: 1.441 MB / 0.6751 GB, free: 166 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001297/0.698, allocations: 313.5 kB / 0.6754 GB, free: 166 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006314/0.7044, allocations: 4.101 MB / 0.6794 GB, free: 165.1 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001984/0.7064, allocations: 2.038 MB / 0.6814 GB, free: 164.3 MB / 458.7 MB Notification: Performance of SimCode: time 4.61e-07/0.7064, allocations: 0 / 0.6814 GB, free: 164.3 MB / 458.7 MB Notification: Performance of Templates: time 0.04055/0.7469, allocations: 25.08 MB / 0.7058 GB, free: 156.1 MB / 458.7 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.sim & ./PlanarMechanics_PlanarMechanics.Examples.MeasureDemo -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.pipe 2>&1)