Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.CraneCrab.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.CraneCrab,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.CraneCrab") translateModel(PlanarMechanics.Examples.CraneCrab,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.CraneCrab") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009724/0.0009723, allocations: 174.5 kB / 12.73 MB, free: 2.59 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.157/1.157, allocations: 221.4 MB / 234.6 MB, free: 14.39 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.0008249/0.000825, allocations: 77.08 kB / 285.6 MB, free: 13 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.03848/0.03848, allocations: 8.847 MB / 345.3 MB, free: 1.289 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.269e-05/2.27e-05, allocations: 4 kB / 405.6 MB, free: 61.39 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07036/0.0704, allocations: 52.39 MB / 457.9 MB, free: 9.055 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2913/0.3617, allocations: 88.15 MB / 0.5333 GB, free: 13.66 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001881/0.362, allocations: 74.58 kB / 0.5334 GB, free: 13.62 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1427/0.5047, allocations: 61.62 MB / 0.5935 GB, free: 6.145 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.213e-06/0.5047, allocations: 0 / 0.5935 GB, free: 6.145 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.658e-05/0.5048, allocations: 59.98 kB / 0.5936 GB, free: 6.086 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1144 * Number of variables: 1144 Notification: Performance of Generate backend data structure: time 0.007199/0.512, allocations: 3.024 MB / 0.5966 GB, free: 3 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.636e-05/0.5121, allocations: 12.03 kB / 0.5966 GB, free: 2.988 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007819/0.5199, allocations: 1.923 MB / 0.5984 GB, free: 1.059 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002914/0.5228, allocations: 1.694 MB / 0.6001 GB, free: 15.32 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001526/0.523, allocations: 221.7 kB / 0.6003 GB, free: 15.1 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005815/0.5236, allocations: 291.8 kB / 0.6006 GB, free: 14.81 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01127/0.5349, allocations: 7.418 MB / 0.6078 GB, free: 7.027 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.679e-05/0.535, allocations: 23.88 kB / 0.6079 GB, free: 7.004 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003927/0.5354, allocations: 131.9 kB / 0.608 GB, free: 6.875 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001118/0.5365, allocations: 0.8647 MB / 0.6088 GB, free: 6.008 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01076/0.5473, allocations: 6.904 MB / 0.6156 GB, free: 15.09 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02757/0.5749, allocations: 23.83 MB / 0.6388 GB, free: 6.773 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004292/0.5792, allocations: 2.346 MB / 0.6411 GB, free: 4.316 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009952/0.5802, allocations: 0.7851 MB / 0.6419 GB, free: 3.531 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1975/0.7777, allocations: 4.573 MB / 0.6464 GB, free: 124.5 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.197e-05/0.7777, allocations: 43.62 kB / 0.6464 GB, free: 124.5 MB / 458.7 MB Notification: Performance of pre-optimization done (n=129): time 4.018e-06/0.7778, allocations: 0 / 0.6464 GB, free: 124.5 MB / 458.7 MB Notification: Performance of matching and sorting (n=153): time 0.01144/0.7892, allocations: 6.126 MB / 0.6524 GB, free: 123.6 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.084e-05/0.7893, allocations: 65.84 kB / 0.6524 GB, free: 123.5 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003169/0.7924, allocations: 2.252 MB / 0.6546 GB, free: 123.2 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 7.702e-05/0.7925, allocations: 46.52 kB / 0.6547 GB, free: 123.2 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009774/0.7935, allocations: 2.051 MB / 0.6567 GB, free: 122.2 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003686/0.7939, allocations: 0.5749 MB / 0.6573 GB, free: 121.9 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001369/0.794, allocations: 74.41 kB / 0.6573 GB, free: 121.9 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002245/0.7943, allocations: 475.4 kB / 0.6578 GB, free: 121.6 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001669/0.7959, allocations: 1.197 MB / 0.6589 GB, free: 121.6 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002414/0.7984, allocations: 3.278 MB / 0.6621 GB, free: 118.9 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002752/0.8011, allocations: 2.032 MB / 0.6641 GB, free: 118.9 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.969e-05/0.8012, allocations: 21.41 kB / 0.6642 GB, free: 118.9 MB / 458.7 MB Notification: Performance of matching and sorting (n=505) (initialization): time 0.006517/0.8077, allocations: 4.663 MB / 0.6687 GB, free: 118.5 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.686e-05/0.8078, allocations: 36.28 kB / 0.6687 GB, free: 118.5 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.409e-05/0.8078, allocations: 75.16 kB / 0.6688 GB, free: 118.5 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005931/0.8084, allocations: 316.9 kB / 0.6691 GB, free: 118.5 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002083/0.8105, allocations: 0.8428 MB / 0.6699 GB, free: 118.4 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003243/0.8138, allocations: 3.318 MB / 0.6732 GB, free: 117 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002851/0.8167, allocations: 184.5 kB / 0.6734 GB, free: 117 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003462/0.817, allocations: 232.6 kB / 0.6736 GB, free: 117 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 333 * Number of states: 0 () * Number of discrete variables: 15 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[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 (461): * Single equations (assignments): 456 * 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%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004252/0.8175, allocations: 385.7 kB / 0.6739 GB, free: 116.8 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002593/0.8177, allocations: 216.3 kB / 0.6742 GB, free: 116.6 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00254/0.8203, allocations: 1.932 MB / 0.676 GB, free: 116.1 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.289e-05/0.8204, allocations: 29.45 kB / 0.6761 GB, free: 116.1 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.8204, allocations: 3.938 kB / 0.6761 GB, free: 116.1 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.152e-05/0.8204, allocations: 5.578 kB / 0.6761 GB, free: 116.1 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007417/0.8278, allocations: 5.61 MB / 0.6816 GB, free: 114 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.973e-06/0.8279, allocations: 3.188 kB / 0.6816 GB, free: 114 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007054/0.8286, allocations: 210 kB / 0.6818 GB, free: 113.9 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004555/0.829, allocations: 198.8 kB / 0.6819 GB, free: 113.9 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.055e-05/0.8291, allocations: 33.08 kB / 0.682 GB, free: 113.9 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002327/0.8314, allocations: 2.692 MB / 0.6846 GB, free: 112.1 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.8315, allocations: 7.578 kB / 0.6846 GB, free: 112.1 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003242/0.8347, allocations: 3.196 MB / 0.6877 GB, free: 110.5 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005069/0.8352, allocations: 309.9 kB / 0.688 GB, free: 110.3 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002148/0.8355, allocations: 26.66 kB / 0.6881 GB, free: 110.3 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007264/0.8362, allocations: 59.62 kB / 0.6881 GB, free: 110.3 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001334/0.8363, allocations: 89.81 kB / 0.6882 GB, free: 110.2 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.749e-05/0.8364, allocations: 44.08 kB / 0.6882 GB, free: 110.2 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001848/0.8383, allocations: 1.61 MB / 0.6898 GB, free: 109.6 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.8383, allocations: 0 / 0.6898 GB, free: 109.6 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002718/0.841, allocations: 0.6859 MB / 0.6905 GB, free: 109.5 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 4 (revolute.phi,revolute.w,damper1D.s_rel,damper1D.v_rel) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * Single equations (assignments): 107 * 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%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003089/0.8413, allocations: 161.8 kB / 0.6906 GB, free: 109.4 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003671/0.845, allocations: 3.007 MB / 0.6936 GB, free: 108.3 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.845, allocations: 0 / 0.6936 GB, free: 108.3 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001026/0.8461, allocations: 0.9907 MB / 0.6945 GB, free: 107.9 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001392/0.8475, allocations: 333.9 kB / 0.6949 GB, free: 107.8 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007908/0.8554, allocations: 5.218 MB / 0.7 GB, free: 105.7 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002049/0.8575, allocations: 2.618 MB / 0.7025 GB, free: 104.5 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002699/0.8602, allocations: 1.178 MB / 0.7037 GB, free: 104.4 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004394/0.8606, allocations: 170.8 kB / 0.7038 GB, free: 104.4 MB / 458.7 MB Notification: Performance of SimCode: time 9.42e-07/0.8606, allocations: 4 kB / 0.7038 GB, free: 104.4 MB / 458.7 MB Notification: Performance of Templates: time 0.0368/0.8974, allocations: 23.61 MB / 0.7269 GB, free: 89.44 MB / 458.7 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.CraneCrab.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.CraneCrab.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.CraneCrab.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.CraneCrab.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.CraneCrab.sim & ./PlanarMechanics_PlanarMechanics.Examples.CraneCrab -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.CraneCrab.pipe 2>&1)