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-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.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.001188/0.001188, 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.001283/0.001283, 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.359/1.359, allocations: 222.9 MB / 239.9 MB, free: 4.555 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1875/0.1875, allocations: 9.116 MB / 299.2 MB, free: 1.809 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001321/0.001321, allocations: 56.14 kB / 361.5 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08914/0.09048, allocations: 51.43 MB / 412.9 MB, free: 9.984 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.ControlledCraneCrab): time 0.1962/0.2867, allocations: 27.5 MB / 440.4 MB, free: 29.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01161/0.2984, allocations: 6.136 MB / 446.5 MB, free: 25.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004863/0.3033, allocations: 100.5 kB / 446.6 MB, free: 25.06 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009861/0.3043, allocations: 316.3 kB / 446.9 MB, free: 24.94 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003237/0.3076, allocations: 1.318 MB / 448.2 MB, free: 24.33 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004337/0.308, allocations: 157.5 kB / 448.4 MB, free: 24.24 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002317/0.3104, allocations: 2.633 MB / 451 MB, free: 23.07 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009813/0.3114, allocations: 1.013 MB / 452 MB, free: 22.63 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008427/0.3122, allocations: 0.938 MB / 453 MB, free: 22.21 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001294/0.3135, allocations: 1.453 MB / 454.4 MB, free: 21.64 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002798/0.3138, allocations: 237.2 kB / 454.7 MB, free: 21.64 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001252/0.3151, allocations: 0.8563 MB / 455.5 MB, free: 21.46 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007874/0.3159, allocations: 1.24 MB / 456.8 MB, free: 20.97 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009728/0.3169, allocations: 1.597 MB / 458.4 MB, free: 19.8 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00367/0.3205, allocations: 4.868 MB / 463.2 MB, free: 17.86 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.207e-06/0.3206, allocations: 0 / 463.2 MB, free: 17.86 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3206, allocations: 0 / 463.2 MB, free: 17.86 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.217e-05/0.3206, allocations: 0 / 463.2 MB, free: 17.86 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: 1165 * Number of variables: 1165 Notification: Performance of Generate backend data structure: time 0.007581/0.3282, allocations: 3.934 MB / 467.2 MB, free: 15.8 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.537e-05/0.3283, allocations: 9.719 kB / 467.2 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006445/0.3347, allocations: 1.771 MB / 468.9 MB, free: 15.5 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003484/0.3383, allocations: 1.395 MB / 470.3 MB, free: 14.63 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001413/0.3384, allocations: 155.1 kB / 470.5 MB, free: 14.55 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004601/0.3389, allocations: 203.4 kB / 470.7 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01497/0.3539, allocations: 8.005 MB / 478.7 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.058e-05/0.354, allocations: 22.91 kB / 478.7 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002948/0.3543, allocations: 89.56 kB / 478.8 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003088/0.3574, allocations: 1.853 MB / 480.7 MB, free: 10.45 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01489/0.3723, allocations: 7.168 MB / 487.8 MB, free: 8.008 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03542/0.4078, allocations: 24.45 MB / 0.5003 GB, free: 0.7773 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005297/0.4131, allocations: 2.38 MB / 0.5026 GB, free: 14.28 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001251/0.4144, allocations: 0.8285 MB / 0.5034 GB, free: 13.45 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007088/0.4215, allocations: 4.651 MB / 0.5079 GB, free: 8.422 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.853e-05/0.4216, allocations: 47.56 kB / 0.508 GB, free: 8.367 MB / 382.1 MB Notification: Performance of pre-optimization done (n=131): time 3.667e-06/0.4216, allocations: 0 / 0.508 GB, free: 8.367 MB / 382.1 MB Notification: Performance of matching and sorting (n=153): time 0.01415/0.4357, allocations: 6.872 MB / 0.5147 GB, free: 1.41 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.947e-05/0.4358, allocations: 68.7 kB / 0.5148 GB, free: 1.332 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003694/0.4395, allocations: 2.66 MB / 0.5174 GB, free: 14.64 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.183e-05/0.4396, allocations: 45.61 kB / 0.5174 GB, free: 14.59 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001682/0.4413, allocations: 2.113 MB / 0.5195 GB, free: 12.45 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004513/0.4418, allocations: 0.5667 MB / 0.52 GB, free: 11.88 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009757/0.4428, allocations: 0.782 MB / 0.5208 GB, free: 11.08 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000109/0.4429, allocations: 305.1 kB / 0.5211 GB, free: 10.78 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001954/0.4448, allocations: 1.3 MB / 0.5223 GB, free: 9.477 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003315/0.4482, allocations: 3.432 MB / 0.5257 GB, free: 4.984 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005703/0.4539, allocations: 5.088 MB / 0.5307 GB, free: 14.85 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.433e-05/0.4539, allocations: 24 kB / 0.5307 GB, free: 14.83 MB / 414.1 MB Notification: Performance of matching and sorting (n=516) (initialization): time 0.01014/0.4641, allocations: 4.902 MB / 0.5355 GB, free: 9.918 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.975e-05/0.4642, allocations: 36 kB / 0.5355 GB, free: 9.883 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001041/0.4643, allocations: 76 kB / 0.5356 GB, free: 9.809 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001088/0.4654, allocations: 313.1 kB / 0.5359 GB, free: 9.5 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004319/0.4697, allocations: 0.8617 MB / 0.5367 GB, free: 8.637 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006843/0.4766, allocations: 3.641 MB / 0.5403 GB, free: 4.848 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005013/0.4816, allocations: 207.8 kB / 0.5405 GB, free: 4.645 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008619/0.4825, allocations: 228 kB / 0.5407 GB, free: 4.422 MB / 414.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.003722/0.4863, allocations: 1.57 MB / 0.5422 GB, free: 2.84 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006084/0.4869, allocations: 225.1 kB / 0.5424 GB, free: 2.617 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005149/0.492, allocations: 2.021 MB / 0.5444 GB, free: 0.5781 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001537/0.4922, allocations: 27.98 kB / 0.5444 GB, free: 0.5508 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.368e-05/0.4922, allocations: 7.938 kB / 0.5444 GB, free: 0.543 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.082e-05/0.4923, allocations: 7.969 kB / 0.5445 GB, free: 0.5352 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01374/0.506, allocations: 5.718 MB / 0.55 GB, free: 10.7 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.045e-05/0.5061, allocations: 4 kB / 0.55 GB, free: 10.7 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001269/0.5074, allocations: 208 kB / 0.5502 GB, free: 10.5 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000843/0.5082, allocations: 202.1 kB / 0.5504 GB, free: 10.3 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000128/0.5084, allocations: 39.98 kB / 0.5505 GB, free: 10.26 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004699/0.5131, allocations: 2.944 MB / 0.5533 GB, free: 7.176 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.007e-06/0.5131, allocations: 4.031 kB / 0.5534 GB, free: 7.172 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006477/0.5196, allocations: 3.115 MB / 0.5564 GB, free: 4.008 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00149/0.5211, allocations: 450.2 kB / 0.5568 GB, free: 3.547 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004438/0.5216, allocations: 24 kB / 0.5568 GB, free: 3.523 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001345/0.5229, allocations: 59.92 kB / 0.5569 GB, free: 3.465 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002743/0.5232, allocations: 92.72 kB / 0.557 GB, free: 3.371 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001514/0.5234, allocations: 44 kB / 0.557 GB, free: 3.328 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003064/0.5265, allocations: 1.724 MB / 0.5587 GB, free: 1.59 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.5265, allocations: 0 / 0.5587 GB, free: 1.59 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003192/0.5297, allocations: 0.6875 MB / 0.5594 GB, free: 0.8945 MB / 430.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.0003872/0.5301, allocations: 155 kB / 0.5595 GB, free: 0.7344 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.008079/0.5382, allocations: 4.429 MB / 0.5639 GB, free: 12.32 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.541e-06/0.5382, allocations: 0 / 0.5639 GB, free: 12.32 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001664/0.5399, allocations: 1.027 MB / 0.5649 GB, free: 11.27 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002459/0.5424, allocations: 412.1 kB / 0.5653 GB, free: 10.89 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01191/0.5543, allocations: 8.145 MB / 0.5732 GB, free: 2.684 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002756/0.5571, allocations: 2.591 MB / 0.5757 GB, free: 64 kB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.1814/0.7385, allocations: 1.179 MB / 0.5769 GB, free: 125 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003689/0.7389, allocations: 169.8 kB / 0.5771 GB, free: 124.9 MB / 446.1 MB Notification: Performance of SimCode: time 1.012e-06/0.7389, allocations: 0 / 0.5771 GB, free: 124.9 MB / 446.1 MB Notification: Performance of Templates: time 0.04384/0.7827, allocations: 25.85 MB / 0.6023 GB, free: 122.2 MB / 446.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)