Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.WheelBasedCraneCrab.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.WheelBasedCraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_WheelBasedCraneCrab",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.WheelBasedCraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_WheelBasedCraneCrab",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.001413/0.001413, 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.00162/0.00162, allocations: 193.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.287/1.287, allocations: 222.9 MB / 239.8 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1455/0.1455, allocations: 9.096 MB / 299 MB, free: 1.891 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001114/0.001114, allocations: 64.11 kB / 361.3 MB, free: 13.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08682/0.08794, allocations: 51.44 MB / 412.8 MB, free: 10 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.WheelBasedCraneCrab): time 0.1677/0.2557, allocations: 26.89 MB / 439.7 MB, free: 28.93 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009418/0.2651, allocations: 6.021 MB / 445.7 MB, free: 25.37 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003426/0.2686, allocations: 99.34 kB / 445.8 MB, free: 25.36 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006302/0.2693, allocations: 304.2 kB / 446.1 MB, free: 25.25 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002046/0.2713, allocations: 1.312 MB / 447.4 MB, free: 24.66 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002428/0.2716, allocations: 87.45 kB / 447.5 MB, free: 24.61 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002062/0.2736, allocations: 3.433 MB / 450.9 MB, free: 23.45 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007042/0.2744, allocations: 0.7509 MB / 451.7 MB, free: 23.17 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006911/0.2751, allocations: 0.7278 MB / 452.4 MB, free: 22.88 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009837/0.276, allocations: 1.284 MB / 453.7 MB, free: 22.44 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002072/0.2763, allocations: 127.3 kB / 453.8 MB, free: 22.44 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00101/0.2773, allocations: 0.7604 MB / 454.6 MB, free: 22.25 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006169/0.2779, allocations: 1.123 MB / 455.7 MB, free: 21.88 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007716/0.2787, allocations: 1.454 MB / 457.1 MB, free: 20.83 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002641/0.2813, allocations: 4.567 MB / 461.7 MB, free: 19.05 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.546e-06/0.2814, allocations: 0 / 461.7 MB, free: 19.05 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.82e-07/0.2814, allocations: 0 / 461.7 MB, free: 19.05 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.005e-05/0.2814, allocations: 0 / 461.7 MB, free: 19.05 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: 1171 * Number of variables: 1171 Notification: Performance of Generate backend data structure: time 0.009236/0.2906, allocations: 4.73 MB / 466.4 MB, free: 17.01 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.08e-05/0.2907, allocations: 10.56 kB / 466.5 MB, free: 17.01 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004959/0.2912, allocations: 0.5424 MB / 467 MB, free: 16.73 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005878/0.2971, allocations: 1.752 MB / 468.7 MB, free: 16.45 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002043/0.2991, allocations: 1.33 MB / 470.1 MB, free: 15.6 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.378e-05/0.2993, allocations: 145 kB / 470.2 MB, free: 15.53 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003486/0.2996, allocations: 190.8 kB / 470.4 MB, free: 15.46 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01093/0.3105, allocations: 8.349 MB / 478.8 MB, free: 11.69 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.55e-05/0.3106, allocations: 31.02 kB / 478.8 MB, free: 11.67 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002538/0.3109, allocations: 88.33 kB / 478.9 MB, free: 11.61 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003022/0.3139, allocations: 1.939 MB / 480.8 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01405/0.328, allocations: 7.549 MB / 488.4 MB, free: 8.566 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03313/0.3612, allocations: 26.35 MB / 0.5026 GB, free: 13.96 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007091/0.3683, allocations: 2.604 MB / 0.5052 GB, free: 11.24 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00144/0.3697, allocations: 0.8649 MB / 0.506 GB, free: 10.38 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007128/0.3769, allocations: 5.778 MB / 0.5117 GB, free: 3.949 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.929e-05/0.3769, allocations: 43.56 kB / 0.5117 GB, free: 3.898 MB / 382.1 MB Notification: Performance of pre-optimization done (n=141): time 3.156e-06/0.377, allocations: 0 / 0.5117 GB, free: 3.898 MB / 382.1 MB Notification: Performance of matching and sorting (n=156): time 0.01537/0.3923, allocations: 6.947 MB / 0.5185 GB, free: 12.86 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.869e-05/0.3924, allocations: 64.72 kB / 0.5186 GB, free: 12.78 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004221/0.3966, allocations: 2.614 MB / 0.5211 GB, free: 10.14 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.252e-05/0.3967, allocations: 49.7 kB / 0.5212 GB, free: 10.08 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001437/0.3982, allocations: 2.127 MB / 0.5232 GB, free: 7.922 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004952/0.3987, allocations: 0.5938 MB / 0.5238 GB, free: 7.32 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001219/0.3999, allocations: 0.8258 MB / 0.5246 GB, free: 6.48 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.426e-05/0.4, allocations: 305.1 kB / 0.5249 GB, free: 6.18 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002212/0.4022, allocations: 1.308 MB / 0.5262 GB, free: 4.863 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003369/0.4056, allocations: 3.711 MB / 0.5298 GB, free: 15.95 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005845/0.4115, allocations: 5.453 MB / 0.5351 GB, free: 9.32 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.225e-05/0.4116, allocations: 27.94 kB / 0.5352 GB, free: 9.293 MB / 414.1 MB Notification: Performance of matching and sorting (n=550) (initialization): time 0.008747/0.4203, allocations: 5.088 MB / 0.5401 GB, free: 4.195 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.221e-05/0.4204, allocations: 42.5 kB / 0.5402 GB, free: 4.156 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.835e-05/0.4205, allocations: 92.8 kB / 0.5403 GB, free: 4.066 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000647/0.4212, allocations: 276.7 kB / 0.5405 GB, free: 3.793 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002636/0.4238, allocations: 0.9319 MB / 0.5414 GB, free: 2.859 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00355/0.4274, allocations: 2.935 MB / 0.5443 GB, free: 15.79 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002566/0.43, allocations: 195.9 kB / 0.5445 GB, free: 15.6 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004334/0.4304, allocations: 252 kB / 0.5447 GB, free: 15.35 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 384 * Number of states: 0 () * Number of discrete variables: 12 (body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[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 (510): * Single equations (assignments): 505 * 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,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00257/0.433, allocations: 1.612 MB / 0.5463 GB, free: 13.73 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004056/0.4334, allocations: 221.1 kB / 0.5465 GB, free: 13.51 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003362/0.4368, allocations: 1.975 MB / 0.5485 GB, free: 11.52 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001106/0.4369, allocations: 31.97 kB / 0.5485 GB, free: 11.49 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.169e-05/0.4369, allocations: 0 / 0.5485 GB, free: 11.49 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.351e-05/0.4369, allocations: 7.984 kB / 0.5485 GB, free: 11.48 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009659/0.4466, allocations: 5.963 MB / 0.5543 GB, free: 5.363 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.467e-05/0.4467, allocations: 8 kB / 0.5543 GB, free: 5.355 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000819/0.4475, allocations: 215.7 kB / 0.5545 GB, free: 5.145 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004663/0.448, allocations: 164.7 kB / 0.5547 GB, free: 4.98 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.56e-05/0.4481, allocations: 35.98 kB / 0.5547 GB, free: 4.945 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002615/0.4507, allocations: 2.42 MB / 0.5571 GB, free: 2.391 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.2e-06/0.4507, allocations: 4 kB / 0.5571 GB, free: 2.387 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004357/0.4551, allocations: 3.129 MB / 0.5601 GB, free: 15.17 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006164/0.4557, allocations: 302.2 kB / 0.5604 GB, free: 14.85 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000446/0.4562, allocations: 24 kB / 0.5605 GB, free: 14.83 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009439/0.4571, allocations: 63.88 kB / 0.5605 GB, free: 14.77 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001896/0.4573, allocations: 104.7 kB / 0.5606 GB, free: 14.66 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.368e-05/0.4574, allocations: 44 kB / 0.5607 GB, free: 14.62 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002827/0.4603, allocations: 1.672 MB / 0.5623 GB, free: 12.93 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4603, allocations: 0 / 0.5623 GB, free: 12.93 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003102/0.4634, allocations: 0.6836 MB / 0.563 GB, free: 12.25 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 5 (idealRolling.w,body.r[1],body.phi,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 (118): * Single equations (assignments): 113 * 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,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004836/0.4682, allocations: 3.775 MB / 0.5666 GB, free: 8.383 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005884/0.4741, allocations: 3.226 MB / 0.5698 GB, free: 5.16 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.755e-06/0.4741, allocations: 4 kB / 0.5698 GB, free: 5.156 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00154/0.4757, allocations: 1.022 MB / 0.5708 GB, free: 4.129 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002269/0.478, allocations: 361.4 kB / 0.5711 GB, free: 3.781 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2148/0.6928, allocations: 32.43 MB / 0.6028 GB, free: 89.12 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002103/0.6949, allocations: 2.58 MB / 0.6053 GB, free: 87.93 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002768/0.6977, allocations: 1.279 MB / 0.6066 GB, free: 87.83 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001319/0.699, allocations: 1.284 MB / 0.6078 GB, free: 86.79 MB / 446.1 MB Notification: Performance of SimCode: time 9.82e-07/0.699, allocations: 0 / 0.6078 GB, free: 86.79 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06512/0.7642, allocations: 46.87 MB / 0.6536 GB, free: 59.94 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001349/0.7643, allocations: 214.2 kB / 0.6538 GB, free: 59.68 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.71/3.474, allocations: 64 / 0.6538 GB, free: 59.68 MB / 446.1 MB (rm -f PlanarMechanics_PlanarMechanics.Examples.WheelBasedCraneCrab.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.WheelBasedCraneCrab.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.WheelBasedCraneCrab.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.WheelBasedCraneCrab.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_WheelBasedCraneCrab_fmu --startTime=0 --stopTime=4.5 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_WheelBasedCraneCrab.fmu > PlanarMechanics_PlanarMechanics.Examples.WheelBasedCraneCrab.pipe 2>&1)