Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.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.InvertedCraneCrab,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab") translateModel(PlanarMechanics.Examples.InvertedCraneCrab,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab") [: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.003359/0.003359, allocations: 179.3 kB / 7.453 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.318/1.318, allocations: 221.4 MB / 229.3 MB, free: 3.047 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.0009529/0.0009529, allocations: 102.1 kB / 280.1 MB, free: 1.238 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.0438/0.0438, allocations: 8.847 MB / 339.7 MB, free: 5.688 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 6.252e-06/6.282e-06, allocations: 4 kB / 398.1 MB, free: 67.42 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0687/0.06872, allocations: 52.4 MB / 450.5 MB, free: 15.09 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2435/0.3123, allocations: 88.63 MB / 0.5265 GB, free: 4.84 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001857/0.3125, allocations: 74.75 kB / 0.5266 GB, free: 4.809 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.1657/0.4783, allocations: 60.43 MB / 0.5856 GB, free: 15.41 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001247/0.4784, allocations: 48 kB / 0.5857 GB, free: 15.37 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: 1155 * Number of variables: 1155 Notification: Performance of Generate backend data structure: time 0.009866/0.4883, allocations: 3.079 MB / 0.5887 GB, free: 12.23 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.694e-05/0.4884, allocations: 11.97 kB / 0.5887 GB, free: 12.21 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009429/0.4978, allocations: 1.602 MB / 0.5902 GB, free: 10.61 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004007/0.5018, allocations: 1.715 MB / 0.5919 GB, free: 8.844 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001406/0.502, allocations: 96 kB / 0.592 GB, free: 8.75 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001014/0.503, allocations: 171.9 kB / 0.5922 GB, free: 8.582 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008828/0.5118, allocations: 5.314 MB / 0.5974 GB, free: 3.262 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01245/0.5243, allocations: 7.008 MB / 0.6042 GB, free: 11.88 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001081/0.5244, allocations: 31.64 kB / 0.6042 GB, free: 11.85 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005985/0.5251, allocations: 16 kB / 0.6042 GB, free: 11.83 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001257/0.5263, allocations: 0.9037 MB / 0.6051 GB, free: 10.93 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03306/0.5594, allocations: 23.89 MB / 0.6285 GB, free: 2.383 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001684/0.5611, allocations: 1.072 MB / 0.6295 GB, free: 1.312 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001119/0.5623, allocations: 0.7189 MB / 0.6302 GB, free: 0.5938 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007366/0.5696, allocations: 4.297 MB / 0.6344 GB, free: 11.96 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.413e-05/0.5697, allocations: 43.56 kB / 0.6344 GB, free: 11.91 MB / 458.7 MB Notification: Performance of pre-optimization done (n=134): time 3.707e-06/0.5697, allocations: 0 / 0.6344 GB, free: 11.91 MB / 458.7 MB Notification: Performance of matching and sorting (n=160): time 0.01207/0.5818, allocations: 5.902 MB / 0.6402 GB, free: 5.934 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.722e-05/0.5818, allocations: 64.72 kB / 0.6403 GB, free: 5.855 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003024/0.5849, allocations: 1.898 MB / 0.6421 GB, free: 3.961 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 8.396e-05/0.585, allocations: 25.7 kB / 0.6421 GB, free: 3.93 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001292/0.5863, allocations: 2.064 MB / 0.6442 GB, free: 1.832 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004969/0.5868, allocations: 0.5742 MB / 0.6447 GB, free: 1.25 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001719/0.587, allocations: 3.938 kB / 0.6447 GB, free: 1.246 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003424/0.5873, allocations: 0.5194 MB / 0.6452 GB, free: 0.7148 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1162/0.7035, allocations: 1.277 MB / 0.6465 GB, free: 177.9 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002557/0.7061, allocations: 3.513 MB / 0.6499 GB, free: 175 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002502/0.7086, allocations: 2.18 MB / 0.652 GB, free: 175 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.992e-05/0.7086, allocations: 23.34 kB / 0.6521 GB, free: 175 MB / 458.7 MB Notification: Performance of matching and sorting (n=540) (initialization): time 0.006068/0.7147, allocations: 4.445 MB / 0.6564 GB, free: 174.9 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.555e-05/0.7147, allocations: 6.969 kB / 0.6564 GB, free: 174.9 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.194e-05/0.7148, allocations: 78.03 kB / 0.6565 GB, free: 174.9 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003622/0.7152, allocations: 208.3 kB / 0.6567 GB, free: 174.9 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003024/0.7182, allocations: 0.9518 MB / 0.6576 GB, free: 174.8 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001552/0.7198, allocations: 1.99 MB / 0.6596 GB, free: 173.5 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002668/0.7225, allocations: 123.7 kB / 0.6597 GB, free: 173.5 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003315/0.7228, allocations: 246.3 kB / 0.6599 GB, free: 173.5 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 362 * Number of states: 0 () * Number of discrete variables: 15 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[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 (506): * Single equations (assignments): 501 * 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 {(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004386/0.7233, allocations: 306.6 kB / 0.6602 GB, free: 173.3 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000236/0.7235, allocations: 192.3 kB / 0.6604 GB, free: 173.3 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002544/0.7261, allocations: 1.833 MB / 0.6622 GB, free: 173.2 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001232/0.7262, allocations: 19.78 kB / 0.6622 GB, free: 173.2 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/0.7262, allocations: 3.562 kB / 0.6622 GB, free: 173.2 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.177e-05/0.7262, allocations: 5.859 kB / 0.6622 GB, free: 173.2 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006933/0.7332, allocations: 4.811 MB / 0.6669 GB, free: 172.6 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.991e-06/0.7332, allocations: 0 / 0.6669 GB, free: 172.6 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001123/0.7343, allocations: 256.7 kB / 0.6671 GB, free: 172.6 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002348/0.7346, allocations: 77.73 kB / 0.6672 GB, free: 172.6 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.266e-05/0.7347, allocations: 18.22 kB / 0.6672 GB, free: 172.6 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001184/0.7359, allocations: 1.715 MB / 0.6689 GB, free: 171.3 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/0.7359, allocations: 0 / 0.6689 GB, free: 171.3 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003335/0.7392, allocations: 3.049 MB / 0.6719 GB, free: 170.9 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003713/0.7396, allocations: 274.2 kB / 0.6722 GB, free: 170.8 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002861/0.7399, allocations: 3.531 kB / 0.6722 GB, free: 170.8 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008812/0.7408, allocations: 46.38 kB / 0.6722 GB, free: 170.8 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001581/0.741, allocations: 68.59 kB / 0.6723 GB, free: 170.8 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.117e-05/0.7411, allocations: 51.23 kB / 0.6723 GB, free: 170.8 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.00148/0.7425, allocations: 1.28 MB / 0.6736 GB, free: 170.7 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002661/0.7452, allocations: 0.5807 MB / 0.6741 GB, free: 170.7 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (revolute.phi,prismatic.s,prismatic.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (129): * Single equations (assignments): 124 * 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 {(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003008/0.7455, allocations: 147.7 kB / 0.6743 GB, free: 170.6 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003892/0.7494, allocations: 3.02 MB / 0.6772 GB, free: 170.3 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.7494, allocations: 0 / 0.6772 GB, free: 170.3 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001321/0.7508, allocations: 0.953 MB / 0.6782 GB, free: 170.2 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001069/0.7518, allocations: 195.8 kB / 0.6783 GB, free: 170.2 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008855/0.7607, allocations: 5.163 MB / 0.6834 GB, free: 168.5 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003112/0.7639, allocations: 2.838 MB / 0.6862 GB, free: 167.3 MB / 458.7 MB Notification: Performance of SimCode: time 1.273e-06/0.7639, allocations: 0 / 0.6862 GB, free: 167.3 MB / 458.7 MB Notification: Performance of Templates: time 0.04202/0.8059, allocations: 22.79 MB / 0.7084 GB, free: 157.9 MB / 458.7 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.sim & ./PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.pipe 2>&1)