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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001094/0.001093, allocations: 176.1 kB / 16.12 MB, free: 5.668 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.406/1.406, allocations: 223.3 MB / 240.1 MB, free: 10.01 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007729/0.0007731, allocations: 103.3 kB / 291.3 MB, free: 10.58 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04055/0.04055, allocations: 8.951 MB / 351.4 MB, free: 14.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005199/0.0005199, allocations: 8 kB / 414.4 MB, free: 56.73 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1085, allocations: 52.39 MB / 466.8 MB, free: 4.406 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3068/0.4153, allocations: 101.9 MB / 0.5553 GB, free: 15.88 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002561/0.4156, allocations: 85.95 kB / 0.5554 GB, free: 15.83 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5063/0.9219, allocations: 118.5 MB / 0.6711 GB, free: 101.2 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.444e-06/0.9219, allocations: 3.469 kB / 0.6711 GB, free: 101.2 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003371/0.9223, allocations: 100.5 kB / 0.6712 GB, free: 101.2 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.01819/0.9405, allocations: 5.388 MB / 0.6765 GB, free: 98.84 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.058e-05/0.9405, allocations: 11.34 kB / 0.6765 GB, free: 98.84 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01609/0.9566, allocations: 3.862 MB / 0.6802 GB, free: 98.46 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009382/0.9661, allocations: 3.914 MB / 0.6841 GB, free: 97.77 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000358/0.9665, allocations: 402.8 kB / 0.6844 GB, free: 97.76 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002499/0.969, allocations: 0.5206 MB / 0.6849 GB, free: 97.76 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02574/0.9947, allocations: 14.02 MB / 0.6986 GB, free: 94.63 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002062/0.995, allocations: 65.41 kB / 0.6987 GB, free: 94.63 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001041/0.996, allocations: 259.9 kB / 0.6989 GB, free: 94.62 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001697/0.9977, allocations: 1.54 MB / 0.7005 GB, free: 94.6 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02211/1.02, allocations: 12.21 MB / 0.7124 GB, free: 92.21 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0688/1.089, allocations: 58.84 MB / 0.7698 GB, free: 45 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009429/1.098, allocations: 5.079 MB / 0.7748 GB, free: 40.4 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002303/1.101, allocations: 1.787 MB / 0.7765 GB, free: 38.83 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01226/1.113, allocations: 7.965 MB / 0.7843 GB, free: 30.69 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.593e-05/1.113, allocations: 59.81 kB / 0.7844 GB, free: 30.62 MB / 458.7 MB Notification: Performance of pre-optimization done (n=239): time 5.14e-06/1.113, allocations: 0 / 0.7844 GB, free: 30.62 MB / 458.7 MB Notification: Performance of matching and sorting (n=269): time 0.02539/1.138, allocations: 14.34 MB / 0.7984 GB, free: 16.2 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.027e-05/1.138, allocations: 154.5 kB / 0.7985 GB, free: 16.01 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006559/1.145, allocations: 5.34 MB / 0.8037 GB, free: 10.68 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003256/1.145, allocations: 57.7 kB / 0.8038 GB, free: 10.61 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001737/1.147, allocations: 4.118 MB / 0.8078 GB, free: 6.496 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007693/1.148, allocations: 1.032 MB / 0.8088 GB, free: 5.473 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002773/1.148, allocations: 156 kB / 0.809 GB, free: 5.32 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003045/1.148, allocations: 0.657 MB / 0.8096 GB, free: 4.656 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003399/1.152, allocations: 2.479 MB / 0.812 GB, free: 2.172 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007089/1.159, allocations: 7.301 MB / 0.8192 GB, free: 8.492 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2554/1.414, allocations: 10.63 MB / 0.8296 GB, free: 99.29 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002397/1.415, allocations: 47.88 kB / 0.8296 GB, free: 99.29 MB / 474.7 MB Notification: Performance of matching and sorting (n=1069) (initialization): time 0.02169/1.436, allocations: 9.787 MB / 0.8392 GB, free: 98.44 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001351/1.437, allocations: 77.56 kB / 0.8392 GB, free: 98.44 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002594/1.437, allocations: 173.3 kB / 0.8394 GB, free: 98.44 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001014/1.438, allocations: 456.4 kB / 0.8398 GB, free: 98.42 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006361/1.444, allocations: 1.853 MB / 0.8416 GB, free: 98.25 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005448/1.45, allocations: 4.815 MB / 0.8463 GB, free: 95.54 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006137/1.456, allocations: 456.7 kB / 0.8468 GB, free: 95.54 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00142/1.457, allocations: 488.7 kB / 0.8472 GB, free: 95.54 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 773 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1001): * Single equations (assignments): 993 * 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.005576/1.463, allocations: 2.848 MB / 0.85 GB, free: 95.25 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008752/1.464, allocations: 462.5 kB / 0.8505 GB, free: 95.25 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005028/1.469, allocations: 2.927 MB / 0.8533 GB, free: 95.08 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.625e-05/1.469, allocations: 36.98 kB / 0.8534 GB, free: 95.08 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.121e-05/1.469, allocations: 3.906 kB / 0.8534 GB, free: 95.08 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.09e-05/1.469, allocations: 10.83 kB / 0.8534 GB, free: 95.08 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01584/1.485, allocations: 8.975 MB / 0.8621 GB, free: 94.24 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.569e-05/1.485, allocations: 7.094 kB / 0.8621 GB, free: 94.24 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001411/1.486, allocations: 380.8 kB / 0.8625 GB, free: 94.22 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005385/1.487, allocations: 228.5 kB / 0.8627 GB, free: 94.2 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001355/1.487, allocations: 51.69 kB / 0.8628 GB, free: 94.2 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003097/1.49, allocations: 4.023 MB / 0.8667 GB, free: 91.7 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.654e-06/1.49, allocations: 15 kB / 0.8667 GB, free: 91.69 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006497/1.497, allocations: 5.578 MB / 0.8722 GB, free: 89.65 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001348/1.498, allocations: 0.5271 MB / 0.8727 GB, free: 89.27 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007502/1.499, allocations: 47.78 kB / 0.8727 GB, free: 89.24 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001692/1.5, allocations: 119 kB / 0.8728 GB, free: 89.21 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003116/1.501, allocations: 162.3 kB / 0.873 GB, free: 89.18 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001433/1.501, allocations: 78.75 kB / 0.8731 GB, free: 89.16 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.005394/1.506, allocations: 3.354 MB / 0.8763 GB, free: 88.04 MB / 474.7 MB Notification: Performance of sort global known variables: time 5.21e-07/1.506, allocations: 0 / 0.8763 GB, free: 88.04 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.007071/1.513, allocations: 1.258 MB / 0.8776 GB, free: 87.89 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (204): * Single equations (assignments): 196 * 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.0005357/1.514, allocations: 204.3 kB / 0.8778 GB, free: 87.75 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.009592/1.524, allocations: 6.073 MB / 0.8837 GB, free: 85.61 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.164e-05/1.524, allocations: 1.203 kB / 0.8837 GB, free: 85.61 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002549/1.526, allocations: 1.783 MB / 0.8854 GB, free: 84.86 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007848/1.534, allocations: 0.6092 MB / 0.886 GB, free: 84.61 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02217/1.556, allocations: 14.41 MB / 0.9001 GB, free: 77.19 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004759/1.561, allocations: 4.246 MB / 0.9043 GB, free: 75.65 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.006514/1.568, allocations: 2.709 MB / 0.9069 GB, free: 75.46 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007784/1.568, allocations: 330.2 kB / 0.9072 GB, free: 75.45 MB / 474.7 MB Notification: Performance of SimCode: time 1.062e-06/1.568, allocations: 7.938 kB / 0.9072 GB, free: 75.45 MB / 474.7 MB Notification: Performance of Templates: time 0.0756/1.644, allocations: 42.24 MB / 0.9485 GB, free: 44.94 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)