Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.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.InvertedCraneCrab,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab") translateModel(PlanarMechanics.Examples.InvertedCraneCrab,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001089/0.00109, allocations: 102.4 kB / 16.35 MB, free: 5.875 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.0012/0.0012, allocations: 191 kB / 17.29 MB, free: 5.516 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.347/1.347, allocations: 222.9 MB / 241 MB, free: 14.98 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.0454/0.0454, allocations: 9.125 MB / 300.3 MB, free: 5.805 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001314/0.001314, allocations: 59.91 kB / 363.4 MB, free: 6.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2297/0.231, allocations: 51.43 MB / 414.8 MB, free: 24.85 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.InvertedCraneCrab): time 0.007153/0.2382, allocations: 8.641 MB / 423.4 MB, free: 16.18 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003465/0.2417, allocations: 2.614 MB / 426.1 MB, free: 13.56 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000425/0.2421, allocations: 35.94 kB / 426.1 MB, free: 13.53 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005823/0.2427, allocations: 357.5 kB / 426.4 MB, free: 13.18 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001866/0.2446, allocations: 1.412 MB / 427.8 MB, free: 11.76 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002511/0.2449, allocations: 143.7 kB / 428 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001548/0.2464, allocations: 2.521 MB / 430.5 MB, free: 9.09 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000737/0.2472, allocations: 0.9463 MB / 431.5 MB, free: 8.121 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000586/0.2478, allocations: 0.9066 MB / 432.4 MB, free: 7.211 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001008/0.2488, allocations: 1.308 MB / 433.7 MB, free: 5.898 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002247/0.249, allocations: 232 kB / 433.9 MB, free: 5.672 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008872/0.2499, allocations: 0.8426 MB / 434.7 MB, free: 4.828 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006007/0.2505, allocations: 1.219 MB / 436 MB, free: 3.605 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008059/0.2513, allocations: 1.561 MB / 437.5 MB, free: 2.035 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003821/0.2552, allocations: 4.963 MB / 442.5 MB, free: 13.05 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.546e-06/0.2552, allocations: 0 / 442.5 MB, free: 13.05 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.2552, allocations: 0 / 442.5 MB, free: 13.05 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.786e-05/0.2553, allocations: 0 / 442.5 MB, free: 13.05 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: 1155 * Number of variables: 1155 Notification: Performance of Generate backend data structure: time 0.008098/0.2634, allocations: 3.881 MB / 446.4 MB, free: 9.109 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.048e-05/0.2635, allocations: 8.031 kB / 446.4 MB, free: 9.102 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006203/0.2697, allocations: 1.763 MB / 448.1 MB, free: 7.332 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003108/0.2728, allocations: 1.367 MB / 449.5 MB, free: 5.922 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001133/0.2729, allocations: 152 kB / 449.6 MB, free: 5.773 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003963/0.2733, allocations: 203.9 kB / 449.8 MB, free: 5.574 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01163/0.285, allocations: 7.967 MB / 457.8 MB, free: 13.25 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.417e-05/0.2851, allocations: 19.78 kB / 457.8 MB, free: 13.23 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002769/0.2854, allocations: 91.88 kB / 457.9 MB, free: 13.14 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002865/0.2882, allocations: 1.852 MB / 459.8 MB, free: 11.28 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01267/0.3009, allocations: 7.161 MB / 466.9 MB, free: 4.109 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03372/0.3347, allocations: 24.05 MB / 491 MB, free: 11.56 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005133/0.3399, allocations: 2.373 MB / 493.4 MB, free: 9.07 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001385/0.3413, allocations: 0.8242 MB / 494.2 MB, free: 8.246 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00786/0.3491, allocations: 4.745 MB / 498.9 MB, free: 3.113 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.974e-05/0.3492, allocations: 43.56 kB / 499 MB, free: 3.062 MB / 366.1 MB Notification: Performance of pre-optimization done (n=128): time 3.216e-06/0.3492, allocations: 0 / 499 MB, free: 3.062 MB / 366.1 MB Notification: Performance of matching and sorting (n=154): time 0.01573/0.3649, allocations: 7.003 MB / 0.4941 GB, free: 11.98 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.135e-05/0.3651, allocations: 76.59 kB / 0.4942 GB, free: 11.89 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005405/0.3705, allocations: 2.609 MB / 0.4967 GB, free: 9.254 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001723/0.3707, allocations: 45.7 kB / 0.4968 GB, free: 9.203 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001871/0.3726, allocations: 2.077 MB / 0.4988 GB, free: 7.094 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007431/0.3733, allocations: 0.5744 MB / 0.4994 GB, free: 6.512 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001364/0.3747, allocations: 0.7858 MB / 0.5001 GB, free: 5.715 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001178/0.3748, allocations: 301.1 kB / 0.5004 GB, free: 5.418 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002478/0.3773, allocations: 1.304 MB / 0.5017 GB, free: 4.109 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2025/0.5798, allocations: 3.429 MB / 0.5051 GB, free: 85.47 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006025/0.5859, allocations: 5.09 MB / 0.51 GB, free: 81.77 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.045e-05/0.586, allocations: 20.62 kB / 0.51 GB, free: 81.77 MB / 382.1 MB Notification: Performance of matching and sorting (n=512) (initialization): time 0.007945/0.5939, allocations: 4.809 MB / 0.5147 GB, free: 80.05 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.241e-05/0.594, allocations: 35.34 kB / 0.5148 GB, free: 80.05 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-05/0.5941, allocations: 74.88 kB / 0.5148 GB, free: 80.05 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003418/0.5944, allocations: 188.3 kB / 0.515 GB, free: 80.03 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002379/0.5968, allocations: 0.9053 MB / 0.5159 GB, free: 79.92 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001658/0.5985, allocations: 2.375 MB / 0.5182 GB, free: 78 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002336/0.6008, allocations: 213.1 kB / 0.5184 GB, free: 77.93 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000246/0.6011, allocations: 233.7 kB / 0.5187 GB, free: 77.9 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 338 * 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 (478): * Single equations (assignments): 473 * 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 {(1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00188/0.603, allocations: 1.562 MB / 0.5202 GB, free: 77.14 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003649/0.6033, allocations: 227.9 kB / 0.5204 GB, free: 77.14 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002859/0.6062, allocations: 1.945 MB / 0.5223 GB, free: 76.41 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.364e-05/0.6063, allocations: 24 kB / 0.5223 GB, free: 76.41 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.6063, allocations: 3.188 kB / 0.5223 GB, free: 76.41 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.122e-05/0.6063, allocations: 7.547 kB / 0.5223 GB, free: 76.41 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007065/0.6134, allocations: 5.569 MB / 0.5278 GB, free: 72.84 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.953e-06/0.6134, allocations: 0 / 0.5278 GB, free: 72.84 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008907/0.6143, allocations: 243 kB / 0.528 GB, free: 72.64 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002404/0.6146, allocations: 85.77 kB / 0.5281 GB, free: 72.58 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.169e-05/0.6147, allocations: 31.78 kB / 0.5281 GB, free: 72.55 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001403/0.6161, allocations: 2.109 MB / 0.5302 GB, free: 70.42 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.6161, allocations: 0 / 0.5302 GB, free: 70.42 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00352/0.6196, allocations: 3.036 MB / 0.5331 GB, free: 67.68 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005435/0.6202, allocations: 296.2 kB / 0.5334 GB, free: 67.4 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002252/0.6204, allocations: 27.08 kB / 0.5334 GB, free: 67.38 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007535/0.6212, allocations: 76.09 kB / 0.5335 GB, free: 67.3 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001656/0.6214, allocations: 88.77 kB / 0.5336 GB, free: 67.21 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.807e-05/0.6214, allocations: 47.52 kB / 0.5336 GB, free: 67.17 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00192/0.6234, allocations: 1.684 MB / 0.5353 GB, free: 65.47 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6234, allocations: 0 / 0.5353 GB, free: 65.47 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002519/0.6259, allocations: 0.6648 MB / 0.5359 GB, free: 64.81 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (revolute.phi,prismatic.s,prismatic.v) * 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 (124): * Single equations (assignments): 119 * 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 {(1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002884/0.6262, allocations: 154.4 kB / 0.5361 GB, free: 64.66 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004296/0.6305, allocations: 3.129 MB / 0.5391 GB, free: 61.54 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.781e-06/0.6305, allocations: 0 / 0.5391 GB, free: 61.54 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001181/0.6317, allocations: 0.9778 MB / 0.5401 GB, free: 60.55 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001742/0.6335, allocations: 397.4 kB / 0.5405 GB, free: 60.19 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009077/0.6426, allocations: 6.336 MB / 0.5467 GB, free: 53.82 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002021/0.6446, allocations: 2.566 MB / 0.5492 GB, free: 51.23 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002346/0.647, allocations: 1.207 MB / 0.5503 GB, free: 50.01 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004239/0.6474, allocations: 174.1 kB / 0.5505 GB, free: 49.84 MB / 382.1 MB Notification: Performance of SimCode: time 1.072e-06/0.6474, allocations: 0 / 0.5505 GB, free: 49.84 MB / 382.1 MB Notification: Performance of Templates: time 0.03555/0.683, allocations: 22.67 MB / 0.5727 GB, free: 27.37 MB / 382.1 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.sim & ./PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.pipe 2>&1)