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.001094/0.001094, allocations: 105.6 kB / 16.27 MB, free: 6.414 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.001135/0.001136, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.324/1.324, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04523/0.04523, allocations: 9.119 MB / 300.2 MB, free: 5.934 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001265/0.001265, allocations: 67.89 kB / 362.6 MB, free: 7.449 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1827/0.184, allocations: 51.43 MB / 414 MB, free: 25 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CraneCrab): time 0.00637/0.1904, allocations: 8.315 MB / 422.4 MB, free: 16.66 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003305/0.1937, allocations: 2.591 MB / 424.9 MB, free: 14.06 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004282/0.1942, allocations: 35.94 kB / 425 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005637/0.1948, allocations: 357.6 kB / 425.3 MB, free: 13.68 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001881/0.1967, allocations: 1.397 MB / 426.7 MB, free: 12.27 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002445/0.1969, allocations: 127.8 kB / 426.8 MB, free: 12.15 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001498/0.1984, allocations: 2.484 MB / 429.3 MB, free: 9.66 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006865/0.1991, allocations: 0.9087 MB / 430.2 MB, free: 8.727 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005895/0.1997, allocations: 0.8871 MB / 431.1 MB, free: 7.836 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009697/0.2007, allocations: 1.288 MB / 432.4 MB, free: 6.543 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002475/0.201, allocations: 236 kB / 432.6 MB, free: 6.312 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009678/0.2019, allocations: 0.8309 MB / 433.5 MB, free: 5.48 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006266/0.2026, allocations: 1.208 MB / 434.7 MB, free: 4.27 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008369/0.2034, allocations: 1.549 MB / 436.2 MB, free: 2.711 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003228/0.2067, allocations: 4.712 MB / 440.9 MB, free: 13.98 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.2067, allocations: 0 / 440.9 MB, free: 13.98 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.2067, allocations: 4 kB / 440.9 MB, free: 13.98 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.262e-05/0.2068, allocations: 0 / 440.9 MB, free: 13.98 MB / 318.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.007502/0.2143, allocations: 3.822 MB / 444.8 MB, free: 10.09 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.6e-05/0.2143, allocations: 16.03 kB / 444.8 MB, free: 10.08 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006491/0.2208, allocations: 1.752 MB / 446.5 MB, free: 8.32 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002042/0.2229, allocations: 1.33 MB / 447.9 MB, free: 6.945 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001033/0.223, allocations: 159.9 kB / 448 MB, free: 6.789 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003699/0.2234, allocations: 203.8 kB / 448.2 MB, free: 6.59 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0105/0.2339, allocations: 7.902 MB / 456.1 MB, free: 14.34 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.997e-05/0.234, allocations: 19.88 kB / 456.1 MB, free: 14.32 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002922/0.2343, allocations: 95.86 kB / 456.2 MB, free: 14.22 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002924/0.2372, allocations: 1.848 MB / 458.1 MB, free: 12.37 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01153/0.2487, allocations: 7.114 MB / 465.2 MB, free: 5.242 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02942/0.2782, allocations: 23.91 MB / 489.1 MB, free: 12.84 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004923/0.2831, allocations: 2.378 MB / 491.5 MB, free: 10.35 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001233/0.2844, allocations: 0.8204 MB / 492.3 MB, free: 9.527 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006347/0.2907, allocations: 4.6 MB / 496.9 MB, free: 4.539 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.637e-05/0.2908, allocations: 39.56 kB / 496.9 MB, free: 4.488 MB / 366.1 MB Notification: Performance of pre-optimization done (n=129): time 3.096e-06/0.2908, allocations: 4 kB / 497 MB, free: 4.484 MB / 366.1 MB Notification: Performance of matching and sorting (n=153): time 0.01408/0.3049, allocations: 7.019 MB / 0.4922 GB, free: 13.38 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.123e-05/0.305, allocations: 64.72 kB / 0.4922 GB, free: 13.3 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003557/0.3085, allocations: 2.592 MB / 0.4948 GB, free: 10.68 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.626e-05/0.3086, allocations: 45.7 kB / 0.4948 GB, free: 10.63 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001295/0.3099, allocations: 2.058 MB / 0.4968 GB, free: 8.539 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004389/0.3104, allocations: 0.5589 MB / 0.4974 GB, free: 7.973 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009635/0.3113, allocations: 0.7701 MB / 0.4981 GB, free: 7.195 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.448e-05/0.3114, allocations: 305.1 kB / 0.4984 GB, free: 6.895 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002057/0.3135, allocations: 1.28 MB / 0.4996 GB, free: 5.613 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003363/0.3169, allocations: 3.374 MB / 0.5029 GB, free: 1.215 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1584/0.4753, allocations: 4.995 MB / 0.5078 GB, free: 83.28 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.869e-05/0.4754, allocations: 20.75 kB / 0.5078 GB, free: 83.28 MB / 382.1 MB Notification: Performance of matching and sorting (n=507) (initialization): time 0.007386/0.4828, allocations: 4.819 MB / 0.5125 GB, free: 81.55 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.279e-05/0.4828, allocations: 38.59 kB / 0.5126 GB, free: 81.55 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.127e-05/0.4829, allocations: 75.59 kB / 0.5127 GB, free: 81.55 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007/0.4836, allocations: 309.5 kB / 0.5129 GB, free: 81.5 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00218/0.4858, allocations: 0.8483 MB / 0.5138 GB, free: 81.4 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003406/0.4892, allocations: 3.66 MB / 0.5174 GB, free: 79.04 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002097/0.4913, allocations: 200.6 kB / 0.5175 GB, free: 78.98 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002188/0.4916, allocations: 220 kB / 0.5178 GB, free: 78.96 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.001601/0.4932, allocations: 1.55 MB / 0.5193 GB, free: 78.21 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002295/0.4934, allocations: 225.6 kB / 0.5195 GB, free: 78.21 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002665/0.4961, allocations: 1.998 MB / 0.5214 GB, free: 77.46 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.504e-05/0.4962, allocations: 33.78 kB / 0.5215 GB, free: 77.46 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.4962, allocations: 6.562 kB / 0.5215 GB, free: 77.46 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.113e-05/0.4962, allocations: 3.797 kB / 0.5215 GB, free: 77.46 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006874/0.5031, allocations: 5.679 MB / 0.527 GB, free: 73.8 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.204e-06/0.5031, allocations: 5.594 kB / 0.527 GB, free: 73.8 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007273/0.5039, allocations: 202.2 kB / 0.5272 GB, free: 73.63 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005059/0.5044, allocations: 221.1 kB / 0.5274 GB, free: 73.46 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.556e-05/0.5045, allocations: 35.31 kB / 0.5275 GB, free: 73.43 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002529/0.507, allocations: 2.952 MB / 0.5303 GB, free: 70.58 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.507, allocations: 0 / 0.5303 GB, free: 70.58 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003353/0.5104, allocations: 3.091 MB / 0.5334 GB, free: 67.52 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003456/0.5107, allocations: 294.4 kB / 0.5336 GB, free: 67.21 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000272/0.511, allocations: 24 kB / 0.5337 GB, free: 67.19 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007747/0.5118, allocations: 67.36 kB / 0.5337 GB, free: 67.13 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001409/0.5119, allocations: 92.77 kB / 0.5338 GB, free: 67.04 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.105e-05/0.512, allocations: 45.98 kB / 0.5339 GB, free: 67 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001904/0.5139, allocations: 1.671 MB / 0.5355 GB, free: 65.31 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.5139, allocations: 3.828 kB / 0.5355 GB, free: 65.31 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002341/0.5163, allocations: 0.6737 MB / 0.5362 GB, free: 64.64 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.0002718/0.5166, allocations: 162.1 kB / 0.5363 GB, free: 64.48 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005793/0.5224, allocations: 4.359 MB / 0.5406 GB, free: 60.14 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.5224, allocations: 0 / 0.5406 GB, free: 60.14 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001137/0.5235, allocations: 1.032 MB / 0.5416 GB, free: 59.11 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001614/0.5252, allocations: 380.4 kB / 0.5419 GB, free: 58.76 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008638/0.5338, allocations: 6.846 MB / 0.5486 GB, free: 51.86 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002148/0.536, allocations: 2.558 MB / 0.5511 GB, free: 49.26 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005153/0.5365, allocations: 207.4 kB / 0.5513 GB, free: 49.06 MB / 382.1 MB Notification: Performance of SimCode: time 4.91e-07/0.5365, allocations: 0 / 0.5513 GB, free: 49.06 MB / 382.1 MB Notification: Performance of Templates: time 0.052/0.5885, allocations: 55.51 MB / 0.6055 GB, free: 9.676 MB / 398.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)