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.001872/0.001872, allocations: 182 kB / 15.98 MB, free: 5.762 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.324/1.324, allocations: 222.9 MB / 239.7 MB, free: 10.98 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.001015/0.001015, allocations: 104 kB / 289.9 MB, free: 10.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04071/0.04071, allocations: 8.94 MB / 349 MB, free: 24 kB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000931/0.0009311, allocations: 47.92 kB / 411.1 MB, free: 57.07 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07236/0.0733, allocations: 51.39 MB / 462.5 MB, free: 5.727 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CraneCrab): time 0.1955/0.2688, allocations: 27.05 MB / 489.6 MB, free: 10.79 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01119/0.28, allocations: 6.088 MB / 495.6 MB, free: 9.148 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005642/0.2857, allocations: 99.75 kB / 495.7 MB, free: 9.137 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001157/0.2869, allocations: 303 kB / 496 MB, free: 9.027 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003581/0.2905, allocations: 1.305 MB / 497.3 MB, free: 8.57 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000499/0.291, allocations: 114.9 kB / 497.5 MB, free: 8.512 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.004093/0.2951, allocations: 3.481 MB / 0.4892 GB, free: 7.449 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001338/0.2965, allocations: 0.8285 MB / 0.49 GB, free: 7.133 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001396/0.2979, allocations: 0.7558 MB / 0.4907 GB, free: 6.863 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001709/0.2996, allocations: 1.306 MB / 0.492 GB, free: 6.492 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003157/0.2999, allocations: 133.8 kB / 0.4921 GB, free: 6.492 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001288/0.3012, allocations: 0.7778 MB / 0.4929 GB, free: 6.305 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008097/0.3021, allocations: 1.118 MB / 0.494 GB, free: 5.695 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000955/0.303, allocations: 1.473 MB / 0.4954 GB, free: 4.57 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003383/0.3064, allocations: 4.561 MB / 0.4999 GB, free: 1.582 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.3064, allocations: 4 kB / 0.4999 GB, free: 1.578 MB / 314.7 MB Notification: Performance of FrontEnd: time 8.21e-07/0.3064, allocations: 1.156 kB / 0.4999 GB, free: 1.578 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.571e-05/0.3065, allocations: 0 / 0.4999 GB, free: 1.578 MB / 314.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.006887/0.3134, allocations: 3.827 MB / 0.5036 GB, free: 15.02 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.242e-05/0.3134, allocations: 9.562 kB / 0.5036 GB, free: 15.02 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005952/0.3194, allocations: 1.767 MB / 0.5054 GB, free: 14.08 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002299/0.3217, allocations: 1.34 MB / 0.5067 GB, free: 13.12 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.376e-05/0.3218, allocations: 144 kB / 0.5068 GB, free: 13.08 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000333/0.3221, allocations: 197.9 kB / 0.507 GB, free: 12.92 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01142/0.3336, allocations: 7.911 MB / 0.5147 GB, free: 4.758 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.498e-05/0.3337, allocations: 27.8 kB / 0.5147 GB, free: 4.73 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003011/0.334, allocations: 90.61 kB / 0.5148 GB, free: 4.676 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002969/0.337, allocations: 1.838 MB / 0.5166 GB, free: 2.844 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01342/0.3504, allocations: 7.132 MB / 0.5236 GB, free: 11.7 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0338/0.3843, allocations: 23.89 MB / 0.5469 GB, free: 3.477 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005076/0.3894, allocations: 2.378 MB / 0.5492 GB, free: 0.9805 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00122/0.3906, allocations: 0.8169 MB / 0.55 GB, free: 168 kB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006736/0.3974, allocations: 4.599 MB / 0.5545 GB, free: 11.21 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.945e-05/0.3974, allocations: 43.56 kB / 0.5546 GB, free: 11.16 MB / 378.7 MB Notification: Performance of pre-optimization done (n=129): time 3.827e-06/0.3974, allocations: 0 / 0.5546 GB, free: 11.16 MB / 378.7 MB Notification: Performance of matching and sorting (n=153): time 0.01316/0.4106, allocations: 7.01 MB / 0.5614 GB, free: 4.07 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.304e-05/0.4107, allocations: 64.72 kB / 0.5615 GB, free: 3.992 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003746/0.4144, allocations: 2.588 MB / 0.564 GB, free: 1.371 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.597e-05/0.4145, allocations: 53.69 kB / 0.5641 GB, free: 1.312 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001212/0.4158, allocations: 2.043 MB / 0.5661 GB, free: 15.27 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004695/0.4162, allocations: 0.5798 MB / 0.5666 GB, free: 14.69 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001086/0.4173, allocations: 0.7701 MB / 0.5674 GB, free: 13.91 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.388e-05/0.4174, allocations: 301.1 kB / 0.5677 GB, free: 13.62 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002123/0.4196, allocations: 1.276 MB / 0.5689 GB, free: 12.34 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003306/0.4229, allocations: 3.374 MB / 0.5722 GB, free: 7.945 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005446/0.4284, allocations: 4.995 MB / 0.5771 GB, free: 1.938 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.712e-05/0.4285, allocations: 24 kB / 0.5771 GB, free: 1.914 MB / 394.7 MB Notification: Performance of matching and sorting (n=507) (initialization): time 0.00836/0.4368, allocations: 4.824 MB / 0.5818 GB, free: 13.07 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.732e-05/0.4369, allocations: 36 kB / 0.5819 GB, free: 13.04 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.212e-05/0.437, allocations: 76.09 kB / 0.5819 GB, free: 12.96 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007394/0.4378, allocations: 309 kB / 0.5822 GB, free: 12.66 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002504/0.4403, allocations: 0.8577 MB / 0.5831 GB, free: 11.8 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00403/0.4443, allocations: 3.355 MB / 0.5863 GB, free: 8.32 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002652/0.447, allocations: 187.9 kB / 0.5865 GB, free: 8.137 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004441/0.4475, allocations: 232 kB / 0.5867 GB, free: 7.91 MB / 410.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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,17,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003067/0.4505, allocations: 1.556 MB / 0.5883 GB, free: 6.344 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004463/0.451, allocations: 213.2 kB / 0.5885 GB, free: 6.133 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003383/0.4544, allocations: 2.004 MB / 0.5904 GB, free: 4.121 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.892e-05/0.4545, allocations: 27.98 kB / 0.5904 GB, free: 4.094 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.207e-06/0.4545, allocations: 0 / 0.5904 GB, free: 4.094 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.623e-05/0.4545, allocations: 15.91 kB / 0.5905 GB, free: 4.078 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01016/0.4647, allocations: 5.683 MB / 0.596 GB, free: 14.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.845e-06/0.4648, allocations: 0 / 0.596 GB, free: 14.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007697/0.4655, allocations: 204 kB / 0.5962 GB, free: 14.1 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005747/0.4661, allocations: 216.6 kB / 0.5964 GB, free: 13.89 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.798e-05/0.4662, allocations: 27.98 kB / 0.5964 GB, free: 13.86 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002998/0.4692, allocations: 2.727 MB / 0.5991 GB, free: 11 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.951e-06/0.4693, allocations: 7.938 kB / 0.5991 GB, free: 11 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01927/0.4885, allocations: 12.44 MB / 0.6113 GB, free: 14.22 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000556/0.4891, allocations: 298.4 kB / 0.6115 GB, free: 13.91 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004033/0.4895, allocations: 26.48 kB / 0.6116 GB, free: 13.89 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009062/0.4905, allocations: 67.86 kB / 0.6116 GB, free: 13.82 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002189/0.4907, allocations: 84.83 kB / 0.6117 GB, free: 13.73 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001055/0.4908, allocations: 48.05 kB / 0.6118 GB, free: 13.69 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002711/0.4935, allocations: 1.671 MB / 0.6134 GB, free: 12 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.293e-06/0.4935, allocations: 0 / 0.6134 GB, free: 12 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003511/0.4971, allocations: 0.8581 MB / 0.6142 GB, free: 11.14 MB / 442.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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000389/0.4975, allocations: 165.2 kB / 0.6144 GB, free: 10.97 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004899/0.5024, allocations: 3.12 MB / 0.6174 GB, free: 7.863 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.47e-06/0.5024, allocations: 4.062 kB / 0.6174 GB, free: 7.859 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00141/0.5038, allocations: 1.016 MB / 0.6184 GB, free: 6.828 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002017/0.5058, allocations: 364.6 kB / 0.6188 GB, free: 6.48 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01231/0.5182, allocations: 9.147 MB / 0.6277 GB, free: 13.25 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00295/0.5212, allocations: 2.609 MB / 0.6303 GB, free: 10.61 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002821/0.524, allocations: 1.188 MB / 0.6314 GB, free: 9.41 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004511/0.5245, allocations: 167.4 kB / 0.6316 GB, free: 9.246 MB / 458.7 MB Notification: Performance of SimCode: time 4.41e-07/0.5245, allocations: 0 / 0.6316 GB, free: 9.246 MB / 458.7 MB Notification: Performance of Templates: time 0.2128/0.7373, allocations: 26.93 MB / 0.6579 GB, free: 149.5 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)