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.001319/0.001319, 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.001554/0.001554, allocations: 188.4 kB / 16.25 MB, free: 6.637 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.36/1.36, allocations: 222.9 MB / 239.9 MB, free: 4.461 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1694/0.1694, allocations: 9.089 MB / 299.2 MB, free: 1.762 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001413/0.001413, allocations: 63.91 kB / 361.5 MB, free: 13.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1092/0.1106, allocations: 51.43 MB / 413 MB, free: 9.773 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.ControlledCraneCrab): time 0.2354/0.346, allocations: 27.5 MB / 440.5 MB, free: 28.48 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01477/0.3609, allocations: 6.141 MB / 446.6 MB, free: 24.69 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008106/0.369, allocations: 105.8 kB / 446.7 MB, free: 24.68 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001631/0.3707, allocations: 314.4 kB / 447 MB, free: 24.56 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004075/0.3748, allocations: 1.315 MB / 448.3 MB, free: 23.95 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005259/0.3754, allocations: 154.3 kB / 448.5 MB, free: 23.86 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002841/0.3782, allocations: 2.632 MB / 451.1 MB, free: 22.7 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001196/0.3794, allocations: 1.007 MB / 452.1 MB, free: 22.27 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001112/0.3806, allocations: 0.9333 MB / 453 MB, free: 21.85 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001483/0.3821, allocations: 1.454 MB / 454.5 MB, free: 21.28 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003788/0.3825, allocations: 240.7 kB / 454.7 MB, free: 21.28 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001356/0.3838, allocations: 0.8551 MB / 455.6 MB, free: 21.1 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009613/0.3848, allocations: 1.242 MB / 456.8 MB, free: 20.6 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001227/0.386, allocations: 1.603 MB / 458.4 MB, free: 19.43 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004488/0.3905, allocations: 4.859 MB / 463.3 MB, free: 17.5 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.622e-06/0.3906, allocations: 0.75 kB / 463.3 MB, free: 17.5 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.3906, allocations: 3.938 kB / 463.3 MB, free: 17.5 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.449e-05/0.3907, allocations: 0 / 463.3 MB, free: 17.5 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.009099/0.3998, allocations: 3.942 MB / 467.2 MB, free: 15.43 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.677e-05/0.3999, allocations: 8.969 kB / 467.2 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007241/0.4006, allocations: 0.5401 MB / 467.8 MB, free: 15.15 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006161/0.4068, allocations: 1.774 MB / 469.6 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002891/0.4097, allocations: 1.407 MB / 471 MB, free: 13.97 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001446/0.4098, allocations: 156.9 kB / 471.1 MB, free: 13.9 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005468/0.4104, allocations: 209.9 kB / 471.3 MB, free: 13.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0138/0.4242, allocations: 7.998 MB / 479.3 MB, free: 10.25 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.812e-05/0.4243, allocations: 21 kB / 479.3 MB, free: 10.24 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002937/0.4246, allocations: 101 kB / 479.4 MB, free: 10.17 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003405/0.4281, allocations: 1.848 MB / 481.3 MB, free: 9.793 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01469/0.4428, allocations: 7.176 MB / 488.5 MB, free: 7.344 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03293/0.4757, allocations: 24.43 MB / 0.5009 GB, free: 15.88 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005118/0.4809, allocations: 2.384 MB / 0.5032 GB, free: 13.39 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001265/0.4822, allocations: 0.8246 MB / 0.504 GB, free: 12.56 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00711/0.4893, allocations: 4.655 MB / 0.5086 GB, free: 7.531 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.285e-05/0.4894, allocations: 43.56 kB / 0.5086 GB, free: 7.48 MB / 382.1 MB Notification: Performance of pre-optimization done (n=131): time 7.123e-06/0.4894, allocations: 0 / 0.5086 GB, free: 7.48 MB / 382.1 MB Notification: Performance of matching and sorting (n=153): time 0.01449/0.5039, allocations: 6.922 MB / 0.5154 GB, free: 480 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.037e-05/0.504, allocations: 64.72 kB / 0.5154 GB, free: 404 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004341/0.5084, allocations: 2.672 MB / 0.518 GB, free: 13.69 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001391/0.5085, allocations: 49.7 kB / 0.5181 GB, free: 13.64 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001408/0.5099, allocations: 2.113 MB / 0.5201 GB, free: 11.5 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005543/0.5105, allocations: 0.5666 MB / 0.5207 GB, free: 10.92 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001228/0.5118, allocations: 0.7975 MB / 0.5215 GB, free: 10.11 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001029/0.5119, allocations: 309.1 kB / 0.5218 GB, free: 9.809 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002103/0.514, allocations: 1.288 MB / 0.523 GB, free: 8.516 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003534/0.5175, allocations: 3.432 MB / 0.5264 GB, free: 4.023 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006092/0.5236, allocations: 5.072 MB / 0.5313 GB, free: 13.91 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.721e-05/0.5237, allocations: 23.94 kB / 0.5314 GB, free: 13.89 MB / 414.1 MB Notification: Performance of matching and sorting (n=516) (initialization): time 0.008363/0.5321, allocations: 4.908 MB / 0.5361 GB, free: 8.969 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.871e-05/0.5322, allocations: 36 kB / 0.5362 GB, free: 8.934 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001115/0.5323, allocations: 76 kB / 0.5363 GB, free: 8.859 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008997/0.5332, allocations: 341.2 kB / 0.5366 GB, free: 8.523 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002588/0.5358, allocations: 0.8695 MB / 0.5374 GB, free: 7.652 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004366/0.5402, allocations: 3.647 MB / 0.541 GB, free: 3.859 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002676/0.5429, allocations: 195.9 kB / 0.5412 GB, free: 3.668 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004767/0.5434, allocations: 244 kB / 0.5414 GB, free: 3.43 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.002603/0.546, allocations: 1.562 MB / 0.5429 GB, free: 1.855 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004438/0.5465, allocations: 225.1 kB / 0.5432 GB, free: 1.633 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00342/0.5499, allocations: 2.025 MB / 0.5451 GB, free: 15.59 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001085/0.55, allocations: 31.92 kB / 0.5452 GB, free: 15.56 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.132e-05/0.55, allocations: 0 / 0.5452 GB, free: 15.56 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.34e-05/0.55, allocations: 3.984 kB / 0.5452 GB, free: 15.56 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01011/0.5602, allocations: 5.722 MB / 0.5508 GB, free: 9.719 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.939e-06/0.5602, allocations: 8.031 kB / 0.5508 GB, free: 9.711 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008251/0.561, allocations: 199.7 kB / 0.5509 GB, free: 9.516 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006644/0.5617, allocations: 236.6 kB / 0.5512 GB, free: 9.281 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001001/0.5618, allocations: 31.97 kB / 0.5512 GB, free: 9.25 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003289/0.5651, allocations: 2.952 MB / 0.5541 GB, free: 6.16 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.038e-06/0.5651, allocations: 7.938 kB / 0.5541 GB, free: 6.152 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004372/0.5695, allocations: 3.103 MB / 0.5571 GB, free: 3 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009434/0.5705, allocations: 450.1 kB / 0.5576 GB, free: 2.539 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004667/0.571, allocations: 27.98 kB / 0.5576 GB, free: 2.512 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000984/0.572, allocations: 71.91 kB / 0.5576 GB, free: 2.441 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001753/0.5721, allocations: 84.83 kB / 0.5577 GB, free: 2.355 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.35e-05/0.5722, allocations: 47.92 kB / 0.5578 GB, free: 2.309 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002857/0.5751, allocations: 1.724 MB / 0.5595 GB, free: 0.5703 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.5751, allocations: 0 / 0.5595 GB, free: 0.5703 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002944/0.5781, allocations: 0.6875 MB / 0.5601 GB, free: 15.88 MB / 446.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.004747/0.5828, allocations: 3.743 MB / 0.5638 GB, free: 12.08 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007758/0.5906, allocations: 4.437 MB / 0.5681 GB, free: 7.656 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.236e-06/0.5906, allocations: 4 kB / 0.5681 GB, free: 7.652 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001692/0.5923, allocations: 1.032 MB / 0.5691 GB, free: 6.605 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002729/0.5951, allocations: 416.7 kB / 0.5695 GB, free: 6.219 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2176/0.8127, allocations: 31.94 MB / 0.6007 GB, free: 110.5 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002644/0.8154, allocations: 2.586 MB / 0.6032 GB, free: 109.3 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002619/0.8181, allocations: 1.19 MB / 0.6044 GB, free: 109.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00126/0.8193, allocations: 1.344 MB / 0.6057 GB, free: 108.1 MB / 446.1 MB Notification: Performance of SimCode: time 8.92e-07/0.8194, allocations: 1.312 kB / 0.6057 GB, free: 108.1 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07777/0.8971, allocations: 48.94 MB / 0.6535 GB, free: 81.37 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001414/0.8973, allocations: 216.9 kB / 0.6537 GB, free: 81.12 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.212/4.11, allocations: 4 kB / 0.6537 GB, free: 81.11 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)