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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/PlanarMechanics 1.6.0/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001118/0.001118, allocations: 109.3 kB / 15.99 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001213/0.001213, allocations: 197.9 kB / 16.91 MB, free: 6.176 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.267/1.267, allocations: 222.9 MB / 240.6 MB, free: 15.39 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04183/0.04183, allocations: 9.111 MB / 299.8 MB, free: 6.086 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00114/0.00114, allocations: 59.91 kB / 362.1 MB, free: 7.801 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2285/0.2296, allocations: 51.42 MB / 413.5 MB, free: 25.2 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CraneCrab): time 0.01737/0.2471, allocations: 27.04 MB / 440.5 MB, free: 14.06 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01324/0.2604, allocations: 6.05 MB / 446.6 MB, free: 7.988 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005792/0.2662, allocations: 99.81 kB / 446.7 MB, free: 7.891 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001269/0.2675, allocations: 306.5 kB / 447 MB, free: 7.59 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003644/0.2712, allocations: 1.296 MB / 448.3 MB, free: 6.289 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004871/0.2717, allocations: 115.8 kB / 448.4 MB, free: 6.176 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003327/0.2751, allocations: 2.509 MB / 450.9 MB, free: 3.66 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001396/0.2765, allocations: 0.9126 MB / 451.8 MB, free: 2.723 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001424/0.2779, allocations: 0.8987 MB / 452.7 MB, free: 1.82 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001905/0.2798, allocations: 1.397 MB / 454.1 MB, free: 428 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005305/0.2804, allocations: 228 kB / 454.3 MB, free: 200 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00163/0.282, allocations: 0.8387 MB / 455.2 MB, free: 15.36 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001252/0.2833, allocations: 1.227 MB / 456.4 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001737/0.2851, allocations: 1.549 MB / 458 MB, free: 12.56 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004302/0.2894, allocations: 3.84 MB / 461.8 MB, free: 8.715 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.733e-06/0.2894, allocations: 0 / 461.8 MB, free: 8.715 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.2894, allocations: 0 / 461.8 MB, free: 8.715 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001558/0.2896, allocations: 0 / 461.8 MB, free: 8.715 MB / 334.1 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.009282/0.2989, allocations: 3.834 MB / 465.6 MB, free: 4.816 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.615e-05/0.2989, allocations: 8.031 kB / 465.6 MB, free: 4.809 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006323/0.3053, allocations: 1.755 MB / 467.4 MB, free: 3.047 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002948/0.3083, allocations: 1.341 MB / 468.7 MB, free: 1.66 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001287/0.3084, allocations: 152 kB / 468.9 MB, free: 1.512 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005928/0.309, allocations: 191.9 kB / 469.1 MB, free: 1.324 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01223/0.3213, allocations: 7.909 MB / 477 MB, free: 9.062 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.992e-05/0.3214, allocations: 27.7 kB / 477 MB, free: 9.035 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003299/0.3217, allocations: 91.86 kB / 477.1 MB, free: 8.945 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0029/0.3246, allocations: 1.844 MB / 478.9 MB, free: 7.098 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.014/0.3387, allocations: 7.125 MB / 486.1 MB, free: 15.96 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03605/0.3748, allocations: 23.91 MB / 0.498 GB, free: 7.562 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005515/0.3803, allocations: 2.366 MB / 0.5003 GB, free: 5.066 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001462/0.3818, allocations: 0.8169 MB / 0.5011 GB, free: 4.246 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1934/0.5753, allocations: 4.592 MB / 0.5056 GB, free: 90.86 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.02e-05/0.5754, allocations: 44.19 kB / 0.5057 GB, free: 90.82 MB / 382.1 MB Notification: Performance of pre-optimization done (n=129): time 4.959e-06/0.5754, allocations: 1.078 kB / 0.5057 GB, free: 90.82 MB / 382.1 MB Notification: Performance of matching and sorting (n=153): time 0.01526/0.5907, allocations: 7.008 MB / 0.5125 GB, free: 88.44 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.675e-05/0.5908, allocations: 66.95 kB / 0.5126 GB, free: 88.37 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003323/0.5941, allocations: 2.592 MB / 0.5151 GB, free: 87.37 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001831/0.5943, allocations: 48.86 kB / 0.5151 GB, free: 87.32 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001002/0.5953, allocations: 2.051 MB / 0.5171 GB, free: 85.74 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004728/0.5958, allocations: 0.5669 MB / 0.5177 GB, free: 85.32 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008258/0.5966, allocations: 0.7722 MB / 0.5185 GB, free: 84.95 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.834e-05/0.5967, allocations: 307.4 kB / 0.5187 GB, free: 84.65 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001613/0.5983, allocations: 1.277 MB / 0.52 GB, free: 84.23 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002249/0.6006, allocations: 3.378 MB / 0.5233 GB, free: 81.02 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004072/0.6046, allocations: 5 MB / 0.5282 GB, free: 75.91 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.937e-05/0.6047, allocations: 20 kB / 0.5282 GB, free: 75.89 MB / 382.1 MB Notification: Performance of matching and sorting (n=507) (initialization): time 0.00667/0.6114, allocations: 4.823 MB / 0.5329 GB, free: 71.43 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.114e-05/0.6115, allocations: 47.86 kB / 0.533 GB, free: 71.39 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.821e-05/0.6116, allocations: 72 kB / 0.533 GB, free: 71.32 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006672/0.6122, allocations: 316.2 kB / 0.5333 GB, free: 71.01 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002341/0.6146, allocations: 0.8475 MB / 0.5342 GB, free: 70.16 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003422/0.618, allocations: 3.65 MB / 0.5377 GB, free: 66.38 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002939/0.621, allocations: 196 kB / 0.5379 GB, free: 66.19 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005965/0.6216, allocations: 226.7 kB / 0.5381 GB, free: 65.97 MB / 382.1 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.002356/0.624, allocations: 1.548 MB / 0.5396 GB, free: 64.41 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004368/0.6244, allocations: 229 kB / 0.5398 GB, free: 64.19 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002861/0.6273, allocations: 1.995 MB / 0.5418 GB, free: 62.18 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.811e-05/0.6274, allocations: 31.98 kB / 0.5418 GB, free: 62.15 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.416e-06/0.6274, allocations: 4 kB / 0.5418 GB, free: 62.14 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.441e-05/0.6275, allocations: 7.969 kB / 0.5418 GB, free: 62.14 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008629/0.6361, allocations: 5.683 MB / 0.5474 GB, free: 56.36 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.748e-06/0.6361, allocations: 4 kB / 0.5474 GB, free: 56.36 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007267/0.6369, allocations: 203.7 kB / 0.5476 GB, free: 56.16 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005445/0.6374, allocations: 217 kB / 0.5478 GB, free: 55.95 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.933e-05/0.6375, allocations: 31.42 kB / 0.5478 GB, free: 55.92 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002485/0.64, allocations: 2.949 MB / 0.5507 GB, free: 52.84 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.718e-06/0.64, allocations: 11.88 kB / 0.5507 GB, free: 52.82 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003687/0.6437, allocations: 3.09 MB / 0.5537 GB, free: 49.68 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006931/0.6445, allocations: 294.4 kB / 0.554 GB, free: 49.37 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002942/0.6448, allocations: 28 kB / 0.554 GB, free: 49.34 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007709/0.6455, allocations: 63.92 kB / 0.5541 GB, free: 49.28 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001666/0.6457, allocations: 89.11 kB / 0.5542 GB, free: 49.2 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.72e-05/0.6458, allocations: 47.98 kB / 0.5542 GB, free: 49.15 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002049/0.6479, allocations: 1.667 MB / 0.5559 GB, free: 47.46 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6479, allocations: 3.938 kB / 0.5559 GB, free: 47.46 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003078/0.651, allocations: 0.6781 MB / 0.5565 GB, free: 46.79 MB / 382.1 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.0003786/0.6514, allocations: 155 kB / 0.5567 GB, free: 46.63 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006475/0.6578, allocations: 4.366 MB / 0.5609 GB, free: 42.29 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 9.748e-06/0.6579, allocations: 0 / 0.5609 GB, free: 42.29 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00122/0.6591, allocations: 1.017 MB / 0.5619 GB, free: 41.27 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002029/0.6612, allocations: 393.2 kB / 0.5623 GB, free: 40.9 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01044/0.6716, allocations: 8.335 MB / 0.5704 GB, free: 32.52 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001886/0.6735, allocations: 2.573 MB / 0.573 GB, free: 29.91 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006574/0.6742, allocations: 203.4 kB / 0.5732 GB, free: 29.71 MB / 382.1 MB Notification: Performance of SimCode: time 1.362e-06/0.6742, allocations: 0 / 0.5732 GB, free: 29.71 MB / 382.1 MB Notification: Performance of Templates: time 0.06767/0.7419, allocations: 55.59 MB / 0.6274 GB, free: 6.234 MB / 414.1 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)