Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUPS2.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.JointUPS2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointUPS2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUPS2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointUPS2",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.001214/0.001214, 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.001257/0.001257, 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.434/1.434, allocations: 222.9 MB / 242.2 MB, free: 15.22 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.2285/0.2285, allocations: 44.19 MB / 336.6 MB, free: 2.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002492/0.002492, allocations: 61.17 kB / 408.5 MB, free: 27.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1328/0.1353, allocations: 60.82 MB / 469.4 MB, free: 14.28 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointUPS2): time 0.01372/0.1491, allocations: 11.97 MB / 481.3 MB, free: 2.246 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00939/0.1585, allocations: 4.371 MB / 485.7 MB, free: 13.86 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002615/0.1612, allocations: 71.81 kB / 485.8 MB, free: 13.79 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005796/0.167, allocations: 2.764 MB / 488.5 MB, free: 11.02 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007661/0.1747, allocations: 2.034 MB / 490.6 MB, free: 8.98 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002929/0.1777, allocations: 1.006 MB / 491.6 MB, free: 7.973 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0101/0.1878, allocations: 5.29 MB / 496.9 MB, free: 2.672 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006408/0.1943, allocations: 3.44 MB / 0.4886 GB, free: 15.18 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003897/0.1982, allocations: 1.756 MB / 0.4903 GB, free: 13.42 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004444/0.2027, allocations: 2.442 MB / 0.4927 GB, free: 10.97 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001455/0.2042, allocations: 372 kB / 0.493 GB, free: 10.61 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003486/0.2077, allocations: 1.42 MB / 0.4944 GB, free: 9.188 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00322/0.2109, allocations: 2.194 MB / 0.4966 GB, free: 6.988 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005274/0.2162, allocations: 2.571 MB / 0.4991 GB, free: 4.402 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2888/0.505, allocations: 7.982 MB / 0.5069 GB, free: 23.33 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.897e-06/0.5051, allocations: 1.406 kB / 0.5069 GB, free: 23.33 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.825e-06/0.5051, allocations: 0 / 0.5069 GB, free: 23.33 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003964/0.5055, allocations: 2.25 kB / 0.5069 GB, free: 23.33 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: 1695 * Number of variables: 1695 Notification: Performance of Generate backend data structure: time 0.02177/0.5273, allocations: 5.905 MB / 0.5126 GB, free: 21.18 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.43e-05/0.5273, allocations: 9.969 kB / 0.5126 GB, free: 21.18 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003606/0.5309, allocations: 0.7967 MB / 0.5134 GB, free: 21.1 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09303/0.624, allocations: 7.211 MB / 0.5205 GB, free: 20.71 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01219/0.6362, allocations: 3.761 MB / 0.5241 GB, free: 19.98 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004032/0.6367, allocations: 251.4 kB / 0.5244 GB, free: 19.97 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002738/0.6394, allocations: 356 kB / 0.5247 GB, free: 19.95 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02889/0.6683, allocations: 12.28 MB / 0.5367 GB, free: 13.04 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003067/0.6687, allocations: 49.03 kB / 0.5368 GB, free: 13.04 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002014/0.6707, allocations: 167.4 kB / 0.5369 GB, free: 12.97 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003993/0.6747, allocations: 2.378 MB / 0.5392 GB, free: 11.04 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0225/0.6973, allocations: 10.7 MB / 0.5497 GB, free: 0.543 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07793/0.7752, allocations: 48.76 MB / 0.5973 GB, free: 15.03 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0162/0.7915, allocations: 5.853 MB / 0.603 GB, free: 9.039 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004675/0.7962, allocations: 3.119 MB / 0.6061 GB, free: 5.914 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02394/0.8202, allocations: 13.01 MB / 0.6188 GB, free: 8.664 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.5e-05/0.8203, allocations: 59.33 kB / 0.6188 GB, free: 8.602 MB / 462.1 MB Notification: Performance of pre-optimization done (n=193): time 6.151e-06/0.8203, allocations: 0 / 0.6188 GB, free: 8.602 MB / 462.1 MB Notification: Performance of matching and sorting (n=254): time 0.1282/0.9485, allocations: 38.7 MB / 0.6566 GB, free: 1.844 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001148/0.9486, allocations: 205.9 kB / 0.6568 GB, free: 1.598 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00844/0.9571, allocations: 4.388 MB / 0.6611 GB, free: 13.19 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.001165/0.9583, allocations: 61.7 kB / 0.6612 GB, free: 13.12 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.00371/0.962, allocations: 3.437 MB / 0.6645 GB, free: 9.703 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001725/0.9638, allocations: 0.9486 MB / 0.6654 GB, free: 8.762 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004227/0.968, allocations: 1.361 MB / 0.6668 GB, free: 7.391 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001067/0.9681, allocations: 305.1 kB / 0.6671 GB, free: 7.09 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005256/0.9734, allocations: 3.109 MB / 0.6701 GB, free: 3.977 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008656/0.9821, allocations: 7.047 MB / 0.677 GB, free: 11.06 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01481/0.9969, allocations: 10.96 MB / 0.6877 GB, free: 14.73 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001659/0.9971, allocations: 40 kB / 0.6877 GB, free: 14.7 MB / 0.5294 GB Notification: Performance of matching and sorting (n=886) (initialization): time 0.03243/1.03, allocations: 12.66 MB / 0.7001 GB, free: 2.223 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002921/1.03, allocations: 64 kB / 0.7001 GB, free: 2.16 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003741/1.03, allocations: 136 kB / 0.7003 GB, free: 2.027 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.302/1.332, allocations: 3.255 MB / 0.7035 GB, free: 186.4 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006612/1.339, allocations: 1.538 MB / 0.705 GB, free: 186.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02561/1.365, allocations: 16.61 MB / 0.7212 GB, free: 180.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007655/1.372, allocations: 432.1 kB / 0.7216 GB, free: 180.2 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001764/1.374, allocations: 405.5 kB / 0.722 GB, free: 180.1 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 626 * Number of states: 0 () * Number of discrete variables: 36 (universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],jointUPS.cylinderColor[3],jointUPS.cylinderColor[2],jointUPS.cylinderColor[1],jointUPS.sphereColor[3],jointUPS.sphereColor[2],jointUPS.sphereColor[1],jointUPS.axisColor[3],jointUPS.axisColor[2],jointUPS.axisColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (808): * Single equations (assignments): 804 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(8,47,54.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005938/1.38, allocations: 2.35 MB / 0.7243 GB, free: 179.1 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001463/1.382, allocations: 405.4 kB / 0.7247 GB, free: 179.1 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0139/1.396, allocations: 7.516 MB / 0.732 GB, free: 176.6 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.563e-05/1.396, allocations: 26.41 kB / 0.732 GB, free: 176.6 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.509e-05/1.396, allocations: 13.81 kB / 0.732 GB, free: 176.6 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.468e-05/1.396, allocations: 12.66 kB / 0.7321 GB, free: 176.6 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0244/1.42, allocations: 15.2 MB / 0.7469 GB, free: 164.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.538e-05/1.42, allocations: 4 kB / 0.7469 GB, free: 164 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001928/1.422, allocations: 383.4 kB / 0.7473 GB, free: 163.7 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007931/1.43, allocations: 2.929 MB / 0.7501 GB, free: 160.8 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004455/1.431, allocations: 43.98 kB / 0.7502 GB, free: 160.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01782/1.448, allocations: 14.78 MB / 0.7646 GB, free: 145.9 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.888e-06/1.448, allocations: 0.75 kB / 0.7646 GB, free: 145.9 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0196/1.468, allocations: 11.48 MB / 0.7758 GB, free: 134.6 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001722/1.47, allocations: 443.7 kB / 0.7762 GB, free: 134.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001485/1.471, allocations: 47.94 kB / 0.7763 GB, free: 134.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003151/1.474, allocations: 187.7 kB / 0.7765 GB, free: 133.9 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007536/1.475, allocations: 145.6 kB / 0.7766 GB, free: 133.8 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001982/1.475, allocations: 68.86 kB / 0.7767 GB, free: 133.7 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003745/1.479, allocations: 2.747 MB / 0.7793 GB, free: 131 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.51e-07/1.479, allocations: 0 / 0.7793 GB, free: 131 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006055/1.485, allocations: 1.315 MB / 0.7806 GB, free: 129.7 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (universal.phi_a,universal.phi_b,universal.w_a,universal.w_b) * 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 (189): * Single equations (assignments): 185 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(6,40,61.1%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01644/1.502, allocations: 12.14 MB / 0.7925 GB, free: 117.5 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0158/1.518, allocations: 10.37 MB / 0.8026 GB, free: 107.1 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 8.316e-06/1.518, allocations: 4 kB / 0.8026 GB, free: 107.1 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004204/1.522, allocations: 3.12 MB / 0.8057 GB, free: 104 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003182/1.525, allocations: 0.517 MB / 0.8062 GB, free: 103.5 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.112/1.637, allocations: 68.21 MB / 0.8728 GB, free: 26.78 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008199/1.645, allocations: 3.67 MB / 0.8764 GB, free: 23.07 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.006599/1.652, allocations: 2.169 MB / 0.8785 GB, free: 20.9 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004847/1.657, allocations: 2.221 MB / 0.8807 GB, free: 18.68 MB / 0.5294 GB Notification: Performance of SimCode: time 1.252e-06/1.657, allocations: 0 / 0.8807 GB, free: 18.68 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4325/2.089, allocations: 98.35 MB / 0.9767 GB, free: 124.6 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.17/14.26, allocations: 2.656 kB / 0.9767 GB, free: 124.6 MB / 0.5294 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUPS2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUPS2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUPS2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUPS2.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUPS2_res.csv --start-time 0 --stop-time 4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0016 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointUPS2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUPS2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUPS2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/JointUPS2/JointUPS2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUPS2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches