Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.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.ControlledCraneCrab,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab") translateModel(PlanarMechanics.Examples.ControlledCraneCrab,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab") [: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.003189/0.003189, 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.272/1.272, allocations: 221.4 MB / 229.3 MB, free: 2.988 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.0009663/0.0009663, allocations: 93.98 kB / 280.1 MB, free: 1.297 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04938/0.04938, allocations: 8.837 MB / 339.7 MB, free: 5.738 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 5.19e-06/5.21e-06, allocations: 0 / 398.1 MB, free: 67.41 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07005/0.07007, allocations: 52.39 MB / 450.5 MB, free: 15.08 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2379/0.308, allocations: 89.48 MB / 0.5273 GB, free: 3.984 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001899/0.3082, allocations: 74.66 kB / 0.5274 GB, free: 3.953 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.1683/0.4766, allocations: 61.82 MB / 0.5878 GB, free: 13.14 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001038/0.4767, allocations: 52 kB / 0.5878 GB, free: 13.09 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: 1165 * Number of variables: 1165 Notification: Performance of Generate backend data structure: time 0.009508/0.4862, allocations: 3.102 MB / 0.5909 GB, free: 9.926 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.931e-05/0.4863, allocations: 8.031 kB / 0.5909 GB, free: 9.918 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009357/0.4956, allocations: 1.61 MB / 0.5924 GB, free: 8.301 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003806/0.4995, allocations: 1.754 MB / 0.5942 GB, free: 6.5 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001194/0.4996, allocations: 96 kB / 0.5942 GB, free: 6.406 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007864/0.5004, allocations: 175.9 kB / 0.5944 GB, free: 6.234 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008109/0.5085, allocations: 5.345 MB / 0.5996 GB, free: 0.8828 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01013/0.5187, allocations: 7.057 MB / 0.6065 GB, free: 9.445 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.891e-05/0.5188, allocations: 31.69 kB / 0.6066 GB, free: 9.414 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004181/0.5192, allocations: 12 kB / 0.6066 GB, free: 9.402 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00114/0.5203, allocations: 0.9116 MB / 0.6075 GB, free: 8.492 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03182/0.5522, allocations: 24.15 MB / 0.631 GB, free: 15.66 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001572/0.5538, allocations: 1.097 MB / 0.6321 GB, free: 14.57 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001006/0.5548, allocations: 0.7268 MB / 0.6328 GB, free: 13.84 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006441/0.5613, allocations: 4.18 MB / 0.6369 GB, free: 9.336 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.126e-05/0.5613, allocations: 43.56 kB / 0.6369 GB, free: 9.285 MB / 458.7 MB Notification: Performance of pre-optimization done (n=137): time 3.076e-06/0.5613, allocations: 0 / 0.6369 GB, free: 9.285 MB / 458.7 MB Notification: Performance of matching and sorting (n=159): time 0.01137/0.5727, allocations: 5.903 MB / 0.6427 GB, free: 3.297 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.52e-05/0.5728, allocations: 68.72 kB / 0.6428 GB, free: 3.219 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002606/0.5754, allocations: 1.948 MB / 0.6447 GB, free: 1.23 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 7.747e-05/0.5755, allocations: 29.64 kB / 0.6447 GB, free: 1.195 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.118/0.6935, allocations: 2.068 MB / 0.6467 GB, free: 177.2 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004478/0.694, allocations: 0.5792 MB / 0.6473 GB, free: 176.9 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002166/0.6942, allocations: 3.844 kB / 0.6473 GB, free: 176.9 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002444/0.6945, allocations: 0.5216 MB / 0.6478 GB, free: 176.6 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00173/0.6962, allocations: 1.283 MB / 0.6491 GB, free: 176.6 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002174/0.6984, allocations: 3.532 MB / 0.6525 GB, free: 173.7 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002393/0.7008, allocations: 2.192 MB / 0.6547 GB, free: 173.7 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.869e-05/0.7008, allocations: 23.44 kB / 0.6547 GB, free: 173.7 MB / 458.7 MB Notification: Performance of matching and sorting (n=544) (initialization): time 0.006162/0.707, allocations: 4.583 MB / 0.6591 GB, free: 173.4 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.564e-05/0.707, allocations: 3.562 kB / 0.6592 GB, free: 173.4 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.396e-05/0.7071, allocations: 81 kB / 0.6592 GB, free: 173.4 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000703/0.7078, allocations: 316.3 kB / 0.6595 GB, free: 173.4 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002752/0.7106, allocations: 0.9112 MB / 0.6604 GB, free: 173.3 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003438/0.714, allocations: 3.076 MB / 0.6634 GB, free: 172 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002474/0.7165, allocations: 104.3 kB / 0.6635 GB, free: 171.9 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003027/0.7168, allocations: 248.4 kB / 0.6638 GB, free: 171.9 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 364 * Number of states: 0 () * Number of discrete variables: 16 (revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],PID.I.local_reset,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 (500): * Single equations (assignments): 495 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005206/0.7174, allocations: 308.2 kB / 0.6641 GB, free: 171.8 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002553/0.7176, allocations: 205 kB / 0.6643 GB, free: 171.6 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002966/0.7206, allocations: 1.939 MB / 0.6661 GB, free: 171.5 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001246/0.7207, allocations: 16.75 kB / 0.6662 GB, free: 171.5 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.634e-06/0.7207, allocations: 3.938 kB / 0.6662 GB, free: 171.5 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.337e-05/0.7208, allocations: 7.781 kB / 0.6662 GB, free: 171.5 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007621/0.7284, allocations: 4.911 MB / 0.671 GB, free: 171 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.674e-06/0.7284, allocations: 4.594 kB / 0.671 GB, free: 171 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009878/0.7294, allocations: 209.4 kB / 0.6712 GB, free: 171 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005586/0.73, allocations: 202.6 kB / 0.6714 GB, free: 171 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.453e-05/0.7301, allocations: 7.234 kB / 0.6714 GB, free: 171 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002508/0.7326, allocations: 2.516 MB / 0.6738 GB, free: 169.7 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.177e-06/0.7326, allocations: 7.406 kB / 0.6738 GB, free: 169.7 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003592/0.7362, allocations: 3.23 MB / 0.677 GB, free: 169.1 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006955/0.7369, allocations: 439.5 kB / 0.6774 GB, free: 168.9 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002969/0.7372, allocations: 7.375 kB / 0.6774 GB, free: 168.9 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008666/0.7381, allocations: 29.34 kB / 0.6774 GB, free: 168.9 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001352/0.7383, allocations: 70.83 kB / 0.6775 GB, free: 168.9 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.121e-05/0.7384, allocations: 44.08 kB / 0.6776 GB, free: 168.9 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.001526/0.7399, allocations: 1.315 MB / 0.6788 GB, free: 168.8 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002739/0.7426, allocations: 0.6012 MB / 0.6794 GB, free: 168.8 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (PID.I.y,PID.D.x,prismatic.s,prismatic.v,revolute.phi,revolute.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (118): * Single equations (assignments): 113 * 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: 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.0003045/0.7429, allocations: 152.7 kB / 0.6796 GB, free: 168.7 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003904/0.7469, allocations: 3.078 MB / 0.6826 GB, free: 167.7 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.7469, allocations: 0 / 0.6826 GB, free: 167.7 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001463/0.7484, allocations: 1.005 MB / 0.6836 GB, free: 167.3 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001107/0.7495, allocations: 220.3 kB / 0.6838 GB, free: 167.2 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008411/0.7579, allocations: 5.349 MB / 0.689 GB, free: 165.3 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003323/0.7612, allocations: 2.853 MB / 0.6918 GB, free: 164.1 MB / 458.7 MB Notification: Performance of SimCode: time 5.72e-07/0.7612, allocations: 0 / 0.6918 GB, free: 164.1 MB / 458.7 MB Notification: Performance of Templates: time 0.04189/0.8031, allocations: 24 MB / 0.7152 GB, free: 151.1 MB / 458.7 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.sim & ./PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.pipe 2>&1)