Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute.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.Revolute,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Revolute",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Revolute",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.001448/0.001448, allocations: 113.3 kB / 17.78 MB, free: 5.281 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.001456/0.001456, allocations: 179.9 kB / 18.71 MB, free: 4.363 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.497/1.497, allocations: 222.9 MB / 242.4 MB, free: 15.14 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.2306/0.2306, allocations: 44.18 MB / 336.8 MB, free: 2.66 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001953/0.001954, allocations: 67.89 kB / 470.1 MB, free: 13.64 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3673/0.3693, allocations: 60.82 MB / 0.5184 GB, free: 3.273 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute): time 0.01464/0.384, allocations: 12.33 MB / 0.5305 GB, free: 10.52 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01027/0.3943, allocations: 3.922 MB / 0.5343 GB, free: 7.629 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002921/0.3973, allocations: 64.59 kB / 0.5344 GB, free: 7.617 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004092/0.4014, allocations: 1.315 MB / 0.5356 GB, free: 6.715 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005665/0.4072, allocations: 1.753 MB / 0.5374 GB, free: 5.523 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001765/0.409, allocations: 491.2 kB / 0.5378 GB, free: 5.219 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.006793/0.4158, allocations: 3.596 MB / 0.5413 GB, free: 3.285 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004176/0.42, allocations: 2.009 MB / 0.5433 GB, free: 2.027 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003261/0.4233, allocations: 1.194 MB / 0.5445 GB, free: 1.34 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003864/0.4272, allocations: 1.721 MB / 0.5461 GB, free: 15.61 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001117/0.4284, allocations: 236 kB / 0.5464 GB, free: 15.38 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003261/0.4317, allocations: 0.9516 MB / 0.5473 GB, free: 14.43 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00253/0.4343, allocations: 1.589 MB / 0.5489 GB, free: 12.84 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00355/0.4378, allocations: 1.91 MB / 0.5507 GB, free: 10.91 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009045/0.4469, allocations: 6.278 MB / 0.5569 GB, free: 4.613 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.264e-06/0.447, allocations: 0 / 0.5569 GB, free: 4.613 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.225e-06/0.447, allocations: 0 / 0.5569 GB, free: 4.613 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002154/0.4472, allocations: 0 / 0.5569 GB, free: 4.613 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: 1528 * Number of variables: 1528 Notification: Performance of Generate backend data structure: time 0.009558/0.4568, allocations: 4.284 MB / 0.561 GB, free: 260 kB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.047e-05/0.4568, allocations: 8.031 kB / 0.561 GB, free: 252 kB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001584/0.4584, allocations: 0.7122 MB / 0.5617 GB, free: 15.52 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01136/0.4698, allocations: 3.11 MB / 0.5648 GB, free: 12.41 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004966/0.4748, allocations: 2.213 MB / 0.5669 GB, free: 10.14 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002172/0.4751, allocations: 189 kB / 0.5671 GB, free: 9.957 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001149/0.4763, allocations: 247.8 kB / 0.5674 GB, free: 9.715 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01906/0.4953, allocations: 10.49 MB / 0.5776 GB, free: 14.79 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001109/0.4955, allocations: 27.7 kB / 0.5776 GB, free: 14.77 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000744/0.4962, allocations: 123.8 kB / 0.5777 GB, free: 14.64 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004685/0.5009, allocations: 2.557 MB / 0.5802 GB, free: 12.09 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02086/0.5218, allocations: 9.915 MB / 0.5899 GB, free: 2.16 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05618/0.5781, allocations: 34.34 MB / 0.6235 GB, free: 15 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01015/0.5883, allocations: 5.17 MB / 0.6285 GB, free: 9.598 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003445/0.5918, allocations: 2.296 MB / 0.6307 GB, free: 7.301 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001904/0.5937, allocations: 1.876 MB / 0.6326 GB, free: 5.094 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.486e-05/0.5938, allocations: 60.55 kB / 0.6326 GB, free: 5.023 MB / 494.1 MB Notification: Performance of pre-optimization done (n=229): time 4.939e-06/0.5938, allocations: 0 / 0.6326 GB, free: 5.023 MB / 494.1 MB Notification: Performance of matching and sorting (n=235): time 0.03697/0.6308, allocations: 14.06 MB / 0.6464 GB, free: 6.914 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.424e-05/0.6309, allocations: 69.41 kB / 0.6464 GB, free: 6.832 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004522/0.6354, allocations: 2.652 MB / 0.649 GB, free: 4.16 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.000478/0.6359, allocations: 53.7 kB / 0.6491 GB, free: 4.102 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002411/0.6384, allocations: 2.745 MB / 0.6518 GB, free: 1.328 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001329/0.6397, allocations: 0.8875 MB / 0.6526 GB, free: 444 kB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002179/0.6419, allocations: 1.041 MB / 0.6536 GB, free: 15.38 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001274/0.6421, allocations: 309.1 kB / 0.6539 GB, free: 15.08 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003926/0.646, allocations: 2.196 MB / 0.6561 GB, free: 12.88 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006583/0.6526, allocations: 5.059 MB / 0.661 GB, free: 6.41 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01125/0.6639, allocations: 7.965 MB / 0.6688 GB, free: 13.04 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.00011/0.6641, allocations: 31.94 kB / 0.6688 GB, free: 13.01 MB / 0.5294 GB Notification: Performance of matching and sorting (n=691) (initialization): time 0.0163/0.6804, allocations: 7.873 MB / 0.6765 GB, free: 5.129 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.352e-05/0.6805, allocations: 48 kB / 0.6766 GB, free: 5.082 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001398/0.6807, allocations: 100 kB / 0.6767 GB, free: 4.984 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002557/0.6832, allocations: 0.8011 MB / 0.6774 GB, free: 4.18 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004299/0.6876, allocations: 1.181 MB / 0.6786 GB, free: 2.996 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006843/0.6944, allocations: 4.519 MB / 0.683 GB, free: 14.34 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003756/0.6983, allocations: 291.8 kB / 0.6833 GB, free: 14.05 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001045/0.6993, allocations: 299.9 kB / 0.6836 GB, free: 13.76 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 454 * Number of states: 0 () * Number of discrete variables: 29 (axis.arrowLine.twoHeadedArrow,axis.headAtOrigin,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 (631): * Single equations (assignments): 624 * Array equations: 6 * 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 {(1,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004738/0.7041, allocations: 2.016 MB / 0.6855 GB, free: 11.73 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007514/0.7049, allocations: 286.1 kB / 0.6858 GB, free: 11.45 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01033/0.7152, allocations: 4.718 MB / 0.6904 GB, free: 6.703 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001224/0.7154, allocations: 51.97 kB / 0.6905 GB, free: 6.652 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.77e-05/0.7154, allocations: 3.938 kB / 0.6905 GB, free: 6.648 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.339e-05/0.7155, allocations: 11.97 kB / 0.6905 GB, free: 6.637 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0213/0.7368, allocations: 10.5 MB / 0.7007 GB, free: 11.97 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.331e-05/0.7369, allocations: 8 kB / 0.7007 GB, free: 11.96 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001748/0.7386, allocations: 363.4 kB / 0.7011 GB, free: 11.61 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002206/0.7408, allocations: 0.6567 MB / 0.7017 GB, free: 10.95 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003457/0.7412, allocations: 43.98 kB / 0.7018 GB, free: 10.9 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005621/0.7468, allocations: 3.902 MB / 0.7056 GB, free: 6.859 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.036e-05/0.7469, allocations: 11.94 kB / 0.7056 GB, free: 6.848 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01239/0.7593, allocations: 7.157 MB / 0.7126 GB, free: 15.57 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007667/0.7601, allocations: 315.3 kB / 0.7129 GB, free: 15.24 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005931/0.7607, allocations: 47.98 kB / 0.7129 GB, free: 15.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001556/0.7623, allocations: 135.8 kB / 0.7131 GB, free: 15.06 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005343/0.7628, allocations: 136.9 kB / 0.7132 GB, free: 14.93 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002382/0.7631, allocations: 67.98 kB / 0.7133 GB, free: 14.86 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.003035/0.7661, allocations: 1.624 MB / 0.7148 GB, free: 13.23 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.6e-07/0.7662, allocations: 3.938 kB / 0.7148 GB, free: 13.23 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.005084/0.7712, allocations: 0.9257 MB / 0.7157 GB, free: 12.3 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 30 * Number of states: 2 (revolute.phi,revolute.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 (178): * Single equations (assignments): 171 * Array equations: 6 * 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 {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01357/0.7848, allocations: 7.811 MB / 0.7234 GB, free: 4.371 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.2665/1.051, allocations: 5.37 MB / 0.7286 GB, free: 190.2 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.366e-05/1.051, allocations: 0 / 0.7286 GB, free: 190.2 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.003726/1.055, allocations: 2.02 MB / 0.7306 GB, free: 190.1 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002982/1.058, allocations: 370.6 kB / 0.7309 GB, free: 190 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05855/1.117, allocations: 39.71 MB / 0.7697 GB, free: 160.3 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004651/1.122, allocations: 3.16 MB / 0.7728 GB, free: 157.2 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.004007/1.126, allocations: 1.961 MB / 0.7747 GB, free: 155.2 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002642/1.128, allocations: 1.714 MB / 0.7764 GB, free: 153.5 MB / 0.5762 GB Notification: Performance of SimCode: time 1.072e-06/1.128, allocations: 0 / 0.7764 GB, free: 153.5 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09263/1.221, allocations: 54.51 MB / 0.8296 GB, free: 99.29 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.58/22.8, allocations: 8.094 kB / 0.8296 GB, free: 99.29 MB / 0.5762 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute_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_Revolute.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Revolute/Revolute.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches