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: translateModel(PlanarMechanics.Examples.CraneCrabTo3D,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D") translateModel(PlanarMechanics.Examples.CraneCrabTo3D,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D") [: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.002306/0.002306, allocations: 178.3 kB / 7.447 MB, free: 2.312 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.241/1.241, allocations: 221.4 MB / 229.3 MB, free: 3.043 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.001057/0.001057, allocations: 101.7 kB / 280.1 MB, free: 1.211 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04378/0.04378, allocations: 8.845 MB / 339.7 MB, free: 5.672 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 5.65e-06/5.69e-06, allocations: 3.938 kB / 398.1 MB, free: 67.41 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07024/0.07026, allocations: 52.39 MB / 450.5 MB, free: 15.07 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2652/0.3355, allocations: 101.3 MB / 0.5389 GB, free: 8.387 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002004/0.3358, allocations: 74.41 kB / 0.5389 GB, free: 8.355 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.4653/0.8011, allocations: 116.3 MB / 0.6525 GB, free: 98.66 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001533/0.8013, allocations: 104.7 kB / 0.6526 GB, free: 98.66 MB / 458.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.01352/0.8148, allocations: 5.282 MB / 0.6577 GB, free: 96.73 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.029e-05/0.8149, allocations: 14.41 kB / 0.6578 GB, free: 96.73 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01668/0.8316, allocations: 3.148 MB / 0.6608 GB, free: 96.35 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01265/0.8442, allocations: 4.997 MB / 0.6657 GB, free: 95.72 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002226/0.8445, allocations: 169.8 kB / 0.6659 GB, free: 95.72 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001548/0.8461, allocations: 311.7 kB / 0.6662 GB, free: 95.71 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01216/0.8582, allocations: 9.136 MB / 0.6751 GB, free: 95.68 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01472/0.873, allocations: 13.09 MB / 0.6879 GB, free: 92.62 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001546/0.8731, allocations: 71.5 kB / 0.6879 GB, free: 92.62 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007028/0.8739, allocations: 39.25 kB / 0.688 GB, free: 92.62 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001557/0.8754, allocations: 1.616 MB / 0.6896 GB, free: 92.61 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05753/0.933, allocations: 58.61 MB / 0.7468 GB, free: 52.66 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003752/0.9368, allocations: 2.551 MB / 0.7493 GB, free: 51.34 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002068/0.9389, allocations: 1.432 MB / 0.7507 GB, free: 50.82 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0102/0.9491, allocations: 6.122 MB / 0.7567 GB, free: 47.19 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.503e-05/0.9492, allocations: 50.75 kB / 0.7567 GB, free: 47.14 MB / 458.7 MB Notification: Performance of pre-optimization done (n=237): time 5.31e-06/0.9492, allocations: 0 / 0.7567 GB, free: 47.14 MB / 458.7 MB Notification: Performance of matching and sorting (n=267): time 0.02105/0.9702, allocations: 12.02 MB / 0.7684 GB, free: 39 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.702e-05/0.9703, allocations: 154.5 kB / 0.7686 GB, free: 38.82 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005097/0.9754, allocations: 4.091 MB / 0.7726 GB, free: 35.21 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000216/0.9756, allocations: 25.7 kB / 0.7726 GB, free: 35.18 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001583/0.9772, allocations: 3.983 MB / 0.7765 GB, free: 31.58 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006947/0.9779, allocations: 0.9953 MB / 0.7775 GB, free: 30.69 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003099/0.9782, allocations: 0 / 0.7775 GB, free: 30.69 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003552/0.9786, allocations: 0.6697 MB / 0.7781 GB, free: 30.11 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003073/0.9817, allocations: 2.439 MB / 0.7805 GB, free: 27.91 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005134/0.9868, allocations: 7.454 MB / 0.7878 GB, free: 18.33 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005839/0.9927, allocations: 4.376 MB / 0.7921 GB, free: 14.57 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.065e-05/0.9928, allocations: 52 kB / 0.7921 GB, free: 14.52 MB / 458.7 MB Notification: Performance of matching and sorting (n=1119) (initialization): time 0.01296/1.006, allocations: 8.986 MB / 0.8009 GB, free: 6.578 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.656e-05/1.006, allocations: 4 kB / 0.8009 GB, free: 6.574 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001281/1.006, allocations: 180 kB / 0.8011 GB, free: 6.398 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008482/1.007, allocations: 482 kB / 0.8015 GB, free: 5.969 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005596/1.012, allocations: 1.935 MB / 0.8034 GB, free: 4.266 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004703/1.017, allocations: 4.554 MB / 0.8079 GB, free: 0 / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005783/1.023, allocations: 278.3 kB / 0.8081 GB, free: 15.76 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008315/1.024, allocations: 0.4992 MB / 0.8086 GB, free: 15.27 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.001004/1.025, allocations: 0.5391 MB / 0.8091 GB, free: 14.72 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006888/1.025, allocations: 414.6 kB / 0.8095 GB, free: 14.31 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004663/1.03, allocations: 2.802 MB / 0.8123 GB, free: 11.91 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.185e-05/1.03, allocations: 27.94 kB / 0.8123 GB, free: 11.88 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.123e-05/1.03, allocations: 4 kB / 0.8123 GB, free: 11.88 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.947e-05/1.03, allocations: 11.39 kB / 0.8123 GB, free: 11.88 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01452/1.045, allocations: 7.572 MB / 0.8197 GB, free: 5.59 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.63e-05/1.045, allocations: 8 kB / 0.8197 GB, free: 5.582 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001892/1.047, allocations: 366.9 kB / 0.8201 GB, free: 5.273 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007068/1.047, allocations: 226 kB / 0.8203 GB, free: 5.09 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001608/1.048, allocations: 18.34 kB / 0.8203 GB, free: 5.074 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004113/1.052, allocations: 3.746 MB / 0.824 GB, free: 1.355 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.348e-06/1.052, allocations: 11.94 kB / 0.824 GB, free: 1.344 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.1318/1.184, allocations: 6.032 MB / 0.8299 GB, free: 146 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008684/1.185, allocations: 468.7 kB / 0.8303 GB, free: 145.9 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000577/1.185, allocations: 13.88 kB / 0.8303 GB, free: 145.9 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001686/1.187, allocations: 60.28 kB / 0.8304 GB, free: 145.9 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002346/1.187, allocations: 118.6 kB / 0.8305 GB, free: 145.9 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001579/1.187, allocations: 75.19 kB / 0.8306 GB, free: 145.9 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.003846/1.191, allocations: 2.719 MB / 0.8332 GB, free: 145.7 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006055/1.197, allocations: 1.067 MB / 0.8343 GB, free: 145.7 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.0004419/1.198, allocations: 166.2 kB / 0.8344 GB, free: 145.6 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.00764/1.205, allocations: 5.844 MB / 0.8401 GB, free: 145.4 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 4.899e-06/1.205, allocations: 0 / 0.8401 GB, free: 145.4 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002057/1.207, allocations: 1.712 MB / 0.8418 GB, free: 145.1 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00211/1.209, allocations: 408.4 kB / 0.8422 GB, free: 145.1 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01774/1.227, allocations: 10.06 MB / 0.852 GB, free: 143.1 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005599/1.233, allocations: 4.727 MB / 0.8566 GB, free: 142.3 MB / 474.7 MB Notification: Performance of SimCode: time 9.51e-07/1.233, allocations: 0 / 0.8566 GB, free: 142.3 MB / 474.7 MB Notification: Performance of Templates: time 0.0778/1.311, allocations: 43.55 MB / 0.8992 GB, free: 137.2 MB / 474.7 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D.makefile (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 & ./PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D.pipe 2>&1)