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.001229/0.001229, allocations: 117.5 kB / 16.37 MB, free: 6.016 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.001095/0.001095, allocations: 192.6 kB / 17.3 MB, free: 5.613 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.361/1.361, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04551/0.04551, allocations: 9.115 MB / 300.3 MB, free: 5.879 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001272/0.001272, allocations: 63.91 kB / 363.4 MB, free: 6.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2248/0.2261, allocations: 51.42 MB / 414.8 MB, free: 24.9 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CraneCrab): time 0.008121/0.2342, allocations: 8.324 MB / 423.1 MB, free: 16.55 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004721/0.239, allocations: 2.591 MB / 425.7 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009436/0.24, allocations: 35.94 kB / 425.8 MB, free: 13.91 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007315/0.2407, allocations: 357.6 kB / 426.1 MB, free: 13.56 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00255/0.2433, allocations: 1.393 MB / 427.5 MB, free: 12.16 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003067/0.2437, allocations: 131.8 kB / 427.6 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002006/0.2457, allocations: 2.504 MB / 430.1 MB, free: 9.527 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008468/0.2465, allocations: 0.9009 MB / 431 MB, free: 8.602 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008084/0.2474, allocations: 0.8832 MB / 431.9 MB, free: 7.715 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001052/0.2484, allocations: 1.3 MB / 433.2 MB, free: 6.41 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002414/0.2487, allocations: 228 kB / 433.4 MB, free: 6.188 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001087/0.2498, allocations: 0.8348 MB / 434.3 MB, free: 5.352 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006435/0.2504, allocations: 1.212 MB / 435.5 MB, free: 4.137 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008706/0.2513, allocations: 1.546 MB / 437 MB, free: 2.582 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003643/0.255, allocations: 4.936 MB / 442 MB, free: 13.63 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.255, allocations: 0 / 442 MB, free: 13.63 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.255, allocations: 0 / 442 MB, free: 13.63 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.631e-05/0.2551, allocations: 0 / 442 MB, free: 13.63 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.008224/0.2633, allocations: 3.818 MB / 445.8 MB, free: 9.75 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.192e-05/0.2634, allocations: 8.031 kB / 445.8 MB, free: 9.742 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006424/0.2698, allocations: 1.763 MB / 447.6 MB, free: 7.973 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003317/0.2731, allocations: 1.349 MB / 448.9 MB, free: 6.578 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001373/0.2733, allocations: 144 kB / 449 MB, free: 6.438 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004802/0.2738, allocations: 199.8 kB / 449.2 MB, free: 6.242 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01239/0.2862, allocations: 7.909 MB / 457.2 MB, free: 13.98 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.895e-05/0.2863, allocations: 19.86 kB / 457.2 MB, free: 13.96 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002776/0.2866, allocations: 91.86 kB / 457.3 MB, free: 13.87 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002891/0.2895, allocations: 1.844 MB / 459.1 MB, free: 12.02 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01429/0.3038, allocations: 7.121 MB / 466.2 MB, free: 4.887 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03922/0.3431, allocations: 23.82 MB / 490 MB, free: 12.58 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005478/0.3486, allocations: 2.378 MB / 492.4 MB, free: 10.09 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001482/0.3501, allocations: 0.8203 MB / 493.2 MB, free: 9.266 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008196/0.3583, allocations: 4.588 MB / 497.8 MB, free: 4.289 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.914e-05/0.3584, allocations: 43.56 kB / 497.9 MB, free: 4.234 MB / 366.1 MB Notification: Performance of pre-optimization done (n=129): time 4.368e-06/0.3584, allocations: 4 kB / 497.9 MB, free: 4.23 MB / 366.1 MB Notification: Performance of matching and sorting (n=153): time 0.01533/0.3737, allocations: 7.015 MB / 0.4931 GB, free: 13.13 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.309e-05/0.3738, allocations: 68.72 kB / 0.4931 GB, free: 13.05 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005005/0.3789, allocations: 2.588 MB / 0.4957 GB, free: 10.43 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000101/0.379, allocations: 45.7 kB / 0.4957 GB, free: 10.38 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001777/0.3808, allocations: 2.054 MB / 0.4977 GB, free: 8.293 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005701/0.3813, allocations: 0.5706 MB / 0.4983 GB, free: 7.715 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001279/0.3826, allocations: 0.7701 MB / 0.499 GB, free: 6.938 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001081/0.3828, allocations: 301.1 kB / 0.4993 GB, free: 6.641 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002267/0.385, allocations: 1.28 MB / 0.5005 GB, free: 5.359 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003703/0.3887, allocations: 3.37 MB / 0.5038 GB, free: 0.9648 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2091/0.5979, allocations: 5.003 MB / 0.5087 GB, free: 82.46 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.107e-05/0.598, allocations: 22.94 kB / 0.5087 GB, free: 82.46 MB / 382.1 MB Notification: Performance of matching and sorting (n=507) (initialization): time 0.009943/0.608, allocations: 4.819 MB / 0.5135 GB, free: 80.73 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.498e-05/0.6081, allocations: 39.38 kB / 0.5135 GB, free: 80.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.03e-05/0.6082, allocations: 74.66 kB / 0.5136 GB, free: 80.73 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007962/0.609, allocations: 306.9 kB / 0.5139 GB, free: 80.68 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002345/0.6113, allocations: 0.8537 MB / 0.5147 GB, free: 80.58 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003837/0.6152, allocations: 3.649 MB / 0.5183 GB, free: 78.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002539/0.6177, allocations: 202.3 kB / 0.5184 GB, free: 78.17 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002684/0.618, allocations: 224.8 kB / 0.5187 GB, free: 78.14 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.00214/0.6202, allocations: 1.547 MB / 0.5202 GB, free: 77.41 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003016/0.6205, allocations: 223.6 kB / 0.5204 GB, free: 77.4 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002762/0.6232, allocations: 2.001 MB / 0.5223 GB, free: 76.65 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.781e-05/0.6233, allocations: 30.03 kB / 0.5224 GB, free: 76.65 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.703e-06/0.6234, allocations: 3.812 kB / 0.5224 GB, free: 76.65 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.154e-05/0.6234, allocations: 11.34 kB / 0.5224 GB, free: 76.65 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007785/0.6312, allocations: 5.649 MB / 0.5279 GB, free: 72.87 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.424e-06/0.6312, allocations: 1.922 kB / 0.5279 GB, free: 72.87 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007144/0.6319, allocations: 205.5 kB / 0.5281 GB, free: 72.7 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004943/0.6324, allocations: 212.2 kB / 0.5283 GB, free: 72.54 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.81e-05/0.6325, allocations: 30.42 kB / 0.5283 GB, free: 72.51 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00248/0.635, allocations: 2.944 MB / 0.5312 GB, free: 69.64 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.606e-06/0.635, allocations: 7.938 kB / 0.5312 GB, free: 69.64 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003402/0.6384, allocations: 3.093 MB / 0.5342 GB, free: 66.59 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005171/0.6389, allocations: 298.4 kB / 0.5345 GB, free: 66.27 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002292/0.6392, allocations: 24 kB / 0.5345 GB, free: 66.25 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007235/0.6399, allocations: 66.66 kB / 0.5346 GB, free: 66.19 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001316/0.64, allocations: 88.81 kB / 0.5347 GB, free: 66.1 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.586e-05/0.6401, allocations: 42.97 kB / 0.5347 GB, free: 66.06 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00192/0.6421, allocations: 1.675 MB / 0.5364 GB, free: 64.37 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.6421, allocations: 0 / 0.5364 GB, free: 64.37 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002467/0.6445, allocations: 0.6779 MB / 0.537 GB, free: 63.7 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.0002775/0.6448, allocations: 154.1 kB / 0.5372 GB, free: 63.54 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003898/0.6487, allocations: 3.142 MB / 0.5402 GB, free: 60.41 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.6487, allocations: 1.562 kB / 0.5402 GB, free: 60.41 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001092/0.6498, allocations: 1.016 MB / 0.5412 GB, free: 59.39 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001556/0.6514, allocations: 397.8 kB / 0.5416 GB, free: 59.02 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008992/0.6604, allocations: 6.398 MB / 0.5479 GB, free: 52.57 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002128/0.6626, allocations: 2.561 MB / 0.5504 GB, free: 49.98 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002309/0.6649, allocations: 1.172 MB / 0.5515 GB, free: 48.8 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004347/0.6653, allocations: 163.3 kB / 0.5517 GB, free: 48.64 MB / 382.1 MB Notification: Performance of SimCode: time 1.112e-06/0.6653, allocations: 4 kB / 0.5517 GB, free: 48.64 MB / 382.1 MB Notification: Performance of Templates: time 0.03828/0.7036, allocations: 23.43 MB / 0.5745 GB, free: 25.42 MB / 382.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 -s gbode -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.CraneCrab.pipe 2>&1)