Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.JointUSR.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.JointUSR,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_JointUSR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUSR,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_JointUSR",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.001882/0.001882, allocations: 105.2 kB / 16.27 MB, free: 5.965 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.001579/0.001579, allocations: 191.6 kB / 17.19 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.534/1.534, allocations: 205.1 MB / 223.1 MB, free: 12.28 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2069/0.2069, allocations: 43.52 MB / 313.9 MB, free: 0.5352 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002746/0.002746, allocations: 65.41 kB / 382.8 MB, free: 56.69 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1383/0.1411, allocations: 57.79 MB / 440.6 MB, free: 6.824 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointUSR): time 0.01153/0.1527, allocations: 12.63 MB / 453.3 MB, free: 10.12 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007765/0.1605, allocations: 3.717 MB / 457 MB, free: 6.398 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001618/0.1622, allocations: 67.88 kB / 457 MB, free: 6.332 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005722/0.1679, allocations: 3.306 MB / 460.3 MB, free: 3.016 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002244/0.1702, allocations: 0.9405 MB / 461.3 MB, free: 2.07 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001861/0.1721, allocations: 0.8147 MB / 462.1 MB, free: 1.254 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002829/0.1749, allocations: 2.4 MB / 464.5 MB, free: 14.85 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00395/0.1789, allocations: 4.16 MB / 468.7 MB, free: 10.62 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001553/0.1804, allocations: 1.394 MB / 470.1 MB, free: 9.219 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002012/0.1825, allocations: 1.811 MB / 471.9 MB, free: 7.402 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005301/0.183, allocations: 368 kB / 472.2 MB, free: 7.043 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001641/0.1847, allocations: 1.01 MB / 473.2 MB, free: 6.031 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001364/0.186, allocations: 1.691 MB / 474.9 MB, free: 4.336 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001989/0.188, allocations: 1.974 MB / 476.9 MB, free: 2.352 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005629/0.1937, allocations: 6.235 MB / 483.1 MB, free: 12.1 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.1937, allocations: 3.938 kB / 483.1 MB, free: 12.09 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.1937, allocations: 4 kB / 483.1 MB, free: 12.09 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.00013/0.1939, allocations: 0 / 483.1 MB, free: 12.09 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1303 * Number of variables: 1303 Notification: Performance of Generate backend data structure: time 0.009894/0.2038, allocations: 4.294 MB / 487.4 MB, free: 7.73 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.059e-05/0.2039, allocations: 15.89 kB / 487.4 MB, free: 7.715 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001168/0.205, allocations: 0.6363 MB / 488.1 MB, free: 7.07 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002581/0.2076, allocations: 0.581 MB / 488.7 MB, free: 6.484 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003818/0.2115, allocations: 1.872 MB / 490.5 MB, free: 4.566 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001943/0.2117, allocations: 238.1 kB / 490.8 MB, free: 4.332 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006342/0.2123, allocations: 311.9 kB / 491.1 MB, free: 4.027 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01739/0.2297, allocations: 9.216 MB / 0.4886 GB, free: 10.45 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.311e-05/0.2299, allocations: 11.88 kB / 0.4886 GB, free: 10.44 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004071/0.2303, allocations: 143.9 kB / 0.4887 GB, free: 10.3 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002649/0.2329, allocations: 1.584 MB / 0.4903 GB, free: 8.711 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01662/0.2496, allocations: 7.46 MB / 0.4975 GB, free: 1.242 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03632/0.2859, allocations: 27.98 MB / 0.5249 GB, free: 4.531 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007358/0.2933, allocations: 2.333 MB / 0.5272 GB, free: 2.152 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001444/0.2948, allocations: 1.107 MB / 0.5282 GB, free: 1.035 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2187/0.5135, allocations: 7.614 MB / 0.5357 GB, free: 85 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.67e-05/0.5136, allocations: 47.36 kB / 0.5357 GB, free: 84.96 MB / 414.1 MB Notification: Performance of pre-optimization done (n=81): time 3.887e-06/0.5136, allocations: 3.375 kB / 0.5357 GB, free: 84.96 MB / 414.1 MB Notification: Performance of matching and sorting (n=97): time 0.02157/0.5352, allocations: 7.167 MB / 0.5427 GB, free: 82.66 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.121e-05/0.5354, allocations: 141.3 kB / 0.5429 GB, free: 82.5 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004413/0.5398, allocations: 2.667 MB / 0.5455 GB, free: 81.48 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001331/0.5399, allocations: 40.7 kB / 0.5455 GB, free: 81.43 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001308/0.5413, allocations: 2.432 MB / 0.5479 GB, free: 79.57 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003093/0.5416, allocations: 389 kB / 0.5482 GB, free: 79.3 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001035/0.5426, allocations: 0.7785 MB / 0.549 GB, free: 78.91 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 5.623e-05/0.5427, allocations: 301.7 kB / 0.5493 GB, free: 78.61 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001297/0.544, allocations: 1.09 MB / 0.5504 GB, free: 78.24 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002145/0.5461, allocations: 3.495 MB / 0.5538 GB, free: 74.65 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003799/0.55, allocations: 4.977 MB / 0.5586 GB, free: 70.07 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-05/0.55, allocations: 26.41 kB / 0.5587 GB, free: 70.07 MB / 414.1 MB Notification: Performance of matching and sorting (n=499) (initialization): time 0.005469/0.5555, allocations: 4.459 MB / 0.563 GB, free: 67.8 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.869e-05/0.5555, allocations: 48.06 kB / 0.5631 GB, free: 67.75 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-05/0.5556, allocations: 84 kB / 0.5631 GB, free: 67.67 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.071e-05/0.5557, allocations: 112 kB / 0.5632 GB, free: 67.56 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002293/0.558, allocations: 0.9514 MB / 0.5642 GB, free: 66.61 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.975e-05/0.5581, allocations: 163.4 kB / 0.5643 GB, free: 66.45 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002375/0.5605, allocations: 195.8 kB / 0.5645 GB, free: 66.25 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002032/0.5607, allocations: 240 kB / 0.5647 GB, free: 66.02 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 390 * Number of states: 0 () * Number of discrete variables: 43 (jointUSR.revolute.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],jointUSR.rod1Color[3],jointUSR.rod1Color[2],jointUSR.rod1Color[1],jointUSR.cylinderColor[3],jointUSR.cylinderColor[2],jointUSR.cylinderColor[1],jointUSR.sphereColor[3],jointUSR.sphereColor[2],jointUSR.sphereColor[1],jointUSR.revoluteColor[3],jointUSR.revoluteColor[2],jointUSR.revoluteColor[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 (499): * Single equations (assignments): 499 * 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.00189/0.5626, allocations: 1.599 MB / 0.5663 GB, free: 64.41 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003482/0.5629, allocations: 232.9 kB / 0.5665 GB, free: 64.18 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001706/0.5646, allocations: 1.385 MB / 0.5679 GB, free: 62.79 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.175e-06/0.5647, allocations: 12 kB / 0.5679 GB, free: 62.77 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.523e-06/0.5647, allocations: 0 / 0.5679 GB, free: 62.77 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.015e-05/0.5647, allocations: 7.984 kB / 0.5679 GB, free: 62.77 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00697/0.5717, allocations: 6.034 MB / 0.5738 GB, free: 56.46 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-05/0.5717, allocations: 16 kB / 0.5738 GB, free: 56.45 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006712/0.5724, allocations: 223.7 kB / 0.574 GB, free: 56.23 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-05/0.5724, allocations: 24 kB / 0.574 GB, free: 56.21 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.882e-05/0.5725, allocations: 40 kB / 0.5741 GB, free: 56.17 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.799e-05/0.5725, allocations: 32.61 kB / 0.5741 GB, free: 56.14 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.849e-06/0.5725, allocations: 23.88 kB / 0.5741 GB, free: 56.11 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001585/0.5741, allocations: 1.8 MB / 0.5759 GB, free: 54.1 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004924/0.5746, allocations: 314 kB / 0.5762 GB, free: 53.77 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002325/0.5748, allocations: 39.98 kB / 0.5762 GB, free: 53.73 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00075/0.5756, allocations: 51.91 kB / 0.5763 GB, free: 53.68 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001226/0.5757, allocations: 120.1 kB / 0.5764 GB, free: 53.56 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.671e-05/0.5758, allocations: 54.8 kB / 0.5764 GB, free: 53.51 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001774/0.5776, allocations: 1.696 MB / 0.5781 GB, free: 51.81 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.5776, allocations: 0 / 0.5781 GB, free: 51.81 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003233/0.5808, allocations: 0.6731 MB / 0.5788 GB, free: 51.14 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 68 * 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 (122): * Single equations (assignments): 122 * 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.001948/0.5828, allocations: 2.448 MB / 0.5811 GB, free: 48.46 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00379/0.5866, allocations: 2.742 MB / 0.5838 GB, free: 45.75 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.405e-05/0.5866, allocations: 4 kB / 0.5838 GB, free: 45.75 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005866/0.5872, allocations: 0.5735 MB / 0.5844 GB, free: 45.18 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001673/0.5889, allocations: 328.6 kB / 0.5847 GB, free: 44.87 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03242/0.6213, allocations: 31.1 MB / 0.6151 GB, free: 8.871 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002355/0.6237, allocations: 2.735 MB / 0.6177 GB, free: 6.129 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002473/0.6262, allocations: 1.037 MB / 0.6188 GB, free: 5.098 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001368/0.6276, allocations: 1.476 MB / 0.6202 GB, free: 3.621 MB / 414.1 MB Notification: Performance of SimCode: time 1.022e-06/0.6276, allocations: 0 / 0.6202 GB, free: 3.621 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07797/0.7056, allocations: 47.46 MB / 0.6665 GB, free: 4.145 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.324/10.03, allocations: 8.062 kB / 0.6665 GB, free: 4.137 MB / 462.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.JointUSR.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.JointUSR.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.JointUSR.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.JointUSR.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.JointUSR_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_3_2_3_ModelicaTest_MultiBody_Joints_JointUSR.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.JointUSR.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.JointUSR_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/JointUSR/JointUSR.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.JointUSR.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches