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.00156/0.00156, allocations: 117.2 kB / 17.78 MB, free: 5.258 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.001801/0.001801, 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.364/1.364, allocations: 222.9 MB / 242.4 MB, free: 15.07 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.1995/0.1995, allocations: 44.17 MB / 336.8 MB, free: 2.656 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001206/0.001206, allocations: 67.91 kB / 470.1 MB, free: 13.64 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3288/0.33, allocations: 60.83 MB / 0.5184 GB, free: 3.273 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.01801/0.3481, allocations: 18.19 MB / 0.5362 GB, free: 6.012 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01306/0.3612, allocations: 5.279 MB / 0.5414 GB, free: 1.859 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003561/0.3648, allocations: 110.2 kB / 0.5415 GB, free: 1.84 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005839/0.3706, allocations: 3.065 MB / 0.5445 GB, free: 15.76 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006408/0.3771, allocations: 2.646 MB / 0.547 GB, free: 13.88 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002341/0.3794, allocations: 1.016 MB / 0.548 GB, free: 13.21 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.009527/0.389, allocations: 7.485 MB / 0.5554 GB, free: 6.184 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005465/0.3945, allocations: 4.167 MB / 0.5594 GB, free: 1.965 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003948/0.3985, allocations: 2.274 MB / 0.5616 GB, free: 15.68 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004584/0.4031, allocations: 3.228 MB / 0.5648 GB, free: 12.45 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001392/0.4045, allocations: 455.9 kB / 0.5652 GB, free: 12 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003185/0.4077, allocations: 1.311 MB / 0.5665 GB, free: 10.69 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003572/0.4113, allocations: 2.836 MB / 0.5693 GB, free: 7.844 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005919/0.4172, allocations: 3.247 MB / 0.5724 GB, free: 4.578 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01291/0.4301, allocations: 10.15 MB / 0.5824 GB, free: 10.39 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.524e-06/0.4302, allocations: 4 kB / 0.5824 GB, free: 10.39 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.4302, allocations: 0 / 0.5824 GB, free: 10.39 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003537/0.4306, allocations: 0 / 0.5824 GB, free: 10.39 MB / 446.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.01748/0.4481, allocations: 7.513 MB / 0.5897 GB, free: 2.781 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.356e-05/0.4481, allocations: 12.03 kB / 0.5897 GB, free: 2.77 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002316/0.4504, allocations: 1.017 MB / 0.5907 GB, free: 1.742 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02931/0.4798, allocations: 5.652 MB / 0.5962 GB, free: 12.07 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01172/0.4915, allocations: 5.316 MB / 0.6014 GB, free: 6.699 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002608/0.4918, allocations: 316.4 kB / 0.6017 GB, free: 6.387 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001479/0.4933, allocations: 443.6 kB / 0.6021 GB, free: 5.953 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02591/0.5192, allocations: 15.53 MB / 0.6173 GB, free: 5.699 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001619/0.5194, allocations: 55.59 kB / 0.6174 GB, free: 5.645 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000621/0.5201, allocations: 199.8 kB / 0.6175 GB, free: 5.449 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006039/0.5261, allocations: 3.376 MB / 0.6208 GB, free: 2.07 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02767/0.5538, allocations: 14.69 MB / 0.6352 GB, free: 3.363 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09035/0.6442, allocations: 54.88 MB / 0.6888 GB, free: 11.3 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01791/0.6622, allocations: 8.153 MB / 0.6967 GB, free: 2.922 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006256/0.6685, allocations: 4.769 MB / 0.7014 GB, free: 14.14 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002111/0.6706, allocations: 2.208 MB / 0.7036 GB, free: 11.54 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.093e-05/0.6707, allocations: 65.08 kB / 0.7036 GB, free: 11.46 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=367): time 7.054e-06/0.6707, allocations: 0 / 0.7036 GB, free: 11.46 MB / 0.5606 GB Notification: Performance of matching and sorting (n=419): time 0.3605/1.031, allocations: 39.68 MB / 0.7424 GB, free: 162.7 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.368e-05/1.031, allocations: 114.8 kB / 0.7425 GB, free: 162.6 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005071/1.036, allocations: 4.336 MB / 0.7467 GB, free: 160.5 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.000827/1.037, allocations: 88.14 kB / 0.7468 GB, free: 160.4 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001914/1.039, allocations: 3.967 MB / 0.7507 GB, free: 156.7 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001784/1.041, allocations: 1.55 MB / 0.7522 GB, free: 155.2 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001991/1.043, allocations: 1.536 MB / 0.7537 GB, free: 153.6 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.527e-05/1.043, allocations: 301.1 kB / 0.754 GB, free: 153.3 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004444/1.047, allocations: 3.946 MB / 0.7578 GB, free: 149.4 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006198/1.054, allocations: 7.687 MB / 0.7653 GB, free: 140 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01169/1.065, allocations: 12.66 MB / 0.7777 GB, free: 125.5 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.767e-05/1.066, allocations: 39.98 kB / 0.7777 GB, free: 125.5 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1008) (initialization): time 0.02198/1.088, allocations: 14.2 MB / 0.7916 GB, free: 111.3 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 7.269e-05/1.088, allocations: 67.92 kB / 0.7917 GB, free: 111.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001126/1.088, allocations: 131.9 kB / 0.7918 GB, free: 111.1 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00686/1.095, allocations: 2.676 MB / 0.7944 GB, free: 108.4 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006092/1.101, allocations: 1.758 MB / 0.7961 GB, free: 106.6 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01634/1.117, allocations: 15.23 MB / 0.811 GB, free: 91.12 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006183/1.123, allocations: 487.6 kB / 0.8115 GB, free: 90.64 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001248/1.125, allocations: 427.9 kB / 0.8119 GB, free: 90.23 MB / 0.5606 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.004728/1.129, allocations: 2.873 MB / 0.8147 GB, free: 87.35 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00115/1.13, allocations: 484.8 kB / 0.8151 GB, free: 86.87 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01536/1.146, allocations: 10.57 MB / 0.8255 GB, free: 76.25 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.2e-05/1.146, allocations: 59.98 kB / 0.8255 GB, free: 76.19 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.771e-05/1.146, allocations: 12 kB / 0.8255 GB, free: 76.18 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.594e-05/1.146, allocations: 15.94 kB / 0.8255 GB, free: 76.16 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03345/1.18, allocations: 21.23 MB / 0.8463 GB, free: 54.75 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.409e-05/1.18, allocations: 12 kB / 0.8463 GB, free: 54.74 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003225/1.183, allocations: 0.6786 MB / 0.8469 GB, free: 54.06 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006552/1.189, allocations: 2.483 MB / 0.8494 GB, free: 51.57 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006641/1.19, allocations: 83.98 kB / 0.8495 GB, free: 51.48 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01428/1.204, allocations: 13.83 MB / 0.863 GB, free: 37.37 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.588e-06/1.204, allocations: 15.94 kB / 0.863 GB, free: 37.35 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0201/1.225, allocations: 15.13 MB / 0.8778 GB, free: 21.95 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00122/1.226, allocations: 0.5135 MB / 0.8783 GB, free: 21.41 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008531/1.227, allocations: 83.86 kB / 0.8783 GB, free: 21.33 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002662/1.229, allocations: 307.5 kB / 0.8786 GB, free: 21.03 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006095/1.23, allocations: 261.8 kB / 0.8789 GB, free: 20.77 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002718/1.23, allocations: 116 kB / 0.879 GB, free: 20.66 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003074/1.233, allocations: 2.71 MB / 0.8816 GB, free: 17.95 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.6e-07/1.233, allocations: 0 / 0.8816 GB, free: 17.95 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.00549/1.239, allocations: 1.641 MB / 0.8832 GB, free: 16.31 MB / 0.5606 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.01959/1.258, allocations: 15.86 MB / 0.8987 GB, free: 188 kB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01463/1.273, allocations: 9.86 MB / 0.9083 GB, free: 6.309 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.237e-05/1.273, allocations: 0 / 0.9083 GB, free: 6.309 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.006483/1.28, allocations: 4.32 MB / 0.9126 GB, free: 1.965 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004007/1.284, allocations: 0.7249 MB / 0.9133 GB, free: 1.25 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3415/1.625, allocations: 70.22 MB / 0.9819 GB, free: 187.2 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004743/1.63, allocations: 4.547 MB / 0.9863 GB, free: 182.6 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.005331/1.635, allocations: 2.714 MB / 0.9889 GB, free: 179.9 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003918/1.639, allocations: 2.831 MB / 0.9917 GB, free: 177 MB / 0.6075 GB Notification: Performance of SimCode: time 1.242e-06/1.639, allocations: 0 / 0.9917 GB, free: 177 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1498/1.789, allocations: 113.1 MB / 1.102 GB, free: 64.59 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.55/23.34, allocations: 3.984 kB / 1.102 GB, free: 64.59 MB / 0.6075 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