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: "" <> buildModelFMU(PlanarMechanics.Examples.WheelBasedCranCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_WheelBasedCranCrab",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.WheelBasedCranCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_WheelBasedCranCrab",fmuType="me",version="2.0",platforms={"static"}) [: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.003083/0.003084, allocations: 179.5 kB / 7.456 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.234/1.234, allocations: 221.4 MB / 229.3 MB, free: 3.055 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.001034/0.001034, allocations: 96.28 kB / 280.1 MB, free: 1.234 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04008/0.04008, allocations: 8.84 MB / 339.7 MB, free: 5.684 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2109/0.251, allocations: 58.5 MB / 398.2 MB, free: 67.32 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09736/0.3484, allocations: 52.38 MB / 450.6 MB, free: 14.99 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3357/0.6842, allocations: 86.38 MB / 0.5244 GB, free: 6.969 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002068/0.6844, allocations: 71.41 kB / 0.5245 GB, free: 6.938 MB / 346.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.1666/0.8511, allocations: 64.31 MB / 0.5873 GB, free: 13.59 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.113e-05/0.8511, allocations: 12 kB / 0.5873 GB, free: 13.58 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008825/0.86, allocations: 1.595 MB / 0.5888 GB, free: 11.98 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004341/0.8643, allocations: 1.672 MB / 0.5905 GB, free: 10.26 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001837/0.8646, allocations: 92 kB / 0.5906 GB, free: 10.17 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001476/0.866, allocations: 167.9 kB / 0.5907 GB, free: 10 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009912/0.876, allocations: 5.544 MB / 0.5961 GB, free: 4.453 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01465/0.8907, allocations: 7.379 MB / 0.6033 GB, free: 12.64 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00015/0.8909, allocations: 31.72 kB / 0.6034 GB, free: 12.61 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001082/0.8919, allocations: 12 kB / 0.6034 GB, free: 12.6 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001437/0.8934, allocations: 0.9933 MB / 0.6044 GB, free: 11.61 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03626/0.9297, allocations: 25.48 MB / 0.6292 GB, free: 1.516 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002117/0.9318, allocations: 1.254 MB / 0.6305 GB, free: 268 kB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001267/0.9331, allocations: 0.7635 MB / 0.6312 GB, free: 15.5 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007484/0.9406, allocations: 5.661 MB / 0.6367 GB, free: 9.195 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.032e-05/0.9407, allocations: 43.56 kB / 0.6368 GB, free: 9.141 MB / 458.7 MB Notification: Performance of pre-optimization done (n=147): time 4.379e-06/0.9407, allocations: 0 / 0.6368 GB, free: 9.141 MB / 458.7 MB Notification: Performance of matching and sorting (n=162): time 0.01241/0.9531, allocations: 5.809 MB / 0.6425 GB, free: 3.238 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.939e-05/0.9532, allocations: 64.72 kB / 0.6425 GB, free: 3.16 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003748/0.957, allocations: 1.983 MB / 0.6445 GB, free: 1.137 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001158/0.9571, allocations: 25.7 kB / 0.6445 GB, free: 1.105 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.1887/1.146, allocations: 2.121 MB / 0.6465 GB, free: 108.7 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006132/1.146, allocations: 0.588 MB / 0.6471 GB, free: 108.5 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002702/1.147, allocations: 2.781 kB / 0.6471 GB, free: 108.5 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002943/1.147, allocations: 0.5232 MB / 0.6476 GB, free: 108.1 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001671/1.149, allocations: 1.305 MB / 0.6489 GB, free: 108.1 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002368/1.151, allocations: 3.807 MB / 0.6526 GB, free: 104.9 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002458/1.154, allocations: 2.295 MB / 0.6549 GB, free: 104.9 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.283e-05/1.154, allocations: 25.72 kB / 0.6549 GB, free: 104.9 MB / 458.7 MB Notification: Performance of matching and sorting (n=580) (initialization): time 0.006472/1.16, allocations: 4.744 MB / 0.6595 GB, free: 104.5 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.734e-05/1.16, allocations: 6.719 kB / 0.6595 GB, free: 104.5 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.965e-05/1.16, allocations: 90.44 kB / 0.6596 GB, free: 104.5 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005849/1.161, allocations: 283.6 kB / 0.6599 GB, free: 104.5 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002678/1.164, allocations: 0.9804 MB / 0.6608 GB, free: 104.4 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002704/1.166, allocations: 2.699 MB / 0.6635 GB, free: 103 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002549/1.169, allocations: 109.5 kB / 0.6636 GB, free: 103 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003276/1.169, allocations: 267.8 kB / 0.6638 GB, free: 103 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.000442/1.17, allocations: 324.5 kB / 0.6642 GB, free: 102.8 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002509/1.17, allocations: 202.1 kB / 0.6643 GB, free: 102.7 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002627/1.172, allocations: 1.877 MB / 0.6662 GB, free: 102.6 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001119/1.173, allocations: 25.53 kB / 0.6662 GB, free: 102.6 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.797e-06/1.173, allocations: 9.312 kB / 0.6662 GB, free: 102.6 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.238e-05/1.173, allocations: 3.797 kB / 0.6662 GB, free: 102.6 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0075/1.18, allocations: 5.114 MB / 0.6712 GB, free: 101.9 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.119e-05/1.18, allocations: 7.406 kB / 0.6712 GB, free: 101.9 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008676/1.181, allocations: 221.5 kB / 0.6714 GB, free: 101.9 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004437/1.182, allocations: 168.1 kB / 0.6716 GB, free: 101.9 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.443e-05/1.182, allocations: 19.61 kB / 0.6716 GB, free: 101.9 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002101/1.184, allocations: 2.231 MB / 0.6738 GB, free: 100.6 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.48e-06/1.184, allocations: 7.281 kB / 0.6738 GB, free: 100.6 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003567/1.187, allocations: 3.445 MB / 0.6772 GB, free: 99.63 MB / 458.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004651/1.192, allocations: 4.879 MB / 0.6819 GB, free: 98.25 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004893/1.192, allocations: 282.3 kB / 0.6822 GB, free: 98.05 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003583/1.193, allocations: 7.812 kB / 0.6822 GB, free: 98.05 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008648/1.194, allocations: 33.03 kB / 0.6822 GB, free: 98.05 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001316/1.194, allocations: 79.78 kB / 0.6823 GB, free: 98.04 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.359e-05/1.194, allocations: 52.59 kB / 0.6824 GB, free: 98.04 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.001986/1.196, allocations: 1.32 MB / 0.6836 GB, free: 97.89 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003624/1.2, allocations: 0.6007 MB / 0.6842 GB, free: 97.89 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.0003485/1.2, allocations: 153.7 kB / 0.6844 GB, free: 97.8 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004199/1.204, allocations: 3.156 MB / 0.6875 GB, free: 97.47 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/1.204, allocations: 0 / 0.6875 GB, free: 97.47 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001243/1.205, allocations: 0.9828 MB / 0.6884 GB, free: 97.33 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001013/1.206, allocations: 205.7 kB / 0.6886 GB, free: 97.32 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01027/1.217, allocations: 5.508 MB / 0.694 GB, free: 95.96 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00363/1.22, allocations: 2.852 MB / 0.6968 GB, free: 95.04 MB / 458.7 MB Notification: Performance of SimCode: time 1.032e-06/1.22, allocations: 4 kB / 0.6968 GB, free: 95.04 MB / 458.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_WheelBasedCranCrab_fmu --startTime=0 --stopTime=4.5 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_WheelBasedCranCrab.fmu > PlanarMechanics_PlanarMechanics.Examples.WheelBasedCranCrab.pipe 2>&1)