Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointRRP.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 trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.JointRRP,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_JointRRP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointRRP,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_JointRRP",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001223/0.001223, allocations: 103.7 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001385/0.001385, allocations: 208.6 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.37/1.37, allocations: 227.4 MB / 246.8 MB, free: 10.64 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2178/0.2178, allocations: 46.1 MB / 344.1 MB, free: 11.64 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002592/0.002592, allocations: 82.92 kB / 417.7 MB, free: 19.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1241/0.1268, allocations: 62.43 MB / 480.1 MB, free: 5.227 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointRRP): time 0.01316/0.14, allocations: 12.48 MB / 492.6 MB, free: 8.695 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007849/0.1479, allocations: 3.684 MB / 496.3 MB, free: 5 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001819/0.1497, allocations: 75.88 kB / 496.4 MB, free: 4.926 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00694/0.1567, allocations: 3.906 MB / 0.4885 GB, free: 1.008 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002398/0.1591, allocations: 0.8551 MB / 0.4894 GB, free: 152 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002001/0.1612, allocations: 0.7018 MB / 0.4901 GB, free: 15.45 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003032/0.1642, allocations: 2.202 MB / 0.4922 GB, free: 13.24 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006542/0.1708, allocations: 4.926 MB / 0.497 GB, free: 8.242 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002553/0.1733, allocations: 1.457 MB / 0.4984 GB, free: 6.781 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003293/0.1767, allocations: 1.913 MB / 0.5003 GB, free: 4.863 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001636/0.1783, allocations: 452 kB / 0.5007 GB, free: 4.422 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00302/0.1814, allocations: 1.015 MB / 0.5017 GB, free: 3.406 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002409/0.1838, allocations: 1.758 MB / 0.5034 GB, free: 1.645 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2256/0.4095, allocations: 2.023 MB / 0.5054 GB, free: 18.84 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01103/0.4206, allocations: 6.757 MB / 0.512 GB, free: 18.59 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.143e-06/0.4206, allocations: 1.094 kB / 0.512 GB, free: 18.59 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.4206, allocations: 0.5938 kB / 0.512 GB, free: 18.59 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002318/0.4209, allocations: 0 / 0.512 GB, free: 18.59 MB / 382.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.01065/0.4315, allocations: 4.134 MB / 0.5161 GB, free: 17.02 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.458e-05/0.4316, allocations: 10.22 kB / 0.5161 GB, free: 17.02 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001014/0.4326, allocations: 0.5871 MB / 0.5166 GB, free: 16.95 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002293/0.4349, allocations: 0.6156 MB / 0.5172 GB, free: 16.73 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003464/0.4384, allocations: 2.103 MB / 0.5193 GB, free: 16.24 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001816/0.4386, allocations: 239.3 kB / 0.5195 GB, free: 16.23 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006252/0.4392, allocations: 319.6 kB / 0.5198 GB, free: 16.22 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01622/0.4555, allocations: 8.205 MB / 0.5278 GB, free: 12.66 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.307e-05/0.4556, allocations: 11.88 kB / 0.5279 GB, free: 12.66 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003981/0.456, allocations: 134.1 kB / 0.528 GB, free: 12.57 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001404/0.4574, allocations: 1.104 MB / 0.5291 GB, free: 12.17 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01455/0.472, allocations: 6.709 MB / 0.5356 GB, free: 8.902 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03495/0.507, allocations: 24.29 MB / 0.5593 GB, free: 3.574 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006591/0.5136, allocations: 1.994 MB / 0.5613 GB, free: 1.562 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001317/0.515, allocations: 0.902 MB / 0.5622 GB, free: 0.6484 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009167/0.5241, allocations: 6.357 MB / 0.5684 GB, free: 9.789 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.365e-05/0.5242, allocations: 54.12 kB / 0.5684 GB, free: 9.73 MB / 414.1 MB Notification: Performance of pre-optimization done (n=80): time 2.895e-06/0.5243, allocations: 0 / 0.5684 GB, free: 9.73 MB / 414.1 MB Notification: Performance of matching and sorting (n=99): time 0.01767/0.5419, allocations: 5.753 MB / 0.574 GB, free: 3.961 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.622e-05/0.5421, allocations: 111.8 kB / 0.5742 GB, free: 3.828 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004193/0.5463, allocations: 2.433 MB / 0.5765 GB, free: 1.367 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001455/0.5464, allocations: 45.7 kB / 0.5766 GB, free: 1.316 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001664/0.5481, allocations: 2.167 MB / 0.5787 GB, free: 15.14 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004359/0.5486, allocations: 395.9 kB / 0.5791 GB, free: 14.76 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001147/0.5497, allocations: 0.7142 MB / 0.5798 GB, free: 14.04 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001086/0.5498, allocations: 309.1 kB / 0.5801 GB, free: 13.73 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001681/0.5515, allocations: 0.9712 MB / 0.581 GB, free: 12.76 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002997/0.5545, allocations: 3.039 MB / 0.584 GB, free: 8.73 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005094/0.5596, allocations: 4.357 MB / 0.5882 GB, free: 3.648 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.288e-05/0.5597, allocations: 20 kB / 0.5882 GB, free: 3.629 MB / 430.1 MB Notification: Performance of matching and sorting (n=451) (initialization): time 0.007049/0.5668, allocations: 3.939 MB / 0.5921 GB, free: 124 kB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.168e-05/0.5669, allocations: 38.03 kB / 0.5921 GB, free: 88 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001158/0.567, allocations: 72.88 kB / 0.5922 GB, free: 16 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001261/0.5671, allocations: 100 kB / 0.5923 GB, free: 15.91 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002598/0.5697, allocations: 0.806 MB / 0.5931 GB, free: 15.18 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001433/0.5699, allocations: 143.1 kB / 0.5932 GB, free: 15.07 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002373/0.5723, allocations: 179.6 kB / 0.5934 GB, free: 14.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003673/0.5727, allocations: 204 kB / 0.5936 GB, free: 14.7 MB / 446.1 MB 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.003299/0.576, allocations: 1.586 MB / 0.5951 GB, free: 13.18 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006079/0.5766, allocations: 213.2 kB / 0.5953 GB, free: 12.97 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008157/0.5774, allocations: 258.2 kB / 0.5956 GB, free: 12.71 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.669e-05/0.5775, allocations: 12 kB / 0.5956 GB, free: 12.7 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.256e-05/0.5775, allocations: 0 / 0.5956 GB, free: 12.7 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.274e-05/0.5775, allocations: 3.984 kB / 0.5956 GB, free: 12.69 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01205/0.5895, allocations: 5.863 MB / 0.6013 GB, free: 6.633 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.993e-05/0.5896, allocations: 19.75 kB / 0.6013 GB, free: 6.617 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007397/0.5904, allocations: 223.6 kB / 0.6016 GB, free: 6.398 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.964e-05/0.5904, allocations: 28 kB / 0.6016 GB, free: 6.371 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.874e-05/0.5905, allocations: 40 kB / 0.6016 GB, free: 6.332 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.905e-05/0.5905, allocations: 39.86 kB / 0.6017 GB, free: 6.293 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.171e-05/0.5906, allocations: 27.88 kB / 0.6017 GB, free: 6.266 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002271/0.5928, allocations: 1.973 MB / 0.6036 GB, free: 4.012 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000751/0.5936, allocations: 310.2 kB / 0.6039 GB, free: 3.688 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004531/0.5941, allocations: 51.98 kB / 0.604 GB, free: 3.637 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001104/0.5952, allocations: 47.98 kB / 0.604 GB, free: 3.59 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001831/0.5954, allocations: 147.3 kB / 0.6041 GB, free: 3.445 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.79e-05/0.5955, allocations: 56 kB / 0.6042 GB, free: 3.391 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003669/0.5992, allocations: 1.594 MB / 0.6058 GB, free: 1.785 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5992, allocations: 0 / 0.6058 GB, free: 1.785 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004635/0.6038, allocations: 0.5977 MB / 0.6063 GB, free: 1.188 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 88 * 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.003465/0.6073, allocations: 2.601 MB / 0.6089 GB, free: 14.3 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004822/0.6122, allocations: 2.351 MB / 0.6112 GB, free: 11.96 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.098e-05/0.6122, allocations: 4 kB / 0.6112 GB, free: 11.96 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009414/0.6132, allocations: 0.5447 MB / 0.6117 GB, free: 11.42 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003149/0.6163, allocations: 378.3 kB / 0.6121 GB, free: 11.06 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04931/0.6657, allocations: 29.01 MB / 0.6404 GB, free: 9.805 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004112/0.6698, allocations: 2.678 MB / 0.643 GB, free: 7.098 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.002741/0.6726, allocations: 0.9014 MB / 0.6439 GB, free: 6.191 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002395/0.675, allocations: 1.355 MB / 0.6452 GB, free: 4.836 MB / 494.1 MB Notification: Performance of SimCode: time 1.373e-06/0.675, allocations: 0 / 0.6452 GB, free: 4.836 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09942/0.7745, allocations: 45.9 MB / 0.69 GB, free: 7.129 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.464/10.24, allocations: 12.67 kB / 0.6901 GB, free: 7.121 MB / 0.5294 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointRRP.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointRRP.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointRRP.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointRRP.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_MultiBody_Joints_JointRRP.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointRRP.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.MultiBody.Joints.JointRRP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches