Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.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.Revolute2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Revolute2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Revolute2",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.00131/0.001315, allocations: 104.5 kB / 17.63 MB, free: 5.344 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.001433/0.001434, allocations: 192 kB / 18.56 MB, free: 4.434 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.416/1.416, allocations: 222.9 MB / 242.3 MB, free: 15.16 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.208/0.208, allocations: 44.19 MB / 336.6 MB, free: 2.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001289/0.001289, allocations: 73.27 kB / 408.5 MB, free: 27.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1241/0.1254, allocations: 60.82 MB / 469.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.01787/0.1433, allocations: 18.2 MB / 487.6 MB, free: 11.98 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0118/0.1551, allocations: 5.28 MB / 492.8 MB, free: 6.684 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003305/0.1585, allocations: 107.8 kB / 492.9 MB, free: 6.578 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006004/0.1645, allocations: 3.06 MB / 496 MB, free: 3.508 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006295/0.1709, allocations: 2.576 MB / 498.6 MB, free: 0.9219 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002538/0.1734, allocations: 1.03 MB / 499.6 MB, free: 15.89 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01009/0.1836, allocations: 7.467 MB / 0.4952 GB, free: 8.41 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007869/0.1915, allocations: 4.179 MB / 0.4993 GB, free: 4.18 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004685/0.1962, allocations: 2.254 MB / 0.5015 GB, free: 1.918 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2391/0.4353, allocations: 3.232 MB / 0.5046 GB, free: 17.85 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001895/0.4372, allocations: 451.5 kB / 0.5051 GB, free: 17.85 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003409/0.4407, allocations: 1.306 MB / 0.5063 GB, free: 17.85 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003335/0.444, allocations: 2.829 MB / 0.5091 GB, free: 17.85 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00609/0.4501, allocations: 3.241 MB / 0.5123 GB, free: 16.95 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01484/0.465, allocations: 9.755 MB / 0.5218 GB, free: 15.58 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.935e-06/0.4651, allocations: 1.094 kB / 0.5218 GB, free: 15.58 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.735e-06/0.4651, allocations: 1.406 kB / 0.5218 GB, free: 15.58 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0005672/0.4656, allocations: 0 / 0.5218 GB, free: 15.58 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: 2169 * Number of variables: 2169 Notification: Performance of Generate backend data structure: time 0.02482/0.4905, allocations: 7.33 MB / 0.529 GB, free: 11.78 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.445e-05/0.4905, allocations: 10.5 kB / 0.529 GB, free: 11.78 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002923/0.4935, allocations: 1.01 MB / 0.5299 GB, free: 11.14 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02923/0.5227, allocations: 5.613 MB / 0.5354 GB, free: 8.371 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01112/0.5339, allocations: 5.23 MB / 0.5405 GB, free: 5.586 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002391/0.5342, allocations: 319.9 kB / 0.5408 GB, free: 5.488 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001744/0.5359, allocations: 446.3 kB / 0.5413 GB, free: 5.375 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02923/0.5652, allocations: 15.51 MB / 0.5564 GB, free: 6.895 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003578/0.5656, allocations: 59.77 kB / 0.5565 GB, free: 6.855 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001244/0.5668, allocations: 206.3 kB / 0.5567 GB, free: 6.711 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007187/0.574, allocations: 3.378 MB / 0.56 GB, free: 3.367 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03465/0.6087, allocations: 14.69 MB / 0.5743 GB, free: 4.852 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09448/0.7032, allocations: 55.08 MB / 0.6281 GB, free: 13.38 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01925/0.7225, allocations: 8.14 MB / 0.6361 GB, free: 5.02 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006728/0.7293, allocations: 4.775 MB / 0.6407 GB, free: 240 kB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00226/0.7316, allocations: 2.206 MB / 0.6429 GB, free: 13.66 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.769e-05/0.7317, allocations: 68.45 kB / 0.6429 GB, free: 13.59 MB / 494.1 MB Notification: Performance of pre-optimization done (n=367): time 8.145e-06/0.7317, allocations: 0 / 0.6429 GB, free: 13.59 MB / 494.1 MB Notification: Performance of matching and sorting (n=419): time 0.1193/0.851, allocations: 39.57 MB / 0.6816 GB, free: 6.07 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001107/0.8511, allocations: 116 kB / 0.6817 GB, free: 5.938 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008857/0.86, allocations: 4.31 MB / 0.6859 GB, free: 1.609 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.001406/0.8615, allocations: 92.98 kB / 0.686 GB, free: 1.516 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.003358/0.8648, allocations: 3.83 MB / 0.6897 GB, free: 13.68 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.003111/0.868, allocations: 1.481 MB / 0.6912 GB, free: 12.21 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003466/0.8715, allocations: 1.516 MB / 0.6927 GB, free: 10.69 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001199/0.8716, allocations: 301.1 kB / 0.6929 GB, free: 10.39 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006721/0.8783, allocations: 3.949 MB / 0.6968 GB, free: 6.441 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2719/1.15, allocations: 7.692 MB / 0.7043 GB, free: 180.3 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01728/1.168, allocations: 12.65 MB / 0.7167 GB, free: 173.6 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001999/1.168, allocations: 37.94 kB / 0.7167 GB, free: 173.6 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1008) (initialization): time 0.02712/1.195, allocations: 14.18 MB / 0.7305 GB, free: 169.1 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.603e-05/1.195, allocations: 58.69 kB / 0.7306 GB, free: 169.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001542/1.195, allocations: 128.9 kB / 0.7307 GB, free: 169.1 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007169/1.202, allocations: 2.683 MB / 0.7333 GB, free: 168.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006752/1.209, allocations: 1.763 MB / 0.7351 GB, free: 168.6 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0172/1.226, allocations: 15.22 MB / 0.7499 GB, free: 157.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007458/1.234, allocations: 490.9 kB / 0.7504 GB, free: 157 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0021/1.236, allocations: 428.3 kB / 0.7508 GB, free: 156.6 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 583 * Number of states: 0 () * Number of discrete variables: 50 (axis.arrowLine.twoHeadedArrow,axis.headAtOrigin,bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],axis.color[3],axis.color[2],axis.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 (911): * Single equations (assignments): 903 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(6,32,69.4%), (1,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.007415/1.243, allocations: 2.873 MB / 0.7536 GB, free: 154.2 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001053/1.244, allocations: 459 kB / 0.754 GB, free: 154 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01666/1.261, allocations: 10.57 MB / 0.7644 GB, free: 144.3 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.81e-05/1.261, allocations: 63.94 kB / 0.7644 GB, free: 144.2 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.197e-05/1.261, allocations: 12 kB / 0.7644 GB, free: 144.2 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.995e-05/1.261, allocations: 19.92 kB / 0.7645 GB, free: 144.2 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03435/1.296, allocations: 21.33 MB / 0.7853 GB, free: 122.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.251e-05/1.296, allocations: 12 kB / 0.7853 GB, free: 122.7 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003429/1.299, allocations: 0.685 MB / 0.786 GB, free: 122 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00669/1.306, allocations: 2.49 MB / 0.7884 GB, free: 119.5 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008672/1.307, allocations: 83.98 kB / 0.7885 GB, free: 119.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01487/1.322, allocations: 13.82 MB / 0.802 GB, free: 105.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.355e-06/1.322, allocations: 20 kB / 0.802 GB, free: 105.4 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02259/1.344, allocations: 15.13 MB / 0.8168 GB, free: 90.09 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001368/1.346, allocations: 499 kB / 0.8173 GB, free: 89.58 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00184/1.348, allocations: 75.98 kB / 0.8173 GB, free: 89.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00383/1.351, allocations: 307.5 kB / 0.8176 GB, free: 89.2 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001345/1.353, allocations: 262 kB / 0.8179 GB, free: 88.95 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003982/1.353, allocations: 112 kB / 0.818 GB, free: 88.84 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.00494/1.358, allocations: 2.718 MB / 0.8206 GB, free: 86.12 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.8e-07/1.358, allocations: 0 / 0.8206 GB, free: 86.12 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01012/1.368, allocations: 1.639 MB / 0.8222 GB, free: 84.49 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 7 (revolute.phi,revolute.w,constantSpeed.phi,revolute2.phi,revolute2.w,revolute3.phi,revolute3.w) * 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 (334): * Single equations (assignments): 326 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,9,100.0%), (6,29,69.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.02399/1.392, allocations: 15.82 MB / 0.8377 GB, free: 68.4 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.03101/1.423, allocations: 19.71 MB / 0.8569 GB, free: 48.68 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.755e-05/1.423, allocations: 128 / 0.8569 GB, free: 48.68 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.006557/1.43, allocations: 4.311 MB / 0.8611 GB, free: 44.34 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004914/1.435, allocations: 0.7333 MB / 0.8619 GB, free: 43.62 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3367/1.772, allocations: 79.89 MB / 0.9399 GB, free: 156.4 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00502/1.777, allocations: 4.542 MB / 0.9443 GB, free: 152.9 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005769/1.783, allocations: 2.714 MB / 0.947 GB, free: 150.8 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004025/1.787, allocations: 2.831 MB / 0.9497 GB, free: 148 MB / 0.5294 GB Notification: Performance of SimCode: time 1.432e-06/1.787, allocations: 0 / 0.9497 GB, free: 148 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1653/1.952, allocations: 117.2 MB / 1.064 GB, free: 31.39 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.31/14.26, allocations: 0 / 1.064 GB, free: 31.39 MB / 0.5294 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2_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_Revolute2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Revolute2/Revolute2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches