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-master/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/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.001013/0.001013, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001027/0.001027, allocations: 190.9 kB / 16.25 MB, free: 6.633 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.37/1.37, allocations: 222.9 MB / 239.9 MB, free: 4.551 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1568/0.1568, allocations: 9.116 MB / 299.2 MB, free: 1.859 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00121/0.00121, allocations: 63.89 kB / 361.5 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1051/0.1063, allocations: 51.43 MB / 412.9 MB, free: 9.965 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.InvertedCraneCrab): time 0.2138/0.3202, allocations: 27.35 MB / 440.2 MB, free: 28.64 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01346/0.3337, allocations: 6.073 MB / 446.3 MB, free: 24.92 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006605/0.3404, allocations: 100.3 kB / 446.4 MB, free: 24.91 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001131/0.3415, allocations: 302.1 kB / 446.7 MB, free: 24.8 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00338/0.345, allocations: 1.302 MB / 448 MB, free: 24.2 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000444/0.3454, allocations: 126.6 kB / 448.1 MB, free: 24.12 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002529/0.348, allocations: 2.546 MB / 450.7 MB, free: 23 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001025/0.349, allocations: 0.9628 MB / 451.6 MB, free: 22.59 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008802/0.3499, allocations: 0.9002 MB / 452.5 MB, free: 22.19 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001245/0.3512, allocations: 1.429 MB / 454 MB, free: 21.64 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002691/0.3514, allocations: 234.4 kB / 454.2 MB, free: 21.64 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001245/0.3527, allocations: 0.8452 MB / 455 MB, free: 21.46 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007565/0.3535, allocations: 1.227 MB / 456.3 MB, free: 20.98 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009906/0.3545, allocations: 1.573 MB / 457.8 MB, free: 19.82 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003796/0.3583, allocations: 4.777 MB / 462.6 MB, free: 17.93 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.232e-06/0.3583, allocations: 2.469 kB / 462.6 MB, free: 17.93 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3583, allocations: 0 / 462.6 MB, free: 17.93 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.031e-05/0.3584, allocations: 0 / 462.6 MB, free: 17.93 MB / 350.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.007338/0.3657, allocations: 3.877 MB / 466.5 MB, free: 15.91 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.672e-05/0.3658, allocations: 9 kB / 466.5 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005953/0.3717, allocations: 1.76 MB / 468.3 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002041/0.3738, allocations: 1.354 MB / 469.6 MB, free: 14.76 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001141/0.3739, allocations: 152.9 kB / 469.8 MB, free: 14.69 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004319/0.3744, allocations: 199.6 kB / 470 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01156/0.3859, allocations: 7.965 MB / 477.9 MB, free: 11.08 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.225e-05/0.386, allocations: 26.02 kB / 478 MB, free: 11.06 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002807/0.3863, allocations: 93.52 kB / 478 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003194/0.3895, allocations: 1.844 MB / 479.9 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0149/0.4044, allocations: 7.168 MB / 487.1 MB, free: 8.184 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03381/0.4383, allocations: 24.15 MB / 0.4992 GB, free: 1.688 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005386/0.4437, allocations: 2.378 MB / 0.5015 GB, free: 15.19 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001445/0.4452, allocations: 0.8262 MB / 0.5024 GB, free: 14.37 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008162/0.4534, allocations: 4.742 MB / 0.507 GB, free: 9.242 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.089e-05/0.4534, allocations: 47.55 kB / 0.507 GB, free: 9.188 MB / 382.1 MB Notification: Performance of pre-optimization done (n=128): time 3.536e-06/0.4534, allocations: 3.938 kB / 0.507 GB, free: 9.184 MB / 382.1 MB Notification: Performance of matching and sorting (n=154): time 0.01582/0.4693, allocations: 7.011 MB / 0.5139 GB, free: 2.098 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.105e-05/0.4694, allocations: 68.72 kB / 0.5139 GB, free: 2.016 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00387/0.4733, allocations: 2.606 MB / 0.5165 GB, free: 15.38 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001366/0.4734, allocations: 45.7 kB / 0.5165 GB, free: 15.33 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001452/0.4749, allocations: 2.085 MB / 0.5186 GB, free: 13.21 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00056/0.4754, allocations: 0.5705 MB / 0.5191 GB, free: 12.63 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001101/0.4765, allocations: 0.778 MB / 0.5199 GB, free: 11.84 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001317/0.4767, allocations: 301.1 kB / 0.5202 GB, free: 11.55 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002635/0.4793, allocations: 1.312 MB / 0.5215 GB, free: 10.23 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0038/0.4832, allocations: 3.437 MB / 0.5248 GB, free: 5.738 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00643/0.4896, allocations: 5.082 MB / 0.5298 GB, free: 15.62 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.9e-05/0.4897, allocations: 20 kB / 0.5298 GB, free: 15.6 MB / 414.1 MB Notification: Performance of matching and sorting (n=512) (initialization): time 0.00824/0.4979, allocations: 4.801 MB / 0.5345 GB, free: 10.79 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.649e-05/0.498, allocations: 37.72 kB / 0.5345 GB, free: 10.75 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.352e-05/0.4981, allocations: 76.91 kB / 0.5346 GB, free: 10.68 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000384/0.4985, allocations: 188.8 kB / 0.5348 GB, free: 10.49 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002676/0.5012, allocations: 0.9046 MB / 0.5357 GB, free: 9.582 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002323/0.5035, allocations: 2.383 MB / 0.538 GB, free: 7.039 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002605/0.5061, allocations: 211.8 kB / 0.5382 GB, free: 6.832 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002937/0.5064, allocations: 232 kB / 0.5384 GB, free: 6.605 MB / 414.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.002255/0.5087, allocations: 1.558 MB / 0.5399 GB, free: 5.035 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003036/0.509, allocations: 221.1 kB / 0.5401 GB, free: 4.816 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003201/0.5122, allocations: 1.947 MB / 0.542 GB, free: 2.855 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000103/0.5123, allocations: 27.98 kB / 0.5421 GB, free: 2.828 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.5123, allocations: 0 / 0.5421 GB, free: 2.828 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.496e-05/0.5123, allocations: 7.969 kB / 0.5421 GB, free: 2.82 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0088/0.5212, allocations: 5.627 MB / 0.5476 GB, free: 13.06 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.995e-06/0.5212, allocations: 0 / 0.5476 GB, free: 13.06 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009548/0.5222, allocations: 239.7 kB / 0.5478 GB, free: 12.82 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002435/0.5224, allocations: 80.78 kB / 0.5479 GB, free: 12.74 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.5e-05/0.5225, allocations: 28 kB / 0.5479 GB, free: 12.71 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001831/0.5244, allocations: 2.117 MB / 0.55 GB, free: 10.44 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/0.5244, allocations: 3.984 kB / 0.55 GB, free: 10.43 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004575/0.529, allocations: 3.031 MB / 0.5529 GB, free: 7.359 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005472/0.5295, allocations: 294.3 kB / 0.5532 GB, free: 7.051 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002433/0.5298, allocations: 23.98 kB / 0.5532 GB, free: 7.027 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008079/0.5306, allocations: 79.84 kB / 0.5533 GB, free: 6.949 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001865/0.5308, allocations: 80.83 kB / 0.5534 GB, free: 6.871 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.8e-05/0.5309, allocations: 44 kB / 0.5534 GB, free: 6.828 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002444/0.5333, allocations: 1.687 MB / 0.5551 GB, free: 5.125 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5333, allocations: 0 / 0.5551 GB, free: 5.125 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002676/0.536, allocations: 0.6601 MB / 0.5557 GB, free: 4.465 MB / 430.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.0003298/0.5364, allocations: 152.5 kB / 0.5559 GB, free: 4.309 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.007856/0.5442, allocations: 4.57 MB / 0.5603 GB, free: 15.74 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.959e-06/0.5442, allocations: 192 / 0.5603 GB, free: 15.74 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001398/0.5457, allocations: 0.9844 MB / 0.5613 GB, free: 14.74 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001875/0.5475, allocations: 398.7 kB / 0.5617 GB, free: 14.37 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01093/0.5585, allocations: 7.936 MB / 0.5694 GB, free: 6.391 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002829/0.5614, allocations: 2.566 MB / 0.5719 GB, free: 3.797 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003501/0.5649, allocations: 1.204 MB / 0.5731 GB, free: 2.586 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004553/0.5654, allocations: 171.4 kB / 0.5733 GB, free: 2.422 MB / 446.1 MB Notification: Performance of SimCode: time 3.055e-06/0.5654, allocations: 0 / 0.5733 GB, free: 2.422 MB / 446.1 MB Notification: Performance of Templates: time 0.2143/0.7797, allocations: 24.36 MB / 0.5971 GB, free: 123.4 MB / 446.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 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.pipe 2>&1)