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.001267/0.001267, allocations: 115.7 kB / 17.78 MB, free: 5.254 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.001209/0.001209, allocations: 185 kB / 18.72 MB, free: 4.332 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.396/1.396, 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.2245/0.2245, allocations: 44.18 MB / 336.8 MB, free: 2.66 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001881/0.001881, allocations: 75.83 kB / 470.1 MB, free: 13.64 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3118/0.3137, allocations: 60.82 MB / 0.5184 GB, free: 3.289 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointUSP): time 0.0112/0.325, allocations: 10.85 MB / 0.529 GB, free: 11.6 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.007062/0.3321, allocations: 3.361 MB / 0.5323 GB, free: 9.176 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00151/0.3336, allocations: 60.19 kB / 0.5324 GB, free: 9.168 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00611/0.3397, allocations: 3.278 MB / 0.5356 GB, free: 6.988 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002366/0.3421, allocations: 0.7933 MB / 0.5363 GB, free: 6.359 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001609/0.3438, allocations: 0.6616 MB / 0.537 GB, free: 5.895 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002599/0.3464, allocations: 1.98 MB / 0.5389 GB, free: 4.777 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004446/0.3508, allocations: 3.945 MB / 0.5428 GB, free: 2.594 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002043/0.3529, allocations: 1.246 MB / 0.544 GB, free: 1.844 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002496/0.3554, allocations: 1.644 MB / 0.5456 GB, free: 200 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005958/0.356, allocations: 344 kB / 0.5459 GB, free: 15.86 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001675/0.3577, allocations: 0.9129 MB / 0.5468 GB, free: 14.95 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001392/0.3591, allocations: 1.508 MB / 0.5483 GB, free: 13.43 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001853/0.361, allocations: 1.745 MB / 0.55 GB, free: 11.68 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006031/0.367, allocations: 5.709 MB / 0.5556 GB, free: 5.949 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.143e-06/0.367, allocations: 3.984 kB / 0.5556 GB, free: 5.945 MB / 414.1 MB Notification: Performance of FrontEnd: time 4.538e-06/0.3671, allocations: 0 / 0.5556 GB, free: 5.945 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001097/0.3672, allocations: 3.938 kB / 0.5556 GB, free: 5.941 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.007572/0.3748, allocations: 3.821 MB / 0.5593 GB, free: 2.051 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.205e-05/0.3748, allocations: 12.03 kB / 0.5593 GB, free: 2.039 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000703/0.3755, allocations: 0.5329 MB / 0.5598 GB, free: 1.496 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002242/0.3778, allocations: 0.5995 MB / 0.5604 GB, free: 0.8945 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00354/0.3813, allocations: 1.771 MB / 0.5622 GB, free: 15.07 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001786/0.3815, allocations: 213.6 kB / 0.5624 GB, free: 14.86 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005426/0.3821, allocations: 275.9 kB / 0.5626 GB, free: 14.59 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01485/0.3969, allocations: 7.615 MB / 0.5701 GB, free: 6.645 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.249e-05/0.397, allocations: 19.88 kB / 0.5701 GB, free: 6.625 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003081/0.3973, allocations: 119.9 kB / 0.5702 GB, free: 6.508 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001635/0.399, allocations: 1.11 MB / 0.5713 GB, free: 5.395 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0138/0.4128, allocations: 6.175 MB / 0.5773 GB, free: 15.2 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02974/0.4426, allocations: 22.85 MB / 0.5996 GB, free: 7.789 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006011/0.4486, allocations: 1.863 MB / 0.6014 GB, free: 5.918 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001255/0.4499, allocations: 0.8276 MB / 0.6023 GB, free: 5.086 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007938/0.4579, allocations: 5.79 MB / 0.6079 GB, free: 14.77 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.038e-05/0.4579, allocations: 43.22 kB / 0.6079 GB, free: 14.71 MB / 478.1 MB Notification: Performance of pre-optimization done (n=75): time 2.495e-06/0.4579, allocations: 0 / 0.6079 GB, free: 14.71 MB / 478.1 MB Notification: Performance of matching and sorting (n=94): time 0.01446/0.4724, allocations: 4.459 MB / 0.6123 GB, free: 10.24 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.929e-05/0.4725, allocations: 64.41 kB / 0.6124 GB, free: 10.17 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00313/0.4756, allocations: 2.287 MB / 0.6146 GB, free: 7.848 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 6.404e-05/0.4757, allocations: 41.7 kB / 0.6146 GB, free: 7.801 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001569/0.4773, allocations: 2.122 MB / 0.6167 GB, free: 5.656 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003287/0.4776, allocations: 393 kB / 0.6171 GB, free: 5.27 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008624/0.4785, allocations: 0.6949 MB / 0.6178 GB, free: 4.566 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001357/0.4786, allocations: 305.1 kB / 0.6181 GB, free: 4.266 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001423/0.4801, allocations: 0.8967 MB / 0.6189 GB, free: 3.367 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003123/0.4832, allocations: 2.969 MB / 0.6218 GB, free: 15.36 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005123/0.4883, allocations: 4.202 MB / 0.6259 GB, free: 10.13 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.536e-05/0.4884, allocations: 20 kB / 0.626 GB, free: 10.11 MB / 494.1 MB Notification: Performance of matching and sorting (n=436) (initialization): time 0.00614/0.4945, allocations: 3.776 MB / 0.6296 GB, free: 6.332 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.109e-05/0.4946, allocations: 39.94 kB / 0.6297 GB, free: 6.293 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.28e-05/0.4947, allocations: 72 kB / 0.6297 GB, free: 6.223 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001064/0.4948, allocations: 108 kB / 0.6298 GB, free: 6.117 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002259/0.4971, allocations: 0.7797 MB / 0.6306 GB, free: 5.336 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001242/0.4972, allocations: 143.4 kB / 0.6307 GB, free: 5.195 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001719/0.4989, allocations: 151.9 kB / 0.6309 GB, free: 5.047 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002797/0.4992, allocations: 200 kB / 0.6311 GB, free: 4.852 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.00216/0.5014, allocations: 1.422 MB / 0.6325 GB, free: 3.414 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003041/0.5017, allocations: 210.6 kB / 0.6327 GB, free: 3.207 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002038/0.5038, allocations: 1.156 MB / 0.6338 GB, free: 2.043 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.031e-05/0.5038, allocations: 8 kB / 0.6338 GB, free: 2.035 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.705e-06/0.5038, allocations: 8 kB / 0.6338 GB, free: 2.027 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.043e-05/0.5038, allocations: 3.984 kB / 0.6338 GB, free: 2.023 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007716/0.5115, allocations: 5.165 MB / 0.6389 GB, free: 12.55 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.115e-05/0.5116, allocations: 16.94 kB / 0.6389 GB, free: 12.54 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007072/0.5123, allocations: 211.7 kB / 0.6391 GB, free: 12.33 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-05/0.5123, allocations: 28 kB / 0.6391 GB, free: 12.3 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.539e-05/0.5124, allocations: 40 kB / 0.6391 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.939e-05/0.5124, allocations: 31.86 kB / 0.6392 GB, free: 12.23 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.564e-05/0.5125, allocations: 27.88 kB / 0.6392 GB, free: 12.21 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002149/0.5146, allocations: 1.68 MB / 0.6408 GB, free: 10.3 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000479/0.5151, allocations: 307.6 kB / 0.6411 GB, free: 9.977 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002168/0.5154, allocations: 43.98 kB / 0.6412 GB, free: 9.934 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006678/0.516, allocations: 39.98 kB / 0.6412 GB, free: 9.895 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001577/0.5162, allocations: 131.8 kB / 0.6413 GB, free: 9.766 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.617e-05/0.5163, allocations: 55.92 kB / 0.6414 GB, free: 9.711 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.002138/0.5184, allocations: 1.473 MB / 0.6428 GB, free: 8.223 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5184, allocations: 0 / 0.6428 GB, free: 8.223 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.002518/0.521, allocations: 0.5741 MB / 0.6434 GB, free: 7.648 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.002674/0.5236, allocations: 2.321 MB / 0.6457 GB, free: 5.082 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.00362/0.5273, allocations: 2.161 MB / 0.6478 GB, free: 2.938 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.537e-05/0.5273, allocations: 4 kB / 0.6478 GB, free: 2.934 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0007742/0.5281, allocations: 0.5216 MB / 0.6483 GB, free: 2.418 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001741/0.5298, allocations: 350.2 kB / 0.6486 GB, free: 2.078 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03442/0.5643, allocations: 24.26 MB / 0.6723 GB, free: 6.766 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002789/0.5671, allocations: 2.46 MB / 0.6747 GB, free: 4.277 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.002196/0.5693, allocations: 0.9138 MB / 0.6756 GB, free: 3.359 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001591/0.5709, allocations: 1.241 MB / 0.6768 GB, free: 2.117 MB / 0.5294 GB Notification: Performance of SimCode: time 1.062e-06/0.5709, allocations: 0 / 0.6768 GB, free: 2.117 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.083/0.6539, allocations: 41.52 MB / 0.7174 GB, free: 8.848 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.27/13.93, allocations: 10.5 kB / 0.7174 GB, free: 8.84 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