Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Parts.BodyShape.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.BodyShape,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Parts_BodyShape",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.BodyShape,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Parts_BodyShape",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001608/0.001608, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001819/0.001819, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.503/1.503, allocations: 227.4 MB / 247 MB, free: 10.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2235/0.2235, allocations: 46.12 MB / 344.4 MB, free: 11.46 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002553/0.002553, allocations: 79.88 kB / 480.9 MB, free: 4.523 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3619/0.3645, allocations: 62.45 MB / 0.5306 GB, free: 13.36 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.BodyShape): time 0.01215/0.3767, allocations: 10.95 MB / 0.5413 GB, free: 4.75 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008548/0.3853, allocations: 4.076 MB / 0.5453 GB, free: 1.566 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001857/0.3872, allocations: 70.88 kB / 0.5453 GB, free: 1.551 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005082/0.3923, allocations: 2.563 MB / 0.5478 GB, free: 15.83 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005318/0.3976, allocations: 1.772 MB / 0.5496 GB, free: 14.24 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001892/0.3995, allocations: 0.7291 MB / 0.5503 GB, free: 13.51 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005994/0.4056, allocations: 4.224 MB / 0.5544 GB, free: 9.273 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004082/0.4097, allocations: 3.335 MB / 0.5577 GB, free: 5.883 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002221/0.4119, allocations: 1.495 MB / 0.5591 GB, free: 4.383 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002456/0.4144, allocations: 1.939 MB / 0.561 GB, free: 2.438 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005581/0.4149, allocations: 312 kB / 0.5613 GB, free: 2.133 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002162/0.4171, allocations: 1.221 MB / 0.5625 GB, free: 0.9102 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001662/0.4188, allocations: 1.862 MB / 0.5643 GB, free: 15.04 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002234/0.421, allocations: 2.144 MB / 0.5664 GB, free: 12.89 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007822/0.4289, allocations: 6.797 MB / 0.5731 GB, free: 6.062 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.4289, allocations: 0 / 0.5731 GB, free: 6.062 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.4289, allocations: 0 / 0.5731 GB, free: 6.062 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001516/0.4291, allocations: 0 / 0.5731 GB, free: 6.062 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1449 * Number of variables: 1449 Notification: Performance of Generate backend data structure: time 0.008477/0.4375, allocations: 4.748 MB / 0.5777 GB, free: 1.242 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.278e-05/0.4376, allocations: 8.031 kB / 0.5777 GB, free: 1.234 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008877/0.4385, allocations: 0.6946 MB / 0.5784 GB, free: 0.5312 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007145/0.4457, allocations: 2.007 MB / 0.5803 GB, free: 14.52 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005314/0.451, allocations: 2.808 MB / 0.5831 GB, free: 11.65 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001853/0.4512, allocations: 238 kB / 0.5833 GB, free: 11.42 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000927/0.4521, allocations: 399.6 kB / 0.5837 GB, free: 11.03 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01779/0.4699, allocations: 9.71 MB / 0.5932 GB, free: 0.6367 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001258/0.4701, allocations: 59.55 kB / 0.5932 GB, free: 0.5781 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000409/0.4705, allocations: 143.9 kB / 0.5934 GB, free: 448 kB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002664/0.4732, allocations: 1.751 MB / 0.5951 GB, free: 14.68 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0164/0.4896, allocations: 8.184 MB / 0.6031 GB, free: 6.473 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05178/0.5414, allocations: 38.33 MB / 0.6405 GB, free: 14.93 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009986/0.5515, allocations: 3.751 MB / 0.6442 GB, free: 11.03 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002394/0.5539, allocations: 1.583 MB / 0.6457 GB, free: 9.434 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01317/0.5671, allocations: 7.789 MB / 0.6533 GB, free: 1.254 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.233e-05/0.5672, allocations: 59.42 kB / 0.6534 GB, free: 1.188 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=144): time 3.918e-06/0.5672, allocations: 0 / 0.6534 GB, free: 1.188 MB / 0.4981 GB Notification: Performance of matching and sorting (n=160): time 0.04155/0.6087, allocations: 14.47 MB / 0.6675 GB, free: 2.562 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001522/0.6103, allocations: 1.681 MB / 0.6691 GB, free: 0.7031 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006738/0.6171, allocations: 3.836 MB / 0.6729 GB, free: 12.88 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0003316/0.6174, allocations: 53.72 kB / 0.6729 GB, free: 12.82 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002749/0.6202, allocations: 3.166 MB / 0.676 GB, free: 9.629 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009357/0.6212, allocations: 0.6707 MB / 0.6767 GB, free: 8.953 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002573/0.6237, allocations: 1.214 MB / 0.6779 GB, free: 7.727 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001434/0.6239, allocations: 301.1 kB / 0.6782 GB, free: 7.43 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003362/0.6273, allocations: 1.991 MB / 0.6801 GB, free: 5.434 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006317/0.6336, allocations: 5.69 MB / 0.6857 GB, free: 13.88 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01042/0.6441, allocations: 8.292 MB / 0.6938 GB, free: 3.75 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001233/0.6442, allocations: 40 kB / 0.6938 GB, free: 3.711 MB / 0.545 GB Notification: Performance of matching and sorting (n=772) (initialization): time 0.01838/0.6626, allocations: 8.292 MB / 0.7019 GB, free: 11.41 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002488/0.6629, allocations: 66.19 kB / 0.702 GB, free: 11.34 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.006497/0.6694, allocations: 2.574 MB / 0.7045 GB, free: 8.762 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003973/0.6735, allocations: 1.178 MB / 0.7056 GB, free: 7.57 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004385/0.6779, allocations: 1.353 MB / 0.7069 GB, free: 6.215 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00601/0.6839, allocations: 4.954 MB / 0.7118 GB, free: 0.9766 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00432/0.6883, allocations: 399.5 kB / 0.7122 GB, free: 0.5859 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009938/0.6893, allocations: 368 kB / 0.7125 GB, free: 232 kB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 598 * Number of states: 0 () * Number of discrete variables: 41 (freeMotion.arrow.twoHeadedArrow,freeMotion.arrow.headAtOrigin,freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],body.frameTranslation.color[3],body.frameTranslation.color[2],body.frameTranslation.color[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar2.color[3],bar2.color[2],bar2.color[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (734): * Single equations (assignments): 725 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003869/0.6932, allocations: 2.013 MB / 0.7145 GB, free: 14.2 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007778/0.6939, allocations: 349.7 kB / 0.7148 GB, free: 13.86 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001104/0.6951, allocations: 441.3 kB / 0.7152 GB, free: 13.42 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005529/0.7006, allocations: 2.519 MB / 0.7177 GB, free: 10.88 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.054e-05/0.7007, allocations: 4 kB / 0.7177 GB, free: 10.88 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.52e-05/0.7007, allocations: 3.984 kB / 0.7177 GB, free: 10.87 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01981/0.7205, allocations: 9.269 MB / 0.7268 GB, free: 1.422 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.33e-05/0.7206, allocations: 4 kB / 0.7268 GB, free: 1.418 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00135/0.7219, allocations: 264.1 kB / 0.727 GB, free: 1.16 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003428/0.7254, allocations: 1.065 MB / 0.7281 GB, free: 84 kB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00024/0.7256, allocations: 43.91 kB / 0.7281 GB, free: 40 kB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2559/0.9816, allocations: 5.109 MB / 0.7331 GB, free: 173.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007686/0.9824, allocations: 1.553 MB / 0.7346 GB, free: 172 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008099/0.9905, allocations: 5.381 MB / 0.7399 GB, free: 170 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008189/0.9914, allocations: 403.1 kB / 0.7402 GB, free: 169.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003569/0.9917, allocations: 33.09 kB / 0.7403 GB, free: 169.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001295/0.993, allocations: 131.9 kB / 0.7404 GB, free: 169.9 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002772/0.9933, allocations: 110 kB / 0.7405 GB, free: 169.9 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001186/0.9935, allocations: 54.94 kB / 0.7406 GB, free: 169.9 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.00321/0.9967, allocations: 2.366 MB / 0.7429 GB, free: 169.1 MB / 0.5762 GB Notification: Performance of sort global known variables: time 7.92e-07/0.9967, allocations: 0 / 0.7429 GB, free: 169.1 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.004207/1.001, allocations: 0.9758 MB / 0.7438 GB, free: 169 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],freeMotion.r_rel_a[1],freeMotion.r_rel_a[2],freeMotion.r_rel_a[3],freeMotion.v_rel_a[1],freeMotion.v_rel_a[2],freeMotion.v_rel_a[3],freeMotion.w_rel_b[1],freeMotion.w_rel_b[2],freeMotion.w_rel_b[3]) * 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 (126): * Single equations (assignments): 119 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.006679/1.008, allocations: 5.92 MB / 0.7496 GB, free: 166.4 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.00717/1.015, allocations: 5.413 MB / 0.7549 GB, free: 164.5 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.331e-05/1.015, allocations: 0 / 0.7549 GB, free: 164.5 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.003146/1.018, allocations: 2.085 MB / 0.7569 GB, free: 163.6 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0025/1.02, allocations: 473.2 kB / 0.7574 GB, free: 163.4 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05076/1.071, allocations: 44.56 MB / 0.8009 GB, free: 113.3 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002484/1.074, allocations: 3.135 MB / 0.8039 GB, free: 110.1 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003246/1.077, allocations: 1.85 MB / 0.8058 GB, free: 108.3 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001805/1.079, allocations: 1.784 MB / 0.8075 GB, free: 106.5 MB / 0.5762 GB Notification: Performance of SimCode: time 1.553e-06/1.079, allocations: 0 / 0.8075 GB, free: 106.5 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1019/1.181, allocations: 65.81 MB / 0.8718 GB, free: 41.04 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.65/23.83, allocations: 7.359 kB / 0.8718 GB, free: 41.04 MB / 0.5762 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Parts.BodyShape.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Parts.BodyShape.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Parts.BodyShape.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Parts.BodyShape.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Parts.BodyShape_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Parts_BodyShape.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Parts.BodyShape.pipe 2>&1)