Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointRRP.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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/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(ModelicaTest.MultiBody.Joints.JointRRP,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointRRP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointRRP,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointRRP",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.001194/0.001194, allocations: 114.3 kB / 17.78 MB, free: 5.129 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.001279/0.001279, allocations: 184.2 kB / 18.72 MB, free: 4.203 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.401/1.401, allocations: 222.9 MB / 242.4 MB, free: 15.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2298/0.2298, allocations: 44.19 MB / 336.8 MB, free: 2.656 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001558/0.001558, allocations: 63.89 kB / 470.1 MB, free: 13.65 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4323/0.4339, allocations: 60.83 MB / 0.5184 GB, free: 3.285 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointRRP): time 0.01517/0.4491, allocations: 12.49 MB / 0.5306 GB, free: 10.42 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01025/0.4594, allocations: 3.653 MB / 0.5342 GB, free: 7.641 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003547/0.463, allocations: 69.25 kB / 0.5343 GB, free: 7.633 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008222/0.4713, allocations: 3.898 MB / 0.5381 GB, free: 5.047 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003855/0.4752, allocations: 0.9053 MB / 0.539 GB, free: 4.332 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002546/0.4778, allocations: 0.7081 MB / 0.5397 GB, free: 3.82 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005018/0.4829, allocations: 2.209 MB / 0.5418 GB, free: 2.566 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00772/0.4906, allocations: 4.918 MB / 0.5466 GB, free: 15.13 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003422/0.4941, allocations: 1.473 MB / 0.5481 GB, free: 13.65 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003556/0.4977, allocations: 1.913 MB / 0.5499 GB, free: 11.73 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001459/0.4992, allocations: 448 kB / 0.5504 GB, free: 11.3 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002852/0.5021, allocations: 1.018 MB / 0.5513 GB, free: 10.28 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003165/0.5053, allocations: 1.758 MB / 0.5531 GB, free: 8.516 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004661/0.51, allocations: 2.033 MB / 0.5551 GB, free: 6.473 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01008/0.5201, allocations: 6.925 MB / 0.5618 GB, free: 15.52 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.697e-06/0.5202, allocations: 0 / 0.5618 GB, free: 15.52 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.474e-06/0.5202, allocations: 0 / 0.5618 GB, free: 15.52 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002303/0.5204, allocations: 0 / 0.5618 GB, free: 15.52 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: 1165 * Number of variables: 1165 Notification: Performance of Generate backend data structure: time 0.01177/0.5322, allocations: 4.239 MB / 0.566 GB, free: 11.21 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.912e-05/0.5323, allocations: 12.03 kB / 0.566 GB, free: 11.2 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001846/0.5341, allocations: 0.582 MB / 0.5665 GB, free: 10.61 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003076/0.5372, allocations: 0.6422 MB / 0.5672 GB, free: 9.961 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004683/0.5419, allocations: 2.158 MB / 0.5693 GB, free: 7.754 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001993/0.5422, allocations: 242.4 kB / 0.5695 GB, free: 7.516 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001097/0.5433, allocations: 319.9 kB / 0.5698 GB, free: 7.203 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01816/0.5615, allocations: 8.191 MB / 0.5778 GB, free: 14.69 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000128/0.5616, allocations: 19.88 kB / 0.5778 GB, free: 14.67 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009556/0.5626, allocations: 139.9 kB / 0.578 GB, free: 14.54 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001777/0.5644, allocations: 1.096 MB / 0.579 GB, free: 13.44 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01836/0.5828, allocations: 6.693 MB / 0.5856 GB, free: 6.73 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03924/0.6221, allocations: 24.25 MB / 0.6092 GB, free: 13.95 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007078/0.6292, allocations: 1.986 MB / 0.6112 GB, free: 11.93 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001401/0.6307, allocations: 0.8996 MB / 0.6121 GB, free: 11.02 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009111/0.6398, allocations: 6.277 MB / 0.6182 GB, free: 4.215 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.34e-05/0.6399, allocations: 47.16 kB / 0.6182 GB, free: 4.16 MB / 478.1 MB Notification: Performance of pre-optimization done (n=80): time 3.516e-06/0.6399, allocations: 0 / 0.6182 GB, free: 4.16 MB / 478.1 MB Notification: Performance of matching and sorting (n=99): time 0.01836/0.6583, allocations: 5.87 MB / 0.624 GB, free: 14.26 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.969e-05/0.6584, allocations: 111.8 kB / 0.6241 GB, free: 14.13 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005134/0.6636, allocations: 2.446 MB / 0.6265 GB, free: 11.66 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000215/0.6639, allocations: 45.7 kB / 0.6265 GB, free: 11.61 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00201/0.6659, allocations: 2.255 MB / 0.6287 GB, free: 9.328 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005664/0.6665, allocations: 416.9 kB / 0.6291 GB, free: 8.918 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001498/0.668, allocations: 0.7148 MB / 0.6298 GB, free: 8.195 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000139/0.6681, allocations: 312.9 kB / 0.6301 GB, free: 7.891 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001784/0.6699, allocations: 0.9556 MB / 0.631 GB, free: 6.934 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003978/0.6739, allocations: 3.044 MB / 0.634 GB, free: 2.859 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005923/0.6799, allocations: 4.35 MB / 0.6383 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.8e-05/0.68, allocations: 24 kB / 0.6383 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of matching and sorting (n=451) (initialization): time 0.008123/0.6881, allocations: 3.945 MB / 0.6421 GB, free: 9.508 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 8.22e-05/0.6883, allocations: 36 kB / 0.6422 GB, free: 9.473 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001102/0.6884, allocations: 72 kB / 0.6422 GB, free: 9.402 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001057/0.6885, allocations: 103.9 kB / 0.6423 GB, free: 9.301 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002454/0.6909, allocations: 0.796 MB / 0.6431 GB, free: 8.504 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001695/0.6911, allocations: 155.4 kB / 0.6433 GB, free: 8.352 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002369/0.6935, allocations: 171.8 kB / 0.6434 GB, free: 8.184 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003794/0.6939, allocations: 212 kB / 0.6436 GB, free: 7.977 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 335 * Number of states: 0 () * Number of discrete variables: 56 (prism.arrowLine.twoHeadedArrow,prism.headAtOrigin,rRod2.arrowLine.twoHeadedArrow,rRod2.headAtOrigin,rRod1.arrowLine.twoHeadedArrow,rRod1.headAtOrigin,n2_ia.arrowLine.twoHeadedArrow,n2_ia.headAtOrigin,n1_a.arrowLine.twoHeadedArrow,n1_a.headAtOrigin,jointRRP.jointUSP.prismatic.positiveBranch,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],n2_ia.color[3],n2_ia.color[2],n2_ia.color[1],n1_a.color[3],n1_a.color[2],n1_a.color[1],jointRRP.rodColor[3],jointRRP.rodColor[2],jointRRP.rodColor[1],jointRRP.cylinderColor[3],jointRRP.cylinderColor[2],jointRRP.cylinderColor[1],jointRRP.jointUSP.rod1Color[3],jointRRP.jointUSP.rod1Color[2],jointRRP.jointUSP.rod1Color[1],jointRRP.jointUSP.cylinderColor[3],jointRRP.jointUSP.cylinderColor[2],jointRRP.jointUSP.cylinderColor[1],jointRRP.jointUSP.sphereColor[3],jointRRP.jointUSP.sphereColor[2],jointRRP.jointUSP.sphereColor[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 (449): * Single equations (assignments): 448 * 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.002763/0.6967, allocations: 1.575 MB / 0.6452 GB, free: 6.387 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005226/0.6972, allocations: 226.5 kB / 0.6454 GB, free: 6.164 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002166/0.6994, allocations: 1.211 MB / 0.6466 GB, free: 4.938 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.288e-05/0.6994, allocations: 12 kB / 0.6466 GB, free: 4.926 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.676e-06/0.6994, allocations: 0 / 0.6466 GB, free: 4.926 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.328e-05/0.6995, allocations: 3.984 kB / 0.6466 GB, free: 4.922 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01017/0.7096, allocations: 5.701 MB / 0.6521 GB, free: 14.93 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.866e-05/0.7097, allocations: 16.22 kB / 0.6522 GB, free: 14.91 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007769/0.7105, allocations: 223.6 kB / 0.6524 GB, free: 14.7 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.107e-05/0.7105, allocations: 24 kB / 0.6524 GB, free: 14.67 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.542e-05/0.7106, allocations: 43.98 kB / 0.6524 GB, free: 14.63 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.175e-05/0.7107, allocations: 23.94 kB / 0.6525 GB, free: 14.61 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.942e-05/0.7107, allocations: 27.88 kB / 0.6525 GB, free: 14.58 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002332/0.713, allocations: 1.936 MB / 0.6544 GB, free: 12.41 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007397/0.7138, allocations: 319.5 kB / 0.6547 GB, free: 12.08 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004297/0.7142, allocations: 43.98 kB / 0.6547 GB, free: 12.04 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001058/0.7153, allocations: 44 kB / 0.6548 GB, free: 12 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001776/0.7155, allocations: 127.8 kB / 0.6549 GB, free: 11.87 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.333e-05/0.7156, allocations: 52 kB / 0.6549 GB, free: 11.82 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.002812/0.7184, allocations: 1.606 MB / 0.6565 GB, free: 10.2 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.21e-07/0.7184, allocations: 0 / 0.6565 GB, free: 10.2 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.003328/0.7218, allocations: 0.6093 MB / 0.6571 GB, free: 9.59 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 73 * 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 (123): * Single equations (assignments): 123 * 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.002911/0.7247, allocations: 2.577 MB / 0.6596 GB, free: 6.766 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.003803/0.7285, allocations: 2.282 MB / 0.6618 GB, free: 4.5 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.527e-05/0.7286, allocations: 4.125 kB / 0.6619 GB, free: 4.496 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0009389/0.7295, allocations: 0.5554 MB / 0.6624 GB, free: 3.945 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002553/0.7321, allocations: 376 kB / 0.6628 GB, free: 3.582 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04906/0.7812, allocations: 26.25 MB / 0.6884 GB, free: 6.352 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00365/0.7849, allocations: 2.678 MB / 0.691 GB, free: 3.648 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.002467/0.7874, allocations: 0.9029 MB / 0.6919 GB, free: 2.738 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002191/0.7896, allocations: 1.366 MB / 0.6932 GB, free: 1.371 MB / 0.545 GB Notification: Performance of SimCode: time 1.533e-06/0.7896, allocations: 0 / 0.6932 GB, free: 1.371 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3767/1.166, allocations: 47.4 MB / 0.7395 GB, free: 185.2 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.21/14.37, allocations: 7.344 kB / 0.7395 GB, free: 185.2 MB / 0.5762 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointRRP.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointRRP.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointRRP.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointRRP.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointRRP_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_0_0_ModelicaTest_MultiBody_Joints_JointRRP.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointRRP.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointRRP_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/JointRRP/JointRRP.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointRRP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches