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.00117/0.00117, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001487/0.001487, allocations: 192.5 kB / 16.53 MB, free: 6.391 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.432/1.432, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1889/0.1889, allocations: 9.111 MB / 299.5 MB, free: 1.754 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001437/0.001437, allocations: 59.91 kB / 362 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09607/0.09752, allocations: 51.45 MB / 413.5 MB, free: 9.422 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.WheelBasedCraneCrab): time 0.008786/0.1064, allocations: 8.183 MB / 421.7 MB, free: 1.191 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.181/0.2874, allocations: 2.519 MB / 424.2 MB, free: 36.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001201/0.2887, allocations: 32.25 kB / 424.2 MB, free: 36.41 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009144/0.2896, allocations: 352.9 kB / 424.6 MB, free: 36.41 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002808/0.2925, allocations: 1.404 MB / 426 MB, free: 36.37 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003002/0.2928, allocations: 99.48 kB / 426.1 MB, free: 36.37 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00244/0.2952, allocations: 2.424 MB / 428.5 MB, free: 36.08 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008491/0.2961, allocations: 0.812 MB / 429.3 MB, free: 35.98 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009004/0.297, allocations: 0.8648 MB / 430.2 MB, free: 35.8 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001088/0.2981, allocations: 1.255 MB / 431.4 MB, free: 35.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003098/0.2984, allocations: 219.2 kB / 431.6 MB, free: 35.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001263/0.2997, allocations: 0.8168 MB / 432.5 MB, free: 35.49 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008273/0.3005, allocations: 1.204 MB / 433.7 MB, free: 35.03 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001098/0.3016, allocations: 1.532 MB / 435.2 MB, free: 33.9 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003493/0.3051, allocations: 4.702 MB / 439.9 MB, free: 32.17 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.3052, allocations: 0 / 439.9 MB, free: 32.17 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3052, allocations: 0 / 439.9 MB, free: 32.17 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.12e-05/0.3052, allocations: 3.219 kB / 439.9 MB, free: 32.17 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.0107/0.3159, allocations: 4.72 MB / 444.6 MB, free: 30.23 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.265e-05/0.316, allocations: 14.09 kB / 444.6 MB, free: 30.23 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006798/0.3167, allocations: 0.539 MB / 445.2 MB, free: 29.99 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006105/0.3228, allocations: 1.754 MB / 446.9 MB, free: 29.71 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002017/0.3248, allocations: 1.326 MB / 448.2 MB, free: 28.88 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.406e-05/0.3249, allocations: 145.3 kB / 448.4 MB, free: 28.84 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000372/0.3253, allocations: 193.3 kB / 448.6 MB, free: 28.8 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01164/0.337, allocations: 8.353 MB / 456.9 MB, free: 25.14 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.953e-05/0.3371, allocations: 29.58 kB / 457 MB, free: 25.12 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003007/0.3374, allocations: 96.88 kB / 457.1 MB, free: 25.09 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003692/0.3411, allocations: 1.93 MB / 459 MB, free: 24.71 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01804/0.3591, allocations: 7.551 MB / 466.5 MB, free: 22.18 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03725/0.3964, allocations: 26.36 MB / 492.9 MB, free: 2.562 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00622/0.4027, allocations: 2.605 MB / 495.5 MB, free: 15.84 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001376/0.4041, allocations: 0.8649 MB / 496.4 MB, free: 14.98 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007121/0.4113, allocations: 5.772 MB / 0.4904 GB, free: 8.586 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.681e-05/0.4113, allocations: 43.5 kB / 0.4904 GB, free: 8.535 MB / 366.1 MB Notification: Performance of pre-optimization done (n=141): time 5.28e-06/0.4114, allocations: 0 / 0.4904 GB, free: 8.535 MB / 366.1 MB Notification: Performance of matching and sorting (n=156): time 0.01479/0.4261, allocations: 6.944 MB / 0.4972 GB, free: 1.512 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.384e-05/0.4262, allocations: 72.66 kB / 0.4973 GB, free: 1.43 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003326/0.4296, allocations: 2.61 MB / 0.4998 GB, free: 14.79 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001058/0.4297, allocations: 45.7 kB / 0.4999 GB, free: 14.74 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001231/0.4309, allocations: 2.141 MB / 0.5019 GB, free: 12.59 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004624/0.4314, allocations: 0.5852 MB / 0.5025 GB, free: 12.02 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009626/0.4324, allocations: 0.8336 MB / 0.5033 GB, free: 11.17 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.439e-05/0.4325, allocations: 301.1 kB / 0.5036 GB, free: 10.87 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001943/0.4344, allocations: 1.312 MB / 0.5049 GB, free: 9.551 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00345/0.4379, allocations: 3.707 MB / 0.5085 GB, free: 4.637 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006012/0.4439, allocations: 5.462 MB / 0.5139 GB, free: 14 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.219e-05/0.444, allocations: 24 kB / 0.5139 GB, free: 13.98 MB / 398.1 MB Notification: Performance of matching and sorting (n=550) (initialization): time 0.008128/0.4521, allocations: 5.096 MB / 0.5189 GB, free: 8.875 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.545e-05/0.4522, allocations: 44.08 kB / 0.5189 GB, free: 8.832 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.046e-05/0.4523, allocations: 87.94 kB / 0.519 GB, free: 8.746 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006597/0.4529, allocations: 278.5 kB / 0.5192 GB, free: 8.473 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00258/0.4555, allocations: 0.928 MB / 0.5202 GB, free: 7.543 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003724/0.4593, allocations: 3.196 MB / 0.5233 GB, free: 4.207 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002654/0.4619, allocations: 204 kB / 0.5235 GB, free: 4.008 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003613/0.4623, allocations: 252 kB / 0.5237 GB, free: 3.762 MB / 398.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.002392/0.4647, allocations: 1.601 MB / 0.5253 GB, free: 2.148 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003669/0.4651, allocations: 225.1 kB / 0.5255 GB, free: 1.926 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003363/0.4685, allocations: 1.975 MB / 0.5274 GB, free: 15.94 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001066/0.4686, allocations: 23.98 kB / 0.5274 GB, free: 15.92 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.116e-05/0.4686, allocations: 4 kB / 0.5274 GB, free: 15.91 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.486e-05/0.4686, allocations: 7.969 kB / 0.5274 GB, free: 15.91 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01098/0.4796, allocations: 5.968 MB / 0.5333 GB, free: 9.82 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-05/0.4797, allocations: 4.062 kB / 0.5333 GB, free: 9.816 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001348/0.481, allocations: 223.8 kB / 0.5335 GB, free: 9.598 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006922/0.4817, allocations: 169.2 kB / 0.5337 GB, free: 9.43 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001586/0.4819, allocations: 32 kB / 0.5337 GB, free: 9.398 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004415/0.4864, allocations: 2.604 MB / 0.5362 GB, free: 6.652 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.003e-05/0.4864, allocations: 16 kB / 0.5362 GB, free: 6.637 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007166/0.4936, allocations: 3.123 MB / 0.5393 GB, free: 3.43 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001049/0.4946, allocations: 302.2 kB / 0.5396 GB, free: 3.113 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006809/0.4953, allocations: 31.98 kB / 0.5396 GB, free: 3.082 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001582/0.4969, allocations: 62.2 kB / 0.5397 GB, free: 3.023 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002841/0.4972, allocations: 100.8 kB / 0.5398 GB, free: 2.922 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001506/0.4974, allocations: 44 kB / 0.5398 GB, free: 2.879 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.004511/0.5019, allocations: 1.672 MB / 0.5414 GB, free: 1.191 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.502, allocations: 0 / 0.5414 GB, free: 1.191 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.006037/0.508, allocations: 0.6943 MB / 0.5421 GB, free: 0.5 MB / 414.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.009223/0.5173, allocations: 3.76 MB / 0.5458 GB, free: 12.65 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.01368/0.531, allocations: 4.453 MB / 0.5501 GB, free: 8.199 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.043e-05/0.531, allocations: 0 / 0.5501 GB, free: 8.199 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002684/0.5337, allocations: 1.017 MB / 0.5511 GB, free: 7.176 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004456/0.5382, allocations: 390.2 kB / 0.5515 GB, free: 6.816 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06216/0.6004, allocations: 30.98 MB / 0.5818 GB, free: 3.266 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004849/0.6053, allocations: 2.587 MB / 0.5843 GB, free: 0.6523 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.1892/0.7945, allocations: 1.261 MB / 0.5855 GB, free: 139.3 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001844/0.7964, allocations: 1.283 MB / 0.5868 GB, free: 139.3 MB / 462.1 MB Notification: Performance of SimCode: time 1.022e-06/0.7964, allocations: 2.188 kB / 0.5868 GB, free: 139.3 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09441/0.8908, allocations: 47.8 MB / 0.6335 GB, free: 127.5 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.61/11.5, allocations: 0 / 0.6335 GB, free: 127.5 MB / 462.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)