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.001757/0.001757, allocations: 117.2 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.002093/0.002093, 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.454/1.454, allocations: 222.9 MB / 242.4 MB, free: 15.08 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.2231/0.2231, allocations: 44.19 MB / 336.8 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001887/0.001887, allocations: 67.88 kB / 470.1 MB, free: 13.67 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3625/0.3644, allocations: 60.82 MB / 0.5184 GB, free: 3.289 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointUPS2): time 0.01364/0.3781, allocations: 11.97 MB / 0.5301 GB, free: 10.79 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01095/0.3891, allocations: 4.363 MB / 0.5344 GB, free: 7.527 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002703/0.3918, allocations: 75.47 kB / 0.5345 GB, free: 7.512 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006003/0.3978, allocations: 2.767 MB / 0.5372 GB, free: 5.637 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006391/0.4043, allocations: 2.032 MB / 0.5391 GB, free: 4.191 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002567/0.4069, allocations: 1.01 MB / 0.5401 GB, free: 3.52 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.008464/0.4154, allocations: 5.287 MB / 0.5453 GB, free: 0.5586 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004602/0.42, allocations: 3.443 MB / 0.5487 GB, free: 13.07 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003417/0.4234, allocations: 1.752 MB / 0.5504 GB, free: 11.31 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003676/0.4271, allocations: 2.445 MB / 0.5528 GB, free: 8.855 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009459/0.4281, allocations: 368 kB / 0.5531 GB, free: 8.496 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002957/0.4311, allocations: 1.42 MB / 0.5545 GB, free: 7.074 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002311/0.4334, allocations: 2.186 MB / 0.5566 GB, free: 4.883 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003416/0.4368, allocations: 2.571 MB / 0.5591 GB, free: 2.297 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.011/0.4479, allocations: 8.285 MB / 0.5672 GB, free: 9.977 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.143e-06/0.4479, allocations: 0 / 0.5672 GB, free: 9.977 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.4479, allocations: 0 / 0.5672 GB, free: 9.977 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002852/0.4482, allocations: 3.938 kB / 0.5672 GB, free: 9.973 MB / 430.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.01662/0.4648, allocations: 6.044 MB / 0.5731 GB, free: 3.848 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.369e-05/0.4649, allocations: 8.031 kB / 0.5731 GB, free: 3.84 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002229/0.4671, allocations: 0.7946 MB / 0.5739 GB, free: 3.035 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09625/0.5634, allocations: 7.254 MB / 0.581 GB, free: 11.77 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00872/0.5722, allocations: 3.82 MB / 0.5847 GB, free: 7.891 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002785/0.5725, allocations: 258.8 kB / 0.585 GB, free: 7.637 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001417/0.5739, allocations: 347.7 kB / 0.5853 GB, free: 7.297 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02412/0.598, allocations: 12.29 MB / 0.5973 GB, free: 10.2 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001722/0.5982, allocations: 59.53 kB / 0.5974 GB, free: 10.14 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005099/0.5988, allocations: 163.8 kB / 0.5975 GB, free: 9.977 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004215/0.603, allocations: 2.385 MB / 0.5999 GB, free: 7.59 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0238/0.6268, allocations: 10.69 MB / 0.6103 GB, free: 12.88 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06993/0.6968, allocations: 48.64 MB / 0.6578 GB, free: 10.83 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01615/0.713, allocations: 5.865 MB / 0.6635 GB, free: 4.805 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004467/0.7175, allocations: 3.127 MB / 0.6666 GB, free: 1.672 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02041/0.7379, allocations: 13.02 MB / 0.6793 GB, free: 4.316 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.224e-05/0.738, allocations: 55.81 kB / 0.6793 GB, free: 4.254 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=193): time 4.93e-06/0.738, allocations: 4 kB / 0.6793 GB, free: 4.25 MB / 0.5294 GB Notification: Performance of matching and sorting (n=254): time 0.374/1.112, allocations: 38.94 MB / 0.7174 GB, free: 171.1 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.672e-05/1.112, allocations: 210.2 kB / 0.7176 GB, free: 170.9 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006307/1.118, allocations: 4.399 MB / 0.7219 GB, free: 169.5 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0005485/1.119, allocations: 63.88 kB / 0.7219 GB, free: 169.4 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001829/1.121, allocations: 3.568 MB / 0.7254 GB, free: 167.7 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001055/1.122, allocations: 0.9908 MB / 0.7264 GB, free: 167.1 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001996/1.124, allocations: 1.377 MB / 0.7277 GB, free: 166.4 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.07e-05/1.124, allocations: 305.1 kB / 0.728 GB, free: 166.1 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004633/1.129, allocations: 3.115 MB / 0.7311 GB, free: 165 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00696/1.136, allocations: 7.044 MB / 0.7379 GB, free: 158.7 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01102/1.147, allocations: 10.97 MB / 0.7487 GB, free: 150.2 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002036/1.147, allocations: 39.34 kB / 0.7487 GB, free: 150.2 MB / 0.5606 GB Notification: Performance of matching and sorting (n=886) (initialization): time 0.02419/1.171, allocations: 12.68 MB / 0.7611 GB, free: 142.3 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002173/1.171, allocations: 67.98 kB / 0.7611 GB, free: 142.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000296/1.172, allocations: 136 kB / 0.7613 GB, free: 142.1 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008959/1.181, allocations: 3.236 MB / 0.7644 GB, free: 138.9 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005255/1.186, allocations: 1.544 MB / 0.7659 GB, free: 137.3 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02151/1.207, allocations: 16.61 MB / 0.7822 GB, free: 120.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006665/1.214, allocations: 429.5 kB / 0.7826 GB, free: 120.2 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001688/1.216, allocations: 404 kB / 0.783 GB, free: 119.8 MB / 0.5606 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.005336/1.221, allocations: 2.353 MB / 0.7853 GB, free: 117.5 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001272/1.223, allocations: 429.1 kB / 0.7857 GB, free: 117.1 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01509/1.238, allocations: 7.515 MB / 0.793 GB, free: 109.5 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.638e-05/1.238, allocations: 31.56 kB / 0.793 GB, free: 109.5 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.591e-05/1.238, allocations: 8 kB / 0.793 GB, free: 109.5 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.692e-05/1.238, allocations: 11.95 kB / 0.793 GB, free: 109.5 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02923/1.267, allocations: 15.06 MB / 0.8078 GB, free: 94.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.79e-05/1.267, allocations: 3.5 kB / 0.8078 GB, free: 94.4 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002071/1.269, allocations: 383.4 kB / 0.8081 GB, free: 94.02 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008295/1.278, allocations: 2.927 MB / 0.811 GB, free: 91.09 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005924/1.278, allocations: 40 kB / 0.811 GB, free: 91.05 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01897/1.297, allocations: 14.81 MB / 0.8255 GB, free: 76.09 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/1.297, allocations: 4 kB / 0.8255 GB, free: 76.09 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0192/1.316, allocations: 11.5 MB / 0.8367 GB, free: 64.52 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001152/1.318, allocations: 474 kB / 0.8372 GB, free: 64.03 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001397/1.319, allocations: 40 kB / 0.8372 GB, free: 63.99 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003102/1.322, allocations: 191.7 kB / 0.8374 GB, free: 63.8 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008694/1.323, allocations: 145.8 kB / 0.8375 GB, free: 63.66 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004357/1.324, allocations: 71.03 kB / 0.8376 GB, free: 63.6 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004839/1.328, allocations: 2.743 MB / 0.8403 GB, free: 60.85 MB / 0.5606 GB Notification: Performance of sort global known variables: time 6.01e-07/1.328, allocations: 4 kB / 0.8403 GB, free: 60.85 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.007847/1.336, allocations: 1.309 MB / 0.8416 GB, free: 59.54 MB / 0.5606 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.02028/1.357, allocations: 12.18 MB / 0.8534 GB, free: 47.29 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01271/1.369, allocations: 7.862 MB / 0.8611 GB, free: 39.43 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.784e-06/1.369, allocations: 0 / 0.8611 GB, free: 39.43 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.004988/1.374, allocations: 3.142 MB / 0.8642 GB, free: 36.29 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004882/1.379, allocations: 0.5091 MB / 0.8647 GB, free: 35.79 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1083/1.488, allocations: 60.75 MB / 0.924 GB, free: 0.7539 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006948/1.495, allocations: 3.662 MB / 0.9276 GB, free: 13.06 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.006143/1.501, allocations: 2.176 MB / 0.9297 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00434/1.505, allocations: 2.218 MB / 0.9319 GB, free: 8.66 MB / 0.6075 GB Notification: Performance of SimCode: time 8.92e-07/1.505, allocations: 0 / 0.9319 GB, free: 8.66 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3712/1.876, allocations: 94.36 MB / 1.024 GB, free: 143.2 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 29.14/31.02, allocations: 7.438 kB / 1.024 GB, free: 143.2 MB / 0.6075 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