Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP.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.JointUSP,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointUSP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUSP,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointUSP",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.001284/0.001284, allocations: 104.2 kB / 17.63 MB, free: 5.523 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.001225/0.001225, allocations: 191.9 kB / 18.56 MB, free: 4.605 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.376/1.376, allocations: 222.9 MB / 242.3 MB, free: 15.21 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.2079/0.2079, allocations: 44.18 MB / 336.6 MB, free: 2.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001247, allocations: 56.31 kB / 408.5 MB, free: 27.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1152/0.1164, allocations: 60.83 MB / 469.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointUSP): time 0.01324/0.1297, allocations: 10.84 MB / 480.2 MB, free: 3.383 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006838/0.1366, allocations: 3.365 MB / 483.6 MB, free: 4 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001477/0.1381, allocations: 59.92 kB / 483.6 MB, free: 15.94 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005839/0.144, allocations: 3.279 MB / 486.9 MB, free: 12.66 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002902/0.1469, allocations: 0.8007 MB / 487.7 MB, free: 11.85 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001962/0.1489, allocations: 0.6511 MB / 488.4 MB, free: 11.2 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002895/0.1518, allocations: 1.987 MB / 490.3 MB, free: 9.211 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005034/0.1569, allocations: 3.953 MB / 494.3 MB, free: 5.199 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002376/0.1593, allocations: 1.239 MB / 495.5 MB, free: 3.957 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003048/0.1624, allocations: 1.651 MB / 497.2 MB, free: 2.301 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001101/0.1635, allocations: 344 kB / 497.5 MB, free: 1.965 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002293/0.1658, allocations: 0.9052 MB / 498.4 MB, free: 1.059 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002401/0.1682, allocations: 1.512 MB / 499.9 MB, free: 15.54 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003822/0.1721, allocations: 1.745 MB / 0.4899 GB, free: 13.79 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008275/0.1804, allocations: 5.561 MB / 0.4954 GB, free: 8.211 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.532e-06/0.1804, allocations: 0 / 0.4954 GB, free: 8.211 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.996e-06/0.1804, allocations: 0 / 0.4954 GB, free: 8.211 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000254/0.1807, allocations: 0 / 0.4954 GB, free: 8.211 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: 1077 * Number of variables: 1077 Notification: Performance of Generate backend data structure: time 0.01165/0.1923, allocations: 3.748 MB / 0.499 GB, free: 4.398 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.628e-05/0.1924, allocations: 8.031 kB / 0.499 GB, free: 4.391 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001564/0.194, allocations: 0.5329 MB / 0.4995 GB, free: 3.848 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002677/0.1967, allocations: 0.5818 MB / 0.5001 GB, free: 3.262 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003511/0.2002, allocations: 1.743 MB / 0.5018 GB, free: 1.473 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001614/0.2004, allocations: 209.6 kB / 0.502 GB, free: 1.266 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006501/0.201, allocations: 279.9 kB / 0.5023 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2292/0.4302, allocations: 7.61 MB / 0.5097 GB, free: 44.5 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.162e-05/0.4303, allocations: 13.25 kB / 0.5097 GB, free: 44.49 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003627/0.4307, allocations: 125.9 kB / 0.5098 GB, free: 44.42 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001613/0.4323, allocations: 1.096 MB / 0.5109 GB, free: 44.2 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0139/0.4462, allocations: 6.17 MB / 0.5169 GB, free: 42.22 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02468/0.471, allocations: 22.92 MB / 0.5393 GB, free: 22.91 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005314/0.4763, allocations: 1.859 MB / 0.5411 GB, free: 21.05 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009168/0.4773, allocations: 0.8198 MB / 0.5419 GB, free: 20.22 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006623/0.4839, allocations: 5.798 MB / 0.5476 GB, free: 13.94 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.469e-05/0.4839, allocations: 39.22 kB / 0.5476 GB, free: 13.89 MB / 382.1 MB Notification: Performance of pre-optimization done (n=75): time 2.985e-06/0.484, allocations: 0 / 0.5476 GB, free: 13.89 MB / 382.1 MB Notification: Performance of matching and sorting (n=94): time 0.0129/0.4969, allocations: 4.41 MB / 0.5519 GB, free: 9.469 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.318e-05/0.4969, allocations: 64.41 kB / 0.552 GB, free: 9.391 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002602/0.4995, allocations: 2.279 MB / 0.5542 GB, free: 7.078 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.701e-05/0.4996, allocations: 41.7 kB / 0.5543 GB, free: 7.031 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008329/0.5005, allocations: 2.046 MB / 0.5563 GB, free: 4.953 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000194/0.5007, allocations: 371.3 kB / 0.5566 GB, free: 4.586 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006155/0.5013, allocations: 0.6981 MB / 0.5573 GB, free: 3.879 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.071e-05/0.5013, allocations: 309.1 kB / 0.5576 GB, free: 3.574 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00103/0.5024, allocations: 0.885 MB / 0.5585 GB, free: 2.688 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00199/0.5044, allocations: 2.969 MB / 0.5614 GB, free: 14.69 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00453/0.5089, allocations: 4.204 MB / 0.5655 GB, free: 9.457 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.998e-05/0.509, allocations: 23.94 kB / 0.5655 GB, free: 9.434 MB / 398.1 MB Notification: Performance of matching and sorting (n=436) (initialization): time 0.005717/0.5147, allocations: 3.763 MB / 0.5692 GB, free: 5.664 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.082e-05/0.5148, allocations: 36 kB / 0.5692 GB, free: 5.629 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.547e-05/0.5149, allocations: 72 kB / 0.5693 GB, free: 5.559 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.904e-05/0.515, allocations: 100 kB / 0.5694 GB, free: 5.461 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002157/0.5171, allocations: 0.7843 MB / 0.5701 GB, free: 4.676 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001169/0.5173, allocations: 150.9 kB / 0.5703 GB, free: 4.531 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001807/0.5191, allocations: 148 kB / 0.5704 GB, free: 4.387 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002332/0.5193, allocations: 200 kB / 0.5706 GB, free: 4.191 MB / 398.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: 50 (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,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],jointUSP.rod1Color[3],jointUSP.rod1Color[2],jointUSP.rod1Color[1],jointUSP.cylinderColor[3],jointUSP.cylinderColor[2],jointUSP.cylinderColor[1],jointUSP.sphereColor[3],jointUSP.sphereColor[2],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 (436): * Single equations (assignments): 436 * 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 prepare postOptimizeDAE: time 0.001824/0.5212, allocations: 1.42 MB / 0.572 GB, free: 2.762 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003112/0.5215, allocations: 205.4 kB / 0.5722 GB, free: 2.559 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001817/0.5233, allocations: 1.148 MB / 0.5733 GB, free: 1.398 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.959e-06/0.5233, allocations: 8 kB / 0.5733 GB, free: 1.391 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.832e-06/0.5233, allocations: 0 / 0.5733 GB, free: 1.391 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.109e-05/0.5234, allocations: 7.984 kB / 0.5733 GB, free: 1.383 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007022/0.5304, allocations: 5.17 MB / 0.5784 GB, free: 11.91 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.557e-05/0.5304, allocations: 16 kB / 0.5784 GB, free: 11.89 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006617/0.5311, allocations: 212.6 kB / 0.5786 GB, free: 11.68 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.845e-05/0.5311, allocations: 20 kB / 0.5786 GB, free: 11.66 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.844e-05/0.5312, allocations: 44 kB / 0.5787 GB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.372e-05/0.5312, allocations: 38.8 kB / 0.5787 GB, free: 11.59 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-05/0.5313, allocations: 23.88 kB / 0.5787 GB, free: 11.56 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001938/0.5332, allocations: 1.674 MB / 0.5804 GB, free: 9.66 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004671/0.5337, allocations: 298.2 kB / 0.5806 GB, free: 9.348 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001979/0.5339, allocations: 39.98 kB / 0.5807 GB, free: 9.309 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006612/0.5346, allocations: 39.98 kB / 0.5807 GB, free: 9.27 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001378/0.5347, allocations: 123.9 kB / 0.5808 GB, free: 9.148 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.75e-05/0.5348, allocations: 55.94 kB / 0.5809 GB, free: 9.094 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001945/0.5367, allocations: 1.477 MB / 0.5823 GB, free: 7.602 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5367, allocations: 0 / 0.5823 GB, free: 7.602 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002555/0.5393, allocations: 0.5689 MB / 0.5829 GB, free: 7.035 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 71 * 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 (118): * Single equations (assignments): 118 * 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.002575/0.5419, allocations: 2.323 MB / 0.5852 GB, free: 4.461 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003621/0.5455, allocations: 2.317 MB / 0.5874 GB, free: 2.176 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.559e-05/0.5455, allocations: 0 / 0.5874 GB, free: 2.176 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007389/0.5463, allocations: 0.525 MB / 0.5879 GB, free: 1.656 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001737/0.548, allocations: 351.2 kB / 0.5883 GB, free: 1.324 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03843/0.5865, allocations: 26.47 MB / 0.6141 GB, free: 2.871 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002523/0.589, allocations: 2.456 MB / 0.6165 GB, free: 396 kB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002654/0.5917, allocations: 0.91 MB / 0.6174 GB, free: 15.47 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001742/0.5935, allocations: 1.241 MB / 0.6186 GB, free: 14.23 MB / 462.1 MB Notification: Performance of SimCode: time 1.463e-06/0.5935, allocations: 4 kB / 0.6186 GB, free: 14.23 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0769/0.6704, allocations: 42.01 MB / 0.6596 GB, free: 4.438 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.764/9.434, allocations: 7.766 kB / 0.6597 GB, free: 4.43 MB / 494.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP_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_JointUSP.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/JointUSP/JointUSP.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches