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.001065/0.001065, allocations: 113.2 kB / 17.78 MB, free: 5.277 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.001072/0.001072, allocations: 184.2 kB / 18.72 MB, free: 4.352 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.316/1.316, allocations: 222.9 MB / 242.4 MB, free: 15.07 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.2008/0.2008, allocations: 44.2 MB / 336.8 MB, free: 2.652 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001304/0.001304, allocations: 67.89 kB / 470.1 MB, free: 13.66 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3066/0.3079, allocations: 60.81 MB / 0.5184 GB, free: 3.277 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointUSP): time 0.01096/0.319, allocations: 10.85 MB / 0.529 GB, free: 11.59 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.007187/0.3262, allocations: 3.367 MB / 0.5323 GB, free: 9.156 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001723/0.328, allocations: 60.53 kB / 0.5324 GB, free: 9.148 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005964/0.3339, allocations: 3.282 MB / 0.5356 GB, free: 6.965 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00246/0.3365, allocations: 0.8283 MB / 0.5364 GB, free: 6.312 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001728/0.3382, allocations: 0.6592 MB / 0.537 GB, free: 5.848 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002753/0.341, allocations: 1.981 MB / 0.539 GB, free: 4.73 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004266/0.3453, allocations: 3.946 MB / 0.5428 GB, free: 2.547 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00215/0.3474, allocations: 1.239 MB / 0.544 GB, free: 1.801 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00232/0.3498, allocations: 1.651 MB / 0.5456 GB, free: 148 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005907/0.3504, allocations: 344 kB / 0.546 GB, free: 15.8 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001506/0.3519, allocations: 0.909 MB / 0.5469 GB, free: 14.9 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001317/0.3532, allocations: 1.516 MB / 0.5483 GB, free: 13.38 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001754/0.355, allocations: 1.749 MB / 0.55 GB, free: 11.62 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005868/0.3609, allocations: 5.709 MB / 0.5556 GB, free: 5.891 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.695e-06/0.3609, allocations: 0 / 0.5556 GB, free: 5.891 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3609, allocations: 3.938 kB / 0.5556 GB, free: 5.887 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.000135/0.3611, allocations: 4 kB / 0.5556 GB, free: 5.883 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.008063/0.3691, allocations: 3.821 MB / 0.5594 GB, free: 1.992 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.792e-05/0.3692, allocations: 8.031 kB / 0.5594 GB, free: 1.984 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007625/0.37, allocations: 0.5329 MB / 0.5599 GB, free: 1.441 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002272/0.3722, allocations: 0.6034 MB / 0.5605 GB, free: 0.8359 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003936/0.3762, allocations: 1.775 MB / 0.5622 GB, free: 15.01 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001462/0.3764, allocations: 213.6 kB / 0.5624 GB, free: 14.8 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004909/0.3769, allocations: 279.9 kB / 0.5627 GB, free: 14.53 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0137/0.3906, allocations: 7.623 MB / 0.5701 GB, free: 6.57 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.031e-05/0.3907, allocations: 15.88 kB / 0.5701 GB, free: 6.555 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003063/0.391, allocations: 123.9 kB / 0.5703 GB, free: 6.434 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001528/0.3925, allocations: 1.099 MB / 0.5713 GB, free: 5.332 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01322/0.4058, allocations: 6.171 MB / 0.5774 GB, free: 15.14 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02881/0.4346, allocations: 22.85 MB / 0.5997 GB, free: 7.727 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006021/0.4407, allocations: 1.859 MB / 0.6015 GB, free: 5.859 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001152/0.4419, allocations: 0.8315 MB / 0.6023 GB, free: 5.023 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008011/0.4499, allocations: 5.79 MB / 0.608 GB, free: 14.7 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.88e-05/0.45, allocations: 39.22 kB / 0.608 GB, free: 14.65 MB / 478.1 MB Notification: Performance of pre-optimization done (n=75): time 2.795e-06/0.45, allocations: 0 / 0.608 GB, free: 14.65 MB / 478.1 MB Notification: Performance of matching and sorting (n=94): time 0.01476/0.4647, allocations: 4.463 MB / 0.6124 GB, free: 10.18 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5e-05/0.4648, allocations: 64.41 kB / 0.6124 GB, free: 10.11 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003367/0.4682, allocations: 2.287 MB / 0.6146 GB, free: 7.785 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 8.845e-05/0.4683, allocations: 41.7 kB / 0.6147 GB, free: 7.738 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001359/0.4697, allocations: 2.118 MB / 0.6168 GB, free: 5.598 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000348/0.47, allocations: 397 kB / 0.6171 GB, free: 5.207 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009133/0.471, allocations: 0.6949 MB / 0.6178 GB, free: 4.504 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 9.708e-05/0.4711, allocations: 305.1 kB / 0.6181 GB, free: 4.203 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001435/0.4725, allocations: 0.8967 MB / 0.619 GB, free: 3.305 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002657/0.4752, allocations: 2.965 MB / 0.6219 GB, free: 15.3 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004384/0.4796, allocations: 4.202 MB / 0.626 GB, free: 10.07 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.147e-05/0.4797, allocations: 24 kB / 0.626 GB, free: 10.05 MB / 494.1 MB Notification: Performance of matching and sorting (n=436) (initialization): time 0.006047/0.4857, allocations: 3.776 MB / 0.6297 GB, free: 6.27 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.643e-05/0.4858, allocations: 39.94 kB / 0.6297 GB, free: 6.23 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.517e-05/0.4859, allocations: 79.98 kB / 0.6298 GB, free: 6.152 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000101/0.486, allocations: 99.98 kB / 0.6299 GB, free: 6.055 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002351/0.4884, allocations: 0.7836 MB / 0.6307 GB, free: 5.27 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001176/0.4885, allocations: 147.4 kB / 0.6308 GB, free: 5.125 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001996/0.4905, allocations: 144 kB / 0.6309 GB, free: 4.984 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002817/0.4908, allocations: 204 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.002027/0.4928, allocations: 1.418 MB / 0.6325 GB, free: 3.352 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003392/0.4932, allocations: 210.6 kB / 0.6327 GB, free: 3.145 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002031/0.4952, allocations: 1.152 MB / 0.6338 GB, free: 1.984 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.065e-05/0.4953, allocations: 12 kB / 0.6339 GB, free: 1.973 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.4953, allocations: 0 / 0.6339 GB, free: 1.973 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.558e-06/0.4953, allocations: 3.984 kB / 0.6339 GB, free: 1.969 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008677/0.504, allocations: 5.17 MB / 0.6389 GB, free: 12.5 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.023e-05/0.504, allocations: 20.03 kB / 0.6389 GB, free: 12.48 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007375/0.5048, allocations: 207.7 kB / 0.6391 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-05/0.5048, allocations: 24 kB / 0.6391 GB, free: 12.25 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.565e-05/0.5049, allocations: 43.98 kB / 0.6392 GB, free: 12.21 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.51e-05/0.5049, allocations: 27.88 kB / 0.6392 GB, free: 12.18 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.688e-05/0.505, allocations: 27.88 kB / 0.6392 GB, free: 12.15 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002146/0.5071, allocations: 1.691 MB / 0.6409 GB, free: 10.23 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006433/0.5078, allocations: 303.6 kB / 0.6412 GB, free: 9.914 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003626/0.5082, allocations: 39.98 kB / 0.6412 GB, free: 9.875 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008418/0.509, allocations: 39.98 kB / 0.6413 GB, free: 9.836 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001294/0.5091, allocations: 127.9 kB / 0.6414 GB, free: 9.711 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.789e-05/0.5092, allocations: 55.94 kB / 0.6414 GB, free: 9.656 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.002485/0.5117, allocations: 1.473 MB / 0.6429 GB, free: 8.168 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.81e-07/0.5117, allocations: 4 kB / 0.6429 GB, free: 8.164 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.002844/0.5146, allocations: 0.5702 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.002747/0.5173, allocations: 2.321 MB / 0.6457 GB, free: 5.027 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.003496/0.5209, allocations: 2.164 MB / 0.6478 GB, free: 2.879 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.428e-05/0.5209, allocations: 4.5 kB / 0.6478 GB, free: 2.875 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0007669/0.5217, allocations: 0.5245 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.002089/0.5238, allocations: 356.7 kB / 0.6487 GB, free: 2.012 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03798/0.5618, allocations: 24.25 MB / 0.6724 GB, free: 6.711 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003138/0.5649, allocations: 2.456 MB / 0.6748 GB, free: 4.227 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.002267/0.5672, allocations: 0.9099 MB / 0.6756 GB, free: 3.312 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001672/0.5689, allocations: 1.245 MB / 0.6769 GB, free: 2.066 MB / 0.5294 GB Notification: Performance of SimCode: time 1.302e-06/0.5689, allocations: 0 / 0.6769 GB, free: 2.066 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07428/0.6432, allocations: 41.53 MB / 0.7174 GB, free: 8.781 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.62/13.27, allocations: 7.766 kB / 0.7174 GB, free: 8.773 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