Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.JointRRR.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.Joints.JointRRR,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_JointRRR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointRRR,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_JointRRR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00179/0.00179, allocations: 118.3 kB / 17.78 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002027/0.002027, allocations: 201.2 kB / 18.74 MB, free: 4.18 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.494/1.494, allocations: 227.4 MB / 247 MB, free: 10.39 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.2294/0.2294, allocations: 46.12 MB / 344.4 MB, free: 11.35 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.002292/0.002292, allocations: 79.88 kB / 480.9 MB, free: 4.473 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3903/0.3926, allocations: 62.44 MB / 0.5306 GB, free: 13.34 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointRRR): time 0.01582/0.4085, allocations: 12.39 MB / 0.5427 GB, free: 3.625 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01144/0.42, allocations: 3.913 MB / 0.5465 GB, free: 0.5352 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003746/0.4238, allocations: 62.91 kB / 0.5466 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007888/0.4318, allocations: 3.86 MB / 0.5504 GB, free: 13.41 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003185/0.435, allocations: 0.8435 MB / 0.5512 GB, free: 12.57 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00248/0.4375, allocations: 0.8811 MB / 0.552 GB, free: 11.68 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003717/0.4412, allocations: 2.307 MB / 0.5543 GB, free: 9.371 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006536/0.4478, allocations: 4.989 MB / 0.5592 GB, free: 4.316 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002072/0.4499, allocations: 1.465 MB / 0.5606 GB, free: 2.848 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002749/0.4526, allocations: 1.96 MB / 0.5625 GB, free: 0.8828 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000773/0.4534, allocations: 475.9 kB / 0.563 GB, free: 428 kB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002274/0.4557, allocations: 1.186 MB / 0.5641 GB, free: 15.23 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001842/0.4576, allocations: 1.789 MB / 0.5659 GB, free: 13.44 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002366/0.4599, allocations: 2.064 MB / 0.5679 GB, free: 11.36 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009309/0.4693, allocations: 7.178 MB / 0.5749 GB, free: 4.16 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.187e-06/0.4693, allocations: 4 kB / 0.5749 GB, free: 4.156 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.4693, allocations: 0 / 0.5749 GB, free: 4.156 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001944/0.4695, allocations: 0 / 0.5749 GB, free: 4.156 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: 1173 * Number of variables: 1173 Notification: Performance of Generate backend data structure: time 0.01207/0.4816, allocations: 4.446 MB / 0.5792 GB, free: 15.64 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.35e-05/0.4817, allocations: 8.031 kB / 0.5793 GB, free: 15.63 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001295/0.483, allocations: 0.5939 MB / 0.5798 GB, free: 15.02 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00331/0.4863, allocations: 0.6813 MB / 0.5805 GB, free: 14.34 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004935/0.4913, allocations: 2.251 MB / 0.5827 GB, free: 12.04 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002056/0.4915, allocations: 238.2 kB / 0.5829 GB, free: 11.8 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007451/0.4923, allocations: 315.9 kB / 0.5832 GB, free: 11.5 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02119/0.5135, allocations: 9.43 MB / 0.5924 GB, free: 1.738 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.354e-05/0.5136, allocations: 11.88 kB / 0.5924 GB, free: 1.727 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003894/0.514, allocations: 135.9 kB / 0.5926 GB, free: 1.594 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002052/0.516, allocations: 1.181 MB / 0.5937 GB, free: 420 kB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01997/0.536, allocations: 8.648 MB / 0.6022 GB, free: 7.746 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04175/0.5778, allocations: 27.13 MB / 0.6287 GB, free: 12.12 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01003/0.5879, allocations: 3.116 MB / 0.6317 GB, free: 8.992 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002411/0.5904, allocations: 1.663 MB / 0.6333 GB, free: 7.328 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0125/0.6029, allocations: 9.074 MB / 0.6422 GB, free: 13.75 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.11e-05/0.603, allocations: 39.56 kB / 0.6422 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=93): time 3.537e-06/0.603, allocations: 4 kB / 0.6422 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of matching and sorting (n=110): time 0.02542/0.6284, allocations: 7.815 MB / 0.6499 GB, free: 5.875 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.74e-05/0.6285, allocations: 60.41 kB / 0.6499 GB, free: 5.805 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003883/0.6324, allocations: 2.619 MB / 0.6525 GB, free: 3.16 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001281/0.6325, allocations: 41.7 kB / 0.6525 GB, free: 3.113 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.001917/0.6345, allocations: 2.22 MB / 0.6547 GB, free: 0.8711 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006265/0.6351, allocations: 460.5 kB / 0.6551 GB, free: 428 kB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001131/0.6362, allocations: 0.7741 MB / 0.6559 GB, free: 15.64 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001378/0.6364, allocations: 309 kB / 0.6562 GB, free: 15.33 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002343/0.6387, allocations: 1.432 MB / 0.6576 GB, free: 13.9 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004308/0.6431, allocations: 3.508 MB / 0.661 GB, free: 9.375 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007113/0.6502, allocations: 5.192 MB / 0.6661 GB, free: 3.16 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.274e-05/0.6502, allocations: 20 kB / 0.6661 GB, free: 3.141 MB / 0.5137 GB Notification: Performance of matching and sorting (n=478) (initialization): time 0.008373/0.6586, allocations: 4.935 MB / 0.6709 GB, free: 14.2 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001511/0.6588, allocations: 38.5 kB / 0.6709 GB, free: 14.16 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.247e-05/0.6589, allocations: 72 kB / 0.671 GB, free: 14.09 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001088/0.659, allocations: 104 kB / 0.6711 GB, free: 13.99 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002875/0.6619, allocations: 0.8812 MB / 0.672 GB, free: 13.11 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001404/0.662, allocations: 147.4 kB / 0.6721 GB, free: 12.96 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002307/0.6644, allocations: 211.8 kB / 0.6723 GB, free: 12.76 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002816/0.6646, allocations: 219.9 kB / 0.6725 GB, free: 12.54 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 331 * Number of states: 0 () * Number of discrete variables: 59 (n1_a1.arrowLine.twoHeadedArrow,n1_a1.headAtOrigin,prism.arrowLine.twoHeadedArrow,prism.headAtOrigin,rRod2.arrowLine.twoHeadedArrow,rRod2.headAtOrigin,rRod1.arrowLine.twoHeadedArrow,rRod1.headAtOrigin,n1_a.arrowLine.twoHeadedArrow,n1_a.headAtOrigin,n1_a1.color[3],n1_a1.color[2],n1_a1.color[1],prism.color[3],prism.color[2],prism.color[1],rRod2.color[3],rRod2.color[2],rRod2.color[1],rRod1.color[3],rRod1.color[2],rRod1.color[1],n1_a.color[3],n1_a.color[2],n1_a.color[1],jointRRR.rodColor[3],jointRRR.rodColor[2],jointRRR.rodColor[1],jointRRR.cylinderColor[3],jointRRR.cylinderColor[2],jointRRR.cylinderColor[1],jointRRR.jointUSR.revolute.positiveBranch,jointRRR.jointUSR.rod1Color[3],jointRRR.jointUSR.rod1Color[2],jointRRR.jointUSR.rod1Color[1],jointRRR.jointUSR.cylinderColor[3],jointRRR.jointUSR.cylinderColor[2],jointRRR.jointUSR.cylinderColor[1],jointRRR.jointUSR.sphereColor[3],jointRRR.jointUSR.sphereColor[2],jointRRR.jointUSR.sphereColor[1],jointRRR.jointUSR.revoluteColor[3],jointRRR.jointUSR.revoluteColor[2],jointRRR.jointUSR.revoluteColor[1],Fixed1.color[3],Fixed1.color[2],Fixed1.color[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (476): * Single equations (assignments): 475 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002539/0.6672, allocations: 1.601 MB / 0.6741 GB, free: 10.93 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003895/0.6676, allocations: 230.5 kB / 0.6743 GB, free: 10.7 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003529/0.6711, allocations: 2.102 MB / 0.6764 GB, free: 8.586 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.275e-05/0.6711, allocations: 12 kB / 0.6764 GB, free: 8.574 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.233e-06/0.6712, allocations: 0 / 0.6764 GB, free: 8.574 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.142e-05/0.6712, allocations: 3.984 kB / 0.6764 GB, free: 8.57 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009943/0.6811, allocations: 6.079 MB / 0.6823 GB, free: 2.211 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.612e-05/0.6812, allocations: 12 kB / 0.6823 GB, free: 2.199 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009891/0.6822, allocations: 255.6 kB / 0.6826 GB, free: 1.949 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.333e-05/0.6822, allocations: 20 kB / 0.6826 GB, free: 1.93 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.131e-05/0.6823, allocations: 47.92 kB / 0.6826 GB, free: 1.883 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.582e-05/0.6823, allocations: 27.86 kB / 0.6827 GB, free: 1.855 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-05/0.6824, allocations: 20.44 kB / 0.6827 GB, free: 1.836 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003129/0.6855, allocations: 2.201 MB / 0.6848 GB, free: 15.44 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005729/0.6861, allocations: 323.5 kB / 0.6851 GB, free: 15.1 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002427/0.6863, allocations: 47.92 kB / 0.6852 GB, free: 15.05 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008536/0.6872, allocations: 67.94 kB / 0.6853 GB, free: 14.99 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002307/0.6874, allocations: 120.2 kB / 0.6854 GB, free: 14.87 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.592e-05/0.6875, allocations: 55.88 kB / 0.6854 GB, free: 14.82 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.002822/0.6903, allocations: 1.66 MB / 0.687 GB, free: 13.14 MB / 0.545 GB Notification: Performance of sort global known variables: time 5.61e-07/0.6904, allocations: 0 / 0.687 GB, free: 13.14 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.002872/0.6932, allocations: 0.6718 MB / 0.6877 GB, free: 12.47 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 60 * Number of states: 0 () * 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 (136): * Single equations (assignments): 136 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003783/0.697, allocations: 2.844 MB / 0.6905 GB, free: 9.414 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.005275/0.7023, allocations: 3.075 MB / 0.6935 GB, free: 6.359 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 9.267e-06/0.7023, allocations: 4 kB / 0.6935 GB, free: 6.355 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001259/0.7036, allocations: 0.8104 MB / 0.6943 GB, free: 5.547 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001832/0.7054, allocations: 359.8 kB / 0.6946 GB, free: 5.199 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04366/0.7491, allocations: 28.64 MB / 0.7226 GB, free: 5.789 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003314/0.7525, allocations: 2.663 MB / 0.7252 GB, free: 3.098 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.002605/0.7551, allocations: 0.9384 MB / 0.7261 GB, free: 2.152 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001961/0.7571, allocations: 1.374 MB / 0.7274 GB, free: 0.7773 MB / 0.5762 GB Notification: Performance of SimCode: time 1.092e-06/0.7571, allocations: 0 / 0.7274 GB, free: 0.7773 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3531/1.11, allocations: 51.94 MB / 0.7782 GB, free: 144.5 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.74/15.85, allocations: 19.36 kB / 0.7782 GB, free: 144.4 MB / 0.5762 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.JointRRR.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.JointRRR.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.JointRRR.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.JointRRR.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.JointRRR_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_JointRRR.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.JointRRR.pipe 2>&1)