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.0009596/0.0009596, allocations: 109.8 kB / 17.78 MB, free: 5.266 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.001066/0.001066, allocations: 183.1 kB / 18.71 MB, free: 4.34 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.325/1.325, allocations: 222.9 MB / 242.4 MB, free: 15.16 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.1947/0.1947, allocations: 44.19 MB / 336.8 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001398/0.001398, allocations: 63.89 kB / 470.1 MB, free: 13.65 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3007/0.3021, allocations: 60.82 MB / 0.5184 GB, free: 3.285 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointUSP): time 0.01114/0.3133, allocations: 10.83 MB / 0.529 GB, free: 11.61 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.007951/0.3213, allocations: 3.371 MB / 0.5323 GB, free: 9.18 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002534/0.3239, allocations: 56.62 kB / 0.5324 GB, free: 9.176 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006527/0.3304, allocations: 3.278 MB / 0.5356 GB, free: 6.996 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002607/0.3331, allocations: 0.8322 MB / 0.5364 GB, free: 6.34 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002211/0.3353, allocations: 0.6633 MB / 0.537 GB, free: 5.871 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003974/0.3393, allocations: 1.984 MB / 0.539 GB, free: 4.75 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005638/0.345, allocations: 3.946 MB / 0.5428 GB, free: 2.566 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002424/0.3475, allocations: 1.245 MB / 0.544 GB, free: 1.789 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002591/0.3501, allocations: 1.648 MB / 0.5456 GB, free: 140 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009279/0.351, allocations: 344 kB / 0.546 GB, free: 15.8 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002058/0.3531, allocations: 0.9129 MB / 0.5469 GB, free: 14.89 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001952/0.3551, allocations: 1.512 MB / 0.5483 GB, free: 13.37 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002745/0.3578, allocations: 1.749 MB / 0.55 GB, free: 11.61 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006505/0.3644, allocations: 5.713 MB / 0.5556 GB, free: 5.879 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.705e-06/0.3644, allocations: 8 kB / 0.5556 GB, free: 5.871 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.3644, allocations: 0 / 0.5556 GB, free: 5.871 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001697/0.3646, allocations: 0 / 0.5556 GB, free: 5.871 MB / 414.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.007976/0.3726, allocations: 3.821 MB / 0.5594 GB, free: 1.98 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.051e-05/0.3726, allocations: 16.03 kB / 0.5594 GB, free: 1.965 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007354/0.3734, allocations: 0.5329 MB / 0.5599 GB, free: 1.422 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002171/0.3755, allocations: 0.5995 MB / 0.5605 GB, free: 0.8203 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00311/0.3787, allocations: 1.771 MB / 0.5622 GB, free: 15 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001435/0.3788, allocations: 213.6 kB / 0.5624 GB, free: 14.79 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004848/0.3793, allocations: 275.9 kB / 0.5627 GB, free: 14.52 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0134/0.3927, allocations: 7.611 MB / 0.5701 GB, free: 6.574 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.597e-05/0.3928, allocations: 15.88 kB / 0.5701 GB, free: 6.559 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003032/0.3932, allocations: 123.9 kB / 0.5702 GB, free: 6.438 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001466/0.3946, allocations: 1.106 MB / 0.5713 GB, free: 5.328 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01302/0.4077, allocations: 6.167 MB / 0.5773 GB, free: 15.14 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03088/0.4386, allocations: 22.86 MB / 0.5997 GB, free: 7.719 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006193/0.4448, allocations: 1.856 MB / 0.6015 GB, free: 5.855 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001377/0.4463, allocations: 0.8342 MB / 0.6023 GB, free: 5.02 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008045/0.4543, allocations: 5.79 MB / 0.608 GB, free: 14.7 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.747e-05/0.4544, allocations: 43.22 kB / 0.608 GB, free: 14.64 MB / 478.1 MB Notification: Performance of pre-optimization done (n=75): time 3.056e-06/0.4544, allocations: 0 / 0.608 GB, free: 14.64 MB / 478.1 MB Notification: Performance of matching and sorting (n=94): time 0.01419/0.4686, allocations: 4.459 MB / 0.6124 GB, free: 10.18 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.883e-05/0.4687, allocations: 64.41 kB / 0.6124 GB, free: 10.1 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003572/0.4723, allocations: 2.287 MB / 0.6146 GB, free: 7.781 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001183/0.4725, allocations: 37.7 kB / 0.6147 GB, free: 7.738 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001387/0.4739, allocations: 2.126 MB / 0.6168 GB, free: 5.59 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000372/0.4742, allocations: 397 kB / 0.6171 GB, free: 5.199 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001007/0.4753, allocations: 0.691 MB / 0.6178 GB, free: 4.5 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 9.468e-05/0.4754, allocations: 313.1 kB / 0.6181 GB, free: 4.191 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001418/0.4768, allocations: 0.8889 MB / 0.619 GB, free: 3.301 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003054/0.4799, allocations: 2.965 MB / 0.6219 GB, free: 15.3 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004599/0.4845, allocations: 4.206 MB / 0.626 GB, free: 10.07 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.584e-05/0.4846, allocations: 24 kB / 0.626 GB, free: 10.04 MB / 494.1 MB Notification: Performance of matching and sorting (n=436) (initialization): time 0.006281/0.4908, allocations: 3.771 MB / 0.6297 GB, free: 6.266 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.312e-05/0.4909, allocations: 36 kB / 0.6297 GB, free: 6.23 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.526e-05/0.491, allocations: 75.94 kB / 0.6298 GB, free: 6.156 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001026/0.4912, allocations: 100 kB / 0.6299 GB, free: 6.059 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002334/0.4935, allocations: 0.7836 MB / 0.6307 GB, free: 5.273 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001284/0.4936, allocations: 143.4 kB / 0.6308 GB, free: 5.133 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001995/0.4957, allocations: 156.3 kB / 0.6309 GB, free: 4.98 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003609/0.496, allocations: 200 kB / 0.6311 GB, free: 4.785 MB / 494.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.002107/0.4981, allocations: 1.418 MB / 0.6325 GB, free: 3.352 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003459/0.4985, allocations: 210.6 kB / 0.6327 GB, free: 3.145 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002092/0.5006, allocations: 1.152 MB / 0.6338 GB, free: 1.984 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.199e-05/0.5006, allocations: 11.98 kB / 0.6339 GB, free: 1.973 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.143e-06/0.5007, allocations: 0 / 0.6339 GB, free: 1.973 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.173e-05/0.5007, allocations: 3.984 kB / 0.6339 GB, free: 1.969 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008887/0.5096, allocations: 5.174 MB / 0.6389 GB, free: 12.49 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.205e-05/0.5096, allocations: 16 kB / 0.6389 GB, free: 12.48 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007431/0.5104, allocations: 211.7 kB / 0.6391 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.541e-05/0.5104, allocations: 24 kB / 0.6392 GB, free: 12.25 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.348e-05/0.5105, allocations: 44 kB / 0.6392 GB, free: 12.2 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.533e-05/0.5106, allocations: 31.86 kB / 0.6392 GB, free: 12.17 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.895e-05/0.5106, allocations: 27.88 kB / 0.6392 GB, free: 12.14 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002081/0.5127, allocations: 1.684 MB / 0.6409 GB, free: 10.23 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005617/0.5133, allocations: 307.6 kB / 0.6412 GB, free: 9.91 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003837/0.5137, allocations: 43.98 kB / 0.6412 GB, free: 9.867 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008637/0.5145, allocations: 39.98 kB / 0.6413 GB, free: 9.828 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001738/0.5147, allocations: 119.9 kB / 0.6414 GB, free: 9.711 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.304e-05/0.5148, allocations: 59.92 kB / 0.6414 GB, free: 9.652 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.002425/0.5172, allocations: 1.477 MB / 0.6429 GB, free: 8.16 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.2e-07/0.5173, allocations: 0 / 0.6429 GB, free: 8.16 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.00286/0.5201, allocations: 0.5663 MB / 0.6434 GB, free: 7.594 MB / 0.4981 GB 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.002896/0.523, allocations: 2.325 MB / 0.6457 GB, free: 5.023 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.00371/0.5268, allocations: 2.165 MB / 0.6478 GB, free: 2.875 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.303e-05/0.5268, allocations: 0 / 0.6478 GB, free: 2.875 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0008449/0.5277, allocations: 0.5241 MB / 0.6483 GB, free: 2.355 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002408/0.5301, allocations: 366.3 kB / 0.6487 GB, free: 2.004 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03876/0.5689, allocations: 24.25 MB / 0.6724 GB, free: 6.703 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003588/0.5725, allocations: 2.46 MB / 0.6748 GB, free: 4.215 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.002679/0.5753, allocations: 0.9139 MB / 0.6757 GB, free: 3.297 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002406/0.5777, allocations: 1.241 MB / 0.6769 GB, free: 2.055 MB / 0.5294 GB Notification: Performance of SimCode: time 1.753e-06/0.5777, allocations: 0 / 0.6769 GB, free: 2.055 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08027/0.658, allocations: 41.51 MB / 0.7174 GB, free: 8.789 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.1/13.76, allocations: 14.19 kB / 0.7174 GB, free: 8.777 MB / 0.5762 GB (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