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.002111/0.002111, allocations: 173.6 kB / 15.78 MB, free: 6.348 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.521/2.522, allocations: 223.2 MB / 239.8 MB, free: 1.785 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.001297/0.001297, allocations: 94.64 kB / 290.9 MB, free: 13.95 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.06287/0.06287, allocations: 8.947 MB / 351 MB, free: 2.066 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006321/0.0006323, allocations: 11.62 kB / 413.8 MB, free: 88.69 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1733/0.174, allocations: 52.39 MB / 466.2 MB, free: 41.71 MB / 330.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CraneCrab): time 0.02781/0.2019, allocations: 24.44 MB / 490.7 MB, free: 17.2 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.01863/0.2206, allocations: 5.81 MB / 496.5 MB, free: 11.37 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008825/0.2295, allocations: 99.81 kB / 496.6 MB, free: 11.27 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006968/0.2365, allocations: 1.182 MB / 497.8 MB, free: 10.09 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02039/0.257, allocations: 4.263 MB / 0.4903 GB, free: 5.809 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002896/0.26, allocations: 127.8 kB / 0.4904 GB, free: 5.684 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.006108/0.2661, allocations: 2.754 MB / 0.4931 GB, free: 2.922 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002359/0.2686, allocations: 0.7843 MB / 0.4938 GB, free: 2.105 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002254/0.2709, allocations: 0.782 MB / 0.4946 GB, free: 1.32 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002968/0.2739, allocations: 1.281 MB / 0.4958 GB, free: 36 kB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001327/0.2752, allocations: 124 kB / 0.496 GB, free: 15.91 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003221/0.2785, allocations: 0.6709 MB / 0.4966 GB, free: 15.24 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002718/0.2813, allocations: 1.091 MB / 0.4977 GB, free: 14.15 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001952/0.2832, allocations: 0.6248 MB / 0.4983 GB, free: 13.52 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0076/0.2909, allocations: 3.636 MB / 0.5018 GB, free: 9.871 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.115e-05/0.291, allocations: 0 / 0.5018 GB, free: 9.871 MB / 346.7 MB Notification: Performance of FrontEnd: time 4.719e-06/0.291, allocations: 0 / 0.5018 GB, free: 9.871 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002319/0.2912, allocations: 0 / 0.5018 GB, free: 9.871 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: 1144 * Number of variables: 1144 Notification: Performance of Generate backend data structure: time 0.017/0.3082, allocations: 3.237 MB / 0.505 GB, free: 6.57 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.82e-05/0.3083, allocations: 11.97 kB / 0.505 GB, free: 6.559 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01223/0.3206, allocations: 1.809 MB / 0.5068 GB, free: 4.742 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006471/0.3271, allocations: 1.309 MB / 0.5081 GB, free: 3.387 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004304/0.3276, allocations: 147.6 kB / 0.5082 GB, free: 3.242 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001911/0.3295, allocations: 195.8 kB / 0.5084 GB, free: 3.051 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0291/0.3587, allocations: 7.89 MB / 0.5161 GB, free: 10.8 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002664/0.359, allocations: 31.72 kB / 0.5161 GB, free: 10.77 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001554/0.3606, allocations: 91.86 kB / 0.5162 GB, free: 10.68 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005864/0.3665, allocations: 1.856 MB / 0.518 GB, free: 8.824 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02499/0.3915, allocations: 7.078 MB / 0.5249 GB, free: 1.73 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5118/0.9034, allocations: 23.9 MB / 0.5483 GB, free: 51.7 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0102/0.9136, allocations: 2.37 MB / 0.5506 GB, free: 50.55 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002563/0.9163, allocations: 0.8197 MB / 0.5514 GB, free: 50.15 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01374/0.9301, allocations: 4.584 MB / 0.5559 GB, free: 46.52 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.768e-05/0.9302, allocations: 40 kB / 0.5559 GB, free: 46.48 MB / 362.7 MB Notification: Performance of pre-optimization done (n=129): time 7.383e-06/0.9303, allocations: 0 / 0.5559 GB, free: 46.48 MB / 362.7 MB Notification: Performance of matching and sorting (n=153): time 0.02697/0.9572, allocations: 6.996 MB / 0.5627 GB, free: 42.68 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.566e-05/0.9574, allocations: 68.25 kB / 0.5628 GB, free: 42.61 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006649/0.964, allocations: 2.57 MB / 0.5653 GB, free: 41.21 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003499/0.9644, allocations: 45.2 kB / 0.5654 GB, free: 41.16 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001828/0.9663, allocations: 2.058 MB / 0.5674 GB, free: 39.36 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008917/0.9672, allocations: 0.5664 MB / 0.5679 GB, free: 38.88 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002772/0.9675, allocations: 76.09 kB / 0.568 GB, free: 38.82 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0003183/0.9678, allocations: 478.4 kB / 0.5684 GB, free: 38.39 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003428/0.9713, allocations: 1.268 MB / 0.5697 GB, free: 37.77 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004452/0.9757, allocations: 3.353 MB / 0.573 GB, free: 33.44 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004744/0.9805, allocations: 2.078 MB / 0.575 GB, free: 31.36 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.284e-05/0.9806, allocations: 20 kB / 0.575 GB, free: 31.34 MB / 362.7 MB Notification: Performance of matching and sorting (n=507) (initialization): time 0.01419/0.9949, allocations: 4.8 MB / 0.5797 GB, free: 26.54 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.441e-05/0.995, allocations: 36.94 kB / 0.5797 GB, free: 26.5 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001354/0.9951, allocations: 76.06 kB / 0.5798 GB, free: 26.43 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001021/0.9962, allocations: 316.1 kB / 0.5801 GB, free: 26.12 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004526/1.001, allocations: 0.85 MB / 0.5809 GB, free: 25.27 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006427/1.007, allocations: 3.344 MB / 0.5842 GB, free: 21.79 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006417/1.014, allocations: 197 kB / 0.5844 GB, free: 21.6 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001146/1.015, allocations: 224 kB / 0.5846 GB, free: 21.38 MB / 362.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (463): * Single equations (assignments): 458 * 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.006003/1.021, allocations: 1.553 MB / 0.5861 GB, free: 19.82 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001032/1.022, allocations: 229 kB / 0.5863 GB, free: 19.59 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005724/1.028, allocations: 1.988 MB / 0.5883 GB, free: 17.59 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001759/1.028, allocations: 31.97 kB / 0.5883 GB, free: 17.56 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.979e-06/1.028, allocations: 0 / 0.5883 GB, free: 17.56 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.012e-05/1.028, allocations: 7.984 kB / 0.5883 GB, free: 17.55 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01739/1.045, allocations: 5.674 MB / 0.5939 GB, free: 11.79 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.581e-05/1.045, allocations: 4 kB / 0.5939 GB, free: 11.79 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001465/1.047, allocations: 199.8 kB / 0.594 GB, free: 11.59 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009727/1.048, allocations: 216.6 kB / 0.5943 GB, free: 11.38 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001486/1.048, allocations: 26.36 kB / 0.5943 GB, free: 11.35 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004598/1.053, allocations: 2.726 MB / 0.5969 GB, free: 8.496 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.161e-06/1.053, allocations: 4 kB / 0.5969 GB, free: 8.492 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007579/1.06, allocations: 3.074 MB / 0.5999 GB, free: 5.367 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001404/1.062, allocations: 310.3 kB / 0.6002 GB, free: 5.043 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005485/1.062, allocations: 24 kB / 0.6003 GB, free: 5.02 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001482/1.064, allocations: 67.92 kB / 0.6003 GB, free: 4.953 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002675/1.064, allocations: 94.03 kB / 0.6004 GB, free: 4.863 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001403/1.064, allocations: 43.98 kB / 0.6005 GB, free: 4.82 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.004359/1.069, allocations: 1.655 MB / 0.6021 GB, free: 3.148 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.61e-07/1.069, allocations: 0 / 0.6021 GB, free: 3.148 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.008265/1.077, allocations: 0.6824 MB / 0.6027 GB, free: 2.473 MB / 362.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (113): * Single equations (assignments): 108 * 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.0007888/1.078, allocations: 148.5 kB / 0.6029 GB, free: 2.324 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.009053/1.087, allocations: 3.116 MB / 0.6059 GB, free: 15.21 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-05/1.087, allocations: 4 kB / 0.6059 GB, free: 15.21 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002961/1.09, allocations: 1.018 MB / 0.6069 GB, free: 14.18 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003962/1.094, allocations: 356 kB / 0.6073 GB, free: 13.84 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02274/1.117, allocations: 8.113 MB / 0.6152 GB, free: 5.656 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004848/1.122, allocations: 2.555 MB / 0.6177 GB, free: 3.07 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001305/1.123, allocations: 207.4 kB / 0.6179 GB, free: 2.871 MB / 378.7 MB Notification: Performance of SimCode: time 2.254e-06/1.123, allocations: 0 / 0.6179 GB, free: 2.871 MB / 378.7 MB Notification: Performance of Templates: time 0.1452/1.268, allocations: 55.02 MB / 0.6716 GB, free: 11.92 MB / 442.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)