Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.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.ControlledCraneCrab,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab") translateModel(PlanarMechanics.Examples.ControlledCraneCrab,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001283/0.001283, allocations: 105.7 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.001284/0.001284, 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.32/1.32, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04497/0.04497, allocations: 9.12 MB / 300.2 MB, free: 5.891 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001447/0.001447, allocations: 63.89 kB / 362.6 MB, free: 7.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1833/0.1848, allocations: 51.42 MB / 414 MB, free: 24.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.ControlledCraneCrab): time 0.007071/0.1919, allocations: 8.796 MB / 422.8 MB, free: 16.16 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004159/0.1961, allocations: 2.678 MB / 425.5 MB, free: 13.48 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008094/0.1969, allocations: 35.94 kB / 425.5 MB, free: 13.45 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006709/0.1976, allocations: 373.5 kB / 425.9 MB, free: 13.08 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002369/0.2, allocations: 1.42 MB / 427.3 MB, free: 11.65 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003661/0.2004, allocations: 179.7 kB / 427.5 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001838/0.2023, allocations: 2.609 MB / 430.1 MB, free: 8.863 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008974/0.2032, allocations: 0.9879 MB / 431.1 MB, free: 7.852 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007836/0.204, allocations: 0.9415 MB / 432 MB, free: 6.906 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001148/0.2051, allocations: 1.343 MB / 433.4 MB, free: 5.559 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003303/0.2055, allocations: 240 kB / 433.6 MB, free: 5.324 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001152/0.2066, allocations: 0.8465 MB / 434.5 MB, free: 4.477 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007375/0.2074, allocations: 1.227 MB / 435.7 MB, free: 3.246 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001068/0.2085, allocations: 1.588 MB / 437.3 MB, free: 1.648 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004356/0.2128, allocations: 4.837 MB / 442.1 MB, free: 12.8 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.71e-06/0.2129, allocations: 0 / 442.1 MB, free: 12.8 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.2129, allocations: 0 / 442.1 MB, free: 12.8 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.587e-05/0.213, allocations: 0 / 442.1 MB, free: 12.8 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: 1165 * Number of variables: 1165 Notification: Performance of Generate backend data structure: time 0.008677/0.2217, allocations: 3.936 MB / 446.1 MB, free: 8.797 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.711e-05/0.2217, allocations: 15.97 kB / 446.1 MB, free: 8.781 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006951/0.2287, allocations: 1.779 MB / 447.8 MB, free: 6.996 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002928/0.2316, allocations: 1.386 MB / 449.2 MB, free: 5.566 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001307/0.2318, allocations: 148.1 kB / 449.4 MB, free: 5.422 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004536/0.2322, allocations: 215.9 kB / 449.6 MB, free: 5.211 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0121/0.2443, allocations: 8.001 MB / 457.6 MB, free: 12.84 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.079e-05/0.2445, allocations: 19.81 kB / 457.6 MB, free: 12.82 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002911/0.2448, allocations: 95.86 kB / 457.7 MB, free: 12.73 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003058/0.2478, allocations: 1.852 MB / 459.6 MB, free: 10.87 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01421/0.262, allocations: 7.169 MB / 466.7 MB, free: 3.691 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.037/0.2991, allocations: 24.45 MB / 491.2 MB, free: 10.74 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005454/0.3046, allocations: 2.386 MB / 493.6 MB, free: 8.242 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001376/0.306, allocations: 0.8246 MB / 494.4 MB, free: 7.414 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0072/0.3132, allocations: 4.644 MB / 499 MB, free: 2.387 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.923e-05/0.3133, allocations: 47.56 kB / 499.1 MB, free: 2.332 MB / 366.1 MB Notification: Performance of pre-optimization done (n=131): time 4.539e-06/0.3133, allocations: 0 / 499.1 MB, free: 2.332 MB / 366.1 MB Notification: Performance of matching and sorting (n=153): time 0.01472/0.328, allocations: 6.885 MB / 0.4941 GB, free: 11.37 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.063e-05/0.3281, allocations: 64.72 kB / 0.4942 GB, free: 11.29 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004183/0.3323, allocations: 2.656 MB / 0.4968 GB, free: 8.609 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001424/0.3325, allocations: 49.7 kB / 0.4968 GB, free: 8.555 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001478/0.3339, allocations: 2.113 MB / 0.4989 GB, free: 6.41 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000602/0.3346, allocations: 0.5744 MB / 0.4994 GB, free: 5.828 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001183/0.3358, allocations: 0.782 MB / 0.5002 GB, free: 5.035 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001002/0.3359, allocations: 309.1 kB / 0.5005 GB, free: 4.73 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002227/0.3381, allocations: 1.292 MB / 0.5017 GB, free: 3.434 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1627/0.5008, allocations: 3.427 MB / 0.5051 GB, free: 85.33 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005125/0.506, allocations: 5.071 MB / 0.51 GB, free: 81.57 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.358e-05/0.506, allocations: 21.25 kB / 0.5101 GB, free: 81.57 MB / 382.1 MB Notification: Performance of matching and sorting (n=516) (initialization): time 0.007865/0.5139, allocations: 4.909 MB / 0.5149 GB, free: 79.82 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.594e-05/0.514, allocations: 36.62 kB / 0.5149 GB, free: 79.82 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.93e-05/0.5141, allocations: 74.84 kB / 0.515 GB, free: 79.82 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006637/0.5147, allocations: 307.1 kB / 0.5153 GB, free: 79.77 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002394/0.5171, allocations: 0.8603 MB / 0.5161 GB, free: 79.66 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003532/0.5207, allocations: 3.661 MB / 0.5197 GB, free: 77.31 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002438/0.5232, allocations: 199.5 kB / 0.5199 GB, free: 77.25 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002751/0.5234, allocations: 232 kB / 0.5201 GB, free: 77.22 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 340 * Number of states: 0 () * Number of discrete variables: 16 (revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],PID.I.local_reset,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 (472): * Single equations (assignments): 467 * 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.0017/0.5251, allocations: 1.574 MB / 0.5216 GB, free: 76.46 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002686/0.5254, allocations: 226.9 kB / 0.5218 GB, free: 76.46 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002747/0.5282, allocations: 2.019 MB / 0.5238 GB, free: 75.7 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.806e-05/0.5283, allocations: 25.97 kB / 0.5238 GB, free: 75.7 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.5283, allocations: 9.922 kB / 0.5238 GB, free: 75.7 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.177e-05/0.5283, allocations: 3.75 kB / 0.5238 GB, free: 75.7 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007215/0.5355, allocations: 5.719 MB / 0.5294 GB, free: 71.36 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.993e-06/0.5356, allocations: 0 / 0.5294 GB, free: 71.36 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007901/0.5364, allocations: 212.2 kB / 0.5296 GB, free: 71.18 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005171/0.5369, allocations: 217.9 kB / 0.5298 GB, free: 71.02 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.217e-05/0.537, allocations: 25.97 kB / 0.5299 GB, free: 71 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002557/0.5396, allocations: 2.946 MB / 0.5327 GB, free: 68.05 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.5396, allocations: 3.938 kB / 0.5327 GB, free: 68.04 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003563/0.5431, allocations: 3.103 MB / 0.5358 GB, free: 65 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007469/0.5439, allocations: 450.1 kB / 0.5362 GB, free: 64.54 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003743/0.5443, allocations: 28.72 kB / 0.5362 GB, free: 64.52 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008839/0.5452, allocations: 66.11 kB / 0.5363 GB, free: 64.45 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001479/0.5453, allocations: 80.83 kB / 0.5364 GB, free: 64.38 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.83e-05/0.5454, allocations: 51.98 kB / 0.5364 GB, free: 64.32 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002072/0.5475, allocations: 1.716 MB / 0.5381 GB, free: 62.59 MB / 382.1 MB Notification: Performance of sort global known variables: time 2e-07/0.5475, allocations: 0 / 0.5381 GB, free: 62.59 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002601/0.5501, allocations: 0.6896 MB / 0.5388 GB, free: 61.91 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (PID.I.y,PID.D.x,prismatic.s,prismatic.v,revolute.phi,revolute.w) * 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.0002979/0.5504, allocations: 161.9 kB / 0.5389 GB, free: 61.75 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00609/0.5565, allocations: 4.423 MB / 0.5432 GB, free: 57.35 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.549e-06/0.5566, allocations: 0 / 0.5432 GB, free: 57.35 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001184/0.5577, allocations: 1.033 MB / 0.5443 GB, free: 56.31 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001835/0.5596, allocations: 409.1 kB / 0.5446 GB, free: 55.93 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008606/0.5682, allocations: 6.971 MB / 0.5515 GB, free: 48.9 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001986/0.5702, allocations: 2.599 MB / 0.554 GB, free: 46.27 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006023/0.5708, allocations: 210.3 kB / 0.5542 GB, free: 46.06 MB / 382.1 MB Notification: Performance of SimCode: time 7.62e-07/0.5709, allocations: 4 kB / 0.5542 GB, free: 46.06 MB / 382.1 MB Notification: Performance of Templates: time 0.05797/0.6288, allocations: 56.83 MB / 0.6097 GB, free: 5.344 MB / 398.1 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.sim & ./PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.pipe 2>&1)