Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.WheelBasedCranCrab.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.WheelBasedCranCrab,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.WheelBasedCranCrab") translateModel(PlanarMechanics.Examples.WheelBasedCranCrab,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.WheelBasedCranCrab") [: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.003404/0.003404, allocations: 182.9 kB / 7.455 MB, free: 2.512 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.217/1.217, allocations: 221.4 MB / 229.3 MB, free: 3.078 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.001016/0.001016, allocations: 101.4 kB / 280.1 MB, free: 1.273 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04365/0.04365, allocations: 8.834 MB / 339.7 MB, free: 5.727 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 6.532e-06/6.572e-06, allocations: 3.938 kB / 398.1 MB, free: 67.46 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07209/0.07211, allocations: 52.4 MB / 450.5 MB, free: 15.11 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2279/0.3, allocations: 86.37 MB / 0.5243 GB, free: 7.105 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001768/0.3003, allocations: 70.28 kB / 0.5244 GB, free: 7.074 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.1626/0.4629, allocations: 60.86 MB / 0.5838 GB, free: 1.273 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001011/0.463, allocations: 52 kB / 0.5839 GB, free: 1.223 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: 1171 * Number of variables: 1171 Notification: Performance of Generate backend data structure: time 0.01262/0.4757, allocations: 3.407 MB / 0.5872 GB, free: 13.75 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.436e-05/0.4757, allocations: 8.031 kB / 0.5872 GB, free: 13.74 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00912/0.4848, allocations: 1.591 MB / 0.5887 GB, free: 12.14 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003762/0.4886, allocations: 1.676 MB / 0.5904 GB, free: 10.42 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001302/0.4887, allocations: 96 kB / 0.5905 GB, free: 10.32 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009141/0.4897, allocations: 164 kB / 0.5906 GB, free: 10.16 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008643/0.4983, allocations: 5.54 MB / 0.596 GB, free: 4.617 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01131/0.5096, allocations: 7.387 MB / 0.6033 GB, free: 12.8 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.569e-05/0.5098, allocations: 27.81 kB / 0.6033 GB, free: 12.78 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004295/0.5102, allocations: 12 kB / 0.6033 GB, free: 12.77 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001298/0.5115, allocations: 0.9932 MB / 0.6043 GB, free: 11.77 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03292/0.5444, allocations: 25.48 MB / 0.6291 GB, free: 1.688 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002073/0.5466, allocations: 1.256 MB / 0.6304 GB, free: 444 kB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001146/0.5477, allocations: 0.7637 MB / 0.6311 GB, free: 15.67 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00711/0.5548, allocations: 5.652 MB / 0.6366 GB, free: 9.375 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.994e-05/0.5549, allocations: 43.56 kB / 0.6367 GB, free: 9.32 MB / 458.7 MB Notification: Performance of pre-optimization done (n=147): time 3.317e-06/0.5549, allocations: 0 / 0.6367 GB, free: 9.32 MB / 458.7 MB Notification: Performance of matching and sorting (n=162): time 0.01214/0.5671, allocations: 5.809 MB / 0.6424 GB, free: 3.414 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.042e-05/0.5671, allocations: 68.66 kB / 0.6424 GB, free: 3.332 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002812/0.5699, allocations: 1.975 MB / 0.6443 GB, free: 1.312 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 8.083e-05/0.57, allocations: 25.7 kB / 0.6444 GB, free: 1.281 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.1118/0.6818, allocations: 2.121 MB / 0.6464 GB, free: 180.2 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004436/0.6823, allocations: 0.5922 MB / 0.647 GB, free: 179.9 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002438/0.6825, allocations: 0 / 0.647 GB, free: 179.9 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002488/0.6828, allocations: 0.5264 MB / 0.6475 GB, free: 179.6 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001727/0.6845, allocations: 1.306 MB / 0.6488 GB, free: 179.5 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002361/0.6869, allocations: 3.806 MB / 0.6525 GB, free: 176.3 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002677/0.6896, allocations: 2.294 MB / 0.6548 GB, free: 176.3 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.373e-05/0.6896, allocations: 26.91 kB / 0.6548 GB, free: 176.3 MB / 458.7 MB Notification: Performance of matching and sorting (n=580) (initialization): time 0.007042/0.6967, allocations: 4.75 MB / 0.6594 GB, free: 175.9 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.626e-05/0.6967, allocations: 5.062 kB / 0.6594 GB, free: 175.9 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.606e-05/0.6968, allocations: 89.38 kB / 0.6595 GB, free: 175.9 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005982/0.6974, allocations: 284.3 kB / 0.6598 GB, free: 175.9 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002873/0.7003, allocations: 0.9852 MB / 0.6608 GB, free: 175.8 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002861/0.7032, allocations: 2.698 MB / 0.6634 GB, free: 174.5 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002559/0.7057, allocations: 111.4 kB / 0.6635 GB, free: 174.5 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003101/0.7061, allocations: 268.7 kB / 0.6637 GB, free: 174.5 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 408 * Number of states: 0 () * Number of discrete variables: 12 (body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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 (540): * Single equations (assignments): 535 * 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%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000416/0.7065, allocations: 326.4 kB / 0.6641 GB, free: 174.3 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002259/0.7067, allocations: 199.3 kB / 0.6643 GB, free: 174.2 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002737/0.7095, allocations: 1.88 MB / 0.6661 GB, free: 174.1 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001208/0.7096, allocations: 22.23 kB / 0.6661 GB, free: 174.1 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.273e-06/0.7096, allocations: 3.875 kB / 0.6661 GB, free: 174.1 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.334e-05/0.7096, allocations: 7.734 kB / 0.6661 GB, free: 174.1 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007302/0.7169, allocations: 5.111 MB / 0.6711 GB, free: 173.3 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.824e-06/0.717, allocations: 3.875 kB / 0.6711 GB, free: 173.3 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009463/0.7179, allocations: 222.9 kB / 0.6713 GB, free: 173.3 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004498/0.7184, allocations: 164.4 kB / 0.6715 GB, free: 173.3 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.491e-05/0.7185, allocations: 18.05 kB / 0.6715 GB, free: 173.3 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002078/0.7206, allocations: 2.231 MB / 0.6737 GB, free: 172.1 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.72e-06/0.7206, allocations: 14.53 kB / 0.6737 GB, free: 172.1 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003532/0.7241, allocations: 3.439 MB / 0.6771 GB, free: 171.1 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003849/0.7245, allocations: 286.3 kB / 0.6773 GB, free: 170.9 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002945/0.7248, allocations: 10.83 kB / 0.6773 GB, free: 170.9 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008235/0.7257, allocations: 25.67 kB / 0.6774 GB, free: 170.9 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001262/0.7258, allocations: 85.88 kB / 0.6774 GB, free: 170.9 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.126e-05/0.7259, allocations: 52.94 kB / 0.6775 GB, free: 170.9 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.001618/0.7275, allocations: 1.315 MB / 0.6788 GB, free: 170.7 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002816/0.7304, allocations: 0.5977 MB / 0.6794 GB, free: 170.7 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 5 (idealRolling.frame_a.x,idealRolling.phi,body.w,revolute.phi,revolute.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (123): * Single equations (assignments): 118 * 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%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003208/0.7307, allocations: 162.5 kB / 0.6795 GB, free: 170.6 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004089/0.7348, allocations: 3.146 MB / 0.6826 GB, free: 169.5 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/0.7348, allocations: 0 / 0.6826 GB, free: 169.5 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00137/0.7362, allocations: 0.9774 MB / 0.6835 GB, free: 169.1 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001042/0.7372, allocations: 205.7 kB / 0.6837 GB, free: 169 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009161/0.7464, allocations: 5.5 MB / 0.6891 GB, free: 166.9 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003249/0.7497, allocations: 2.852 MB / 0.6919 GB, free: 165.7 MB / 458.7 MB Notification: Performance of SimCode: time 7.21e-07/0.7497, allocations: 0 / 0.6919 GB, free: 165.7 MB / 458.7 MB Notification: Performance of Templates: time 0.04204/0.7917, allocations: 23.46 MB / 0.7148 GB, free: 151.8 MB / 458.7 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.WheelBasedCranCrab.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.WheelBasedCranCrab.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.WheelBasedCranCrab.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.WheelBasedCranCrab.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.WheelBasedCranCrab.sim & ./PlanarMechanics_PlanarMechanics.Examples.WheelBasedCranCrab -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.WheelBasedCranCrab.pipe 2>&1)