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: "" <> buildModelFMU(PlanarMechanics.Examples.ControlledCraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_ControlledCraneCrab",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.ControlledCraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_ControlledCraneCrab",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00146/0.00146, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001767/0.001767, allocations: 196.1 kB / 16.14 MB, free: 6.707 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.303/1.303, allocations: 222.9 MB / 239.8 MB, free: 4.605 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1357/0.1357, allocations: 9.096 MB / 299 MB, free: 1.824 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001222/0.001222, allocations: 64.12 kB / 361.3 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08497/0.08621, allocations: 51.44 MB / 412.8 MB, free: 9.98 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.ControlledCraneCrab): time 0.1663/0.2525, allocations: 27.49 MB / 440.3 MB, free: 28.61 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009013/0.2615, allocations: 6.163 MB / 446.4 MB, free: 24.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002058/0.2636, allocations: 102.8 kB / 446.5 MB, free: 24.81 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006251/0.2643, allocations: 315 kB / 446.8 MB, free: 24.69 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001916/0.2662, allocations: 1.332 MB / 448.2 MB, free: 24.07 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003021/0.2665, allocations: 153 kB / 448.3 MB, free: 23.98 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002033/0.2686, allocations: 3.579 MB / 451.9 MB, free: 22.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007051/0.2693, allocations: 0.893 MB / 452.8 MB, free: 22.41 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005573/0.2699, allocations: 0.8 MB / 453.6 MB, free: 22.08 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009997/0.2709, allocations: 1.349 MB / 454.9 MB, free: 21.61 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002213/0.2711, allocations: 142.8 kB / 455.1 MB, free: 21.61 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009919/0.2721, allocations: 0.7829 MB / 455.9 MB, free: 21.41 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006724/0.2728, allocations: 1.141 MB / 457 MB, free: 21.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008082/0.2736, allocations: 1.504 MB / 458.5 MB, free: 19.95 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00263/0.2762, allocations: 4.687 MB / 463.2 MB, free: 18.11 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.2762, allocations: 3.938 kB / 463.2 MB, free: 18.11 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.72e-07/0.2763, allocations: 0 / 463.2 MB, free: 18.11 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.946e-05/0.2763, allocations: 0 / 463.2 MB, free: 18.11 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.006468/0.2828, allocations: 3.943 MB / 467.2 MB, free: 16.04 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.776e-05/0.2828, allocations: 9.438 kB / 467.2 MB, free: 16.04 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004767/0.2833, allocations: 0.5415 MB / 467.7 MB, free: 15.76 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006102/0.2894, allocations: 1.777 MB / 469.5 MB, free: 15.46 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001857/0.2913, allocations: 1.405 MB / 470.9 MB, free: 14.58 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.051e-05/0.2914, allocations: 150.1 kB / 471 MB, free: 14.51 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003533/0.2917, allocations: 205.8 kB / 471.2 MB, free: 14.44 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01012/0.3019, allocations: 8 MB / 479.2 MB, free: 10.87 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.975e-05/0.3019, allocations: 29.94 kB / 479.3 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002637/0.3022, allocations: 93.5 kB / 479.4 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002717/0.3049, allocations: 1.845 MB / 481.2 MB, free: 10.41 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01095/0.3159, allocations: 7.181 MB / 488.4 MB, free: 7.957 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02604/0.342, allocations: 24.44 MB / 0.5008 GB, free: 15.97 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004876/0.3469, allocations: 2.384 MB / 0.5031 GB, free: 13.48 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001197/0.3481, allocations: 0.8245 MB / 0.5039 GB, free: 12.65 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006242/0.3543, allocations: 4.658 MB / 0.5085 GB, free: 7.621 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.864e-05/0.3544, allocations: 47.56 kB / 0.5085 GB, free: 7.566 MB / 382.1 MB Notification: Performance of pre-optimization done (n=131): time 2.875e-06/0.3544, allocations: 0 / 0.5085 GB, free: 7.566 MB / 382.1 MB Notification: Performance of matching and sorting (n=153): time 0.01333/0.3677, allocations: 6.903 MB / 0.5153 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.684e-05/0.3678, allocations: 68.72 kB / 0.5153 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003143/0.3709, allocations: 2.679 MB / 0.5179 GB, free: 13.79 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.221e-05/0.371, allocations: 45.7 kB / 0.518 GB, free: 13.73 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001234/0.3723, allocations: 2.113 MB / 0.5201 GB, free: 11.59 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003959/0.3727, allocations: 0.5666 MB / 0.5206 GB, free: 11.02 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009423/0.3736, allocations: 0.7975 MB / 0.5214 GB, free: 10.21 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.318e-05/0.3737, allocations: 309.1 kB / 0.5217 GB, free: 9.902 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001919/0.3756, allocations: 1.296 MB / 0.5229 GB, free: 8.602 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00317/0.3788, allocations: 3.432 MB / 0.5263 GB, free: 4.109 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005319/0.3841, allocations: 5.075 MB / 0.5313 GB, free: 13.99 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.208e-05/0.3842, allocations: 20 kB / 0.5313 GB, free: 13.97 MB / 414.1 MB Notification: Performance of matching and sorting (n=516) (initialization): time 0.007294/0.3915, allocations: 4.9 MB / 0.5361 GB, free: 9.066 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.52e-05/0.3916, allocations: 42.5 kB / 0.5361 GB, free: 9.027 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.379e-05/0.3917, allocations: 72.16 kB / 0.5362 GB, free: 8.957 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001098/0.3928, allocations: 333 kB / 0.5365 GB, free: 8.629 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002341/0.3952, allocations: 0.8617 MB / 0.5373 GB, free: 7.766 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004024/0.3992, allocations: 3.363 MB / 0.5406 GB, free: 4.262 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002284/0.4015, allocations: 203.8 kB / 0.5408 GB, free: 4.062 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002749/0.4018, allocations: 231.9 kB / 0.541 GB, free: 3.836 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.002035/0.4038, allocations: 1.573 MB / 0.5426 GB, free: 2.25 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003014/0.4041, allocations: 229.1 kB / 0.5428 GB, free: 2.023 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003204/0.4073, allocations: 2.014 MB / 0.5447 GB, free: 15.99 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001022/0.4075, allocations: 31.92 kB / 0.5448 GB, free: 15.96 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/0.4075, allocations: 4 kB / 0.5448 GB, free: 15.96 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.163e-05/0.4075, allocations: 7.969 kB / 0.5448 GB, free: 15.95 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008545/0.416, allocations: 5.726 MB / 0.5504 GB, free: 10.11 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.801e-06/0.4161, allocations: 0 / 0.5504 GB, free: 10.11 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008285/0.4169, allocations: 207.7 kB / 0.5506 GB, free: 9.902 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006611/0.4176, allocations: 228.9 kB / 0.5508 GB, free: 9.676 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.934e-05/0.4177, allocations: 28 kB / 0.5508 GB, free: 9.648 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003052/0.4207, allocations: 2.722 MB / 0.5535 GB, free: 6.801 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.526e-06/0.4207, allocations: 3.938 kB / 0.5535 GB, free: 6.797 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004229/0.425, allocations: 3.111 MB / 0.5565 GB, free: 3.637 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007279/0.4257, allocations: 446.2 kB / 0.5569 GB, free: 3.18 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002488/0.426, allocations: 27.98 kB / 0.557 GB, free: 3.152 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007724/0.4267, allocations: 64.05 kB / 0.557 GB, free: 3.09 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001642/0.4269, allocations: 84.83 kB / 0.5571 GB, free: 3.004 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.315e-05/0.427, allocations: 51.98 kB / 0.5572 GB, free: 2.953 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002315/0.4293, allocations: 1.724 MB / 0.5589 GB, free: 1.215 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.4293, allocations: 0 / 0.5589 GB, free: 1.215 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00257/0.4319, allocations: 0.6913 MB / 0.5595 GB, free: 0.5234 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.004681/0.4366, allocations: 3.754 MB / 0.5632 GB, free: 12.71 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004785/0.4414, allocations: 3.167 MB / 0.5663 GB, free: 9.551 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.4414, allocations: 0.75 kB / 0.5663 GB, free: 9.551 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001456/0.4429, allocations: 1.035 MB / 0.5673 GB, free: 8.504 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00176/0.4447, allocations: 379.5 kB / 0.5677 GB, free: 8.141 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1883/0.633, allocations: 31.94 MB / 0.5988 GB, free: 91.45 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001937/0.6349, allocations: 2.589 MB / 0.6014 GB, free: 90.27 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002458/0.6374, allocations: 1.192 MB / 0.6025 GB, free: 90.18 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001189/0.6386, allocations: 1.342 MB / 0.6038 GB, free: 89.09 MB / 446.1 MB Notification: Performance of SimCode: time 7.51e-07/0.6386, allocations: 4 kB / 0.6039 GB, free: 89.09 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05808/0.6967, allocations: 48 MB / 0.6507 GB, free: 63.08 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001212/0.6968, allocations: 220.8 kB / 0.6509 GB, free: 62.82 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.849/3.546, allocations: 4 kB / 0.6509 GB, free: 62.82 MB / 446.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_ControlledCraneCrab_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_ControlledCraneCrab.fmu > PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.pipe 2>&1)