Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D.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.CraneCrabTo3D,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_CraneCrabTo3D",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.CraneCrabTo3D,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_CraneCrabTo3D",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.002852/0.002852, allocations: 180.3 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.16/1.16, allocations: 221.4 MB / 229.3 MB, free: 3.375 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.0009644/0.0009644, allocations: 93.75 kB / 280.1 MB, free: 1.266 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.039/0.039, allocations: 8.845 MB / 339.7 MB, free: 5.723 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1886/0.2276, allocations: 58.49 MB / 398.2 MB, free: 67.31 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09104/0.3187, allocations: 52.39 MB / 450.6 MB, free: 14.99 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3371/0.6559, allocations: 101.3 MB / 0.5389 GB, free: 8.27 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002273/0.6561, allocations: 74.66 kB / 0.539 GB, free: 8.238 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2075 * Number of variables: 2075 Notification: Performance of Generate backend data structure: time 0.5327/1.189, allocations: 121.7 MB / 0.6578 GB, free: 96.8 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.053e-05/1.189, allocations: 11.19 kB / 0.6578 GB, free: 96.8 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01596/1.205, allocations: 3.146 MB / 0.6609 GB, free: 96.42 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01368/1.219, allocations: 5.008 MB / 0.6658 GB, free: 95.79 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004827/1.219, allocations: 173.2 kB / 0.666 GB, free: 95.79 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003159/1.222, allocations: 310.2 kB / 0.6663 GB, free: 95.78 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0158/1.238, allocations: 9.138 MB / 0.6752 GB, free: 95.75 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0235/1.262, allocations: 13.08 MB / 0.688 GB, free: 92.7 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002343/1.262, allocations: 70.84 kB / 0.688 GB, free: 92.69 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001601/1.264, allocations: 36.31 kB / 0.6881 GB, free: 92.69 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001877/1.265, allocations: 1.617 MB / 0.6896 GB, free: 92.68 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06322/1.329, allocations: 58.61 MB / 0.7469 GB, free: 52.58 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003937/1.333, allocations: 2.555 MB / 0.7494 GB, free: 51.26 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002164/1.335, allocations: 1.433 MB / 0.7508 GB, free: 50.73 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01196/1.347, allocations: 6.113 MB / 0.7567 GB, free: 47.11 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.505e-05/1.347, allocations: 59.84 kB / 0.7568 GB, free: 47.05 MB / 458.7 MB Notification: Performance of pre-optimization done (n=237): time 9.218e-06/1.347, allocations: 0 / 0.7568 GB, free: 47.05 MB / 458.7 MB Notification: Performance of matching and sorting (n=267): time 0.02525/1.372, allocations: 12.02 MB / 0.7685 GB, free: 38.91 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.053e-05/1.372, allocations: 154.5 kB / 0.7687 GB, free: 38.73 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007188/1.38, allocations: 4.091 MB / 0.7727 GB, free: 35.12 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005818/1.38, allocations: 25.7 kB / 0.7727 GB, free: 35.09 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001919/1.382, allocations: 3.977 MB / 0.7766 GB, free: 31.5 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001084/1.383, allocations: 1.002 MB / 0.7776 GB, free: 30.6 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003939/1.384, allocations: 0 / 0.7776 GB, free: 30.6 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003466/1.384, allocations: 0.6652 MB / 0.7782 GB, free: 30.03 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003097/1.387, allocations: 2.446 MB / 0.7806 GB, free: 27.82 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004743/1.392, allocations: 7.452 MB / 0.7879 GB, free: 18.24 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005819/1.398, allocations: 4.379 MB / 0.7922 GB, free: 14.48 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001032/1.398, allocations: 56 kB / 0.7922 GB, free: 14.43 MB / 458.7 MB Notification: Performance of matching and sorting (n=1119) (initialization): time 0.01562/1.413, allocations: 8.975 MB / 0.801 GB, free: 6.496 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.391e-05/1.414, allocations: 4 kB / 0.801 GB, free: 6.492 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003509/1.414, allocations: 180 kB / 0.8012 GB, free: 6.316 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009993/1.415, allocations: 488.9 kB / 0.8016 GB, free: 5.883 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006188/1.421, allocations: 1.93 MB / 0.8035 GB, free: 4.18 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004133/1.425, allocations: 4.496 MB / 0.8079 GB, free: 15.8 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006322/1.432, allocations: 276.3 kB / 0.8082 GB, free: 15.56 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001566/1.433, allocations: 0.4993 MB / 0.8087 GB, free: 15.07 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 818 * Number of states: 0 () * Number of discrete variables: 36 (fixedRotation3D.color[3],fixedRotation3D.color[2],fixedRotation3D.color[1],body3D.sphereColor[3],body3D.sphereColor[2],body3D.sphereColor[1],prismatic3D.boxColor[3],prismatic3D.boxColor[2],prismatic3D.boxColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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 (1051): * Single equations (assignments): 1043 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 17,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002055/1.435, allocations: 0.5349 MB / 0.8092 GB, free: 14.53 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001041/1.436, allocations: 418.6 kB / 0.8096 GB, free: 14.11 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005264/1.442, allocations: 2.8 MB / 0.8123 GB, free: 11.71 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.645e-05/1.442, allocations: 20 kB / 0.8123 GB, free: 11.69 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.179e-05/1.442, allocations: 4 kB / 0.8123 GB, free: 11.69 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.636e-05/1.442, allocations: 19.12 kB / 0.8123 GB, free: 11.68 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01715/1.459, allocations: 7.566 MB / 0.8197 GB, free: 5.391 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.677e-05/1.459, allocations: 7.844 kB / 0.8197 GB, free: 5.387 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001764/1.461, allocations: 363.7 kB / 0.8201 GB, free: 5.086 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006921/1.461, allocations: 236.1 kB / 0.8203 GB, free: 4.895 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001631/1.462, allocations: 15.94 kB / 0.8203 GB, free: 4.879 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004105/1.466, allocations: 3.748 MB / 0.824 GB, free: 1.156 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.967e-06/1.466, allocations: 7.938 kB / 0.824 GB, free: 1.148 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.1692/1.635, allocations: 6.037 MB / 0.8299 GB, free: 146 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.008299/1.643, allocations: 8.315 MB / 0.838 GB, free: 144.2 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009602/1.644, allocations: 474.9 kB / 0.8385 GB, free: 144.1 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005224/1.645, allocations: 5.688 kB / 0.8385 GB, free: 144.1 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00149/1.646, allocations: 61.2 kB / 0.8385 GB, free: 144.1 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002247/1.647, allocations: 121.1 kB / 0.8386 GB, free: 144.1 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001561/1.647, allocations: 75.41 kB / 0.8387 GB, free: 144.1 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.004318/1.651, allocations: 2.72 MB / 0.8414 GB, free: 144 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006914/1.658, allocations: 1.069 MB / 0.8424 GB, free: 144 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 6 (revolute.phi,revolute.w,damper1D.s_rel,damper1D.v_rel,prismatic3D.s,prismatic3D.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (202): * Single equations (assignments): 194 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 15,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005181/1.659, allocations: 166.2 kB / 0.8426 GB, free: 143.9 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.007999/1.667, allocations: 5.854 MB / 0.8483 GB, free: 143.6 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 5.64e-06/1.667, allocations: 3.375 kB / 0.8483 GB, free: 143.6 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002067/1.669, allocations: 1.707 MB / 0.85 GB, free: 143.4 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002607/1.671, allocations: 414 kB / 0.8504 GB, free: 143.4 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01843/1.69, allocations: 10.07 MB / 0.8602 GB, free: 141.4 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005749/1.696, allocations: 4.732 MB / 0.8648 GB, free: 140.6 MB / 474.7 MB Notification: Performance of SimCode: time 1.032e-06/1.696, allocations: 0 / 0.8648 GB, free: 140.6 MB / 474.7 MB (rm -f PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_CraneCrabTo3D_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_CraneCrabTo3D.fmu > PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D.pipe 2>&1)