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.001366/0.001366, allocations: 113.2 kB / 17.78 MB, free: 5.129 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.001417/0.001417, allocations: 180.2 kB / 18.71 MB, free: 4.207 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.501/1.501, allocations: 222.9 MB / 242.4 MB, free: 15.05 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.237/0.237, allocations: 44.19 MB / 336.8 MB, free: 2.648 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001885/0.001885, allocations: 71.83 kB / 470.1 MB, free: 13.65 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3663/0.3682, allocations: 60.82 MB / 0.5184 GB, free: 3.285 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.02053/0.3887, allocations: 18.2 MB / 0.5362 GB, free: 6.023 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01366/0.4024, allocations: 5.29 MB / 0.5414 GB, free: 1.859 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003413/0.4059, allocations: 110.7 kB / 0.5415 GB, free: 1.84 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006649/0.4125, allocations: 3.057 MB / 0.5445 GB, free: 15.77 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008159/0.4208, allocations: 2.577 MB / 0.547 GB, free: 13.94 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002792/0.4236, allocations: 1.019 MB / 0.548 GB, free: 13.26 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01286/0.4365, allocations: 7.482 MB / 0.5553 GB, free: 6.285 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007048/0.4436, allocations: 4.175 MB / 0.5594 GB, free: 2.059 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005079/0.4487, allocations: 2.254 MB / 0.5616 GB, free: 15.8 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006359/0.4551, allocations: 3.224 MB / 0.5647 GB, free: 12.56 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002021/0.4572, allocations: 456 kB / 0.5651 GB, free: 12.12 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004297/0.4615, allocations: 1.311 MB / 0.5664 GB, free: 10.8 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004593/0.4661, allocations: 2.825 MB / 0.5692 GB, free: 7.973 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007347/0.4735, allocations: 3.247 MB / 0.5724 GB, free: 4.707 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01562/0.4892, allocations: 10.15 MB / 0.5823 GB, free: 10.51 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.175e-06/0.4892, allocations: 0 / 0.5823 GB, free: 10.51 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.4892, allocations: 0 / 0.5823 GB, free: 10.51 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003413/0.4896, allocations: 3.938 kB / 0.5823 GB, free: 10.51 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.02202/0.5116, allocations: 7.513 MB / 0.5896 GB, free: 2.902 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.811e-05/0.5117, allocations: 8.031 kB / 0.5896 GB, free: 2.895 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003438/0.5151, allocations: 1.01 MB / 0.5906 GB, free: 1.875 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03207/0.5472, allocations: 5.648 MB / 0.5961 GB, free: 12.21 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01274/0.56, allocations: 5.328 MB / 0.6013 GB, free: 6.824 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004105/0.5605, allocations: 312.4 kB / 0.6016 GB, free: 6.516 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002007/0.5625, allocations: 447.6 kB / 0.6021 GB, free: 6.078 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04029/0.6028, allocations: 15.52 MB / 0.6172 GB, free: 5.828 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003352/0.6032, allocations: 55.59 kB / 0.6173 GB, free: 5.773 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00167/0.6049, allocations: 199.8 kB / 0.6175 GB, free: 5.578 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00831/0.6132, allocations: 3.384 MB / 0.6208 GB, free: 2.191 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04346/0.6567, allocations: 14.69 MB / 0.6351 GB, free: 3.488 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09835/0.7551, allocations: 54.86 MB / 0.6887 GB, free: 11.45 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0202/0.7754, allocations: 8.154 MB / 0.6966 GB, free: 3.066 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008067/0.7835, allocations: 4.777 MB / 0.7013 GB, free: 14.28 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002661/0.7862, allocations: 2.204 MB / 0.7035 GB, free: 11.68 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001054/0.7863, allocations: 69.08 kB / 0.7035 GB, free: 11.6 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=367): time 1.025e-05/0.7863, allocations: 0 / 0.7035 GB, free: 11.6 MB / 0.5606 GB Notification: Performance of matching and sorting (n=419): time 0.3589/1.145, allocations: 39.69 MB / 0.7423 GB, free: 161.4 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.512e-05/1.145, allocations: 121.1 kB / 0.7424 GB, free: 161.3 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005811/1.151, allocations: 4.327 MB / 0.7466 GB, free: 159.3 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.000751/1.152, allocations: 85.14 kB / 0.7467 GB, free: 159.2 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.00193/1.154, allocations: 3.971 MB / 0.7506 GB, free: 155.8 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001707/1.156, allocations: 1.556 MB / 0.7521 GB, free: 154.3 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003294/1.159, allocations: 1.529 MB / 0.7536 GB, free: 152.8 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.528e-05/1.159, allocations: 309.1 kB / 0.7539 GB, free: 152.5 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004816/1.164, allocations: 3.946 MB / 0.7577 GB, free: 148.5 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006205/1.17, allocations: 7.688 MB / 0.7652 GB, free: 139.1 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01182/1.182, allocations: 12.66 MB / 0.7776 GB, free: 124.7 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.565e-05/1.182, allocations: 36 kB / 0.7776 GB, free: 124.6 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1008) (initialization): time 0.02468/1.207, allocations: 14.19 MB / 0.7915 GB, free: 110.4 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.000162/1.207, allocations: 56 kB / 0.7916 GB, free: 110.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002436/1.207, allocations: 128 kB / 0.7917 GB, free: 110.2 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007582/1.215, allocations: 2.682 MB / 0.7943 GB, free: 107.5 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006527/1.221, allocations: 1.758 MB / 0.796 GB, free: 105.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0181/1.24, allocations: 15.24 MB / 0.8109 GB, free: 90.26 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006638/1.246, allocations: 497.8 kB / 0.8114 GB, free: 89.77 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001493/1.248, allocations: 427.9 kB / 0.8118 GB, free: 89.36 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.005714/1.253, allocations: 2.864 MB / 0.8146 GB, free: 86.48 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00161/1.255, allocations: 492.8 kB / 0.815 GB, free: 86 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01914/1.274, allocations: 10.56 MB / 0.8253 GB, free: 75.39 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.649e-05/1.274, allocations: 63.98 kB / 0.8254 GB, free: 75.32 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.107e-05/1.274, allocations: 8 kB / 0.8254 GB, free: 75.32 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.741e-05/1.274, allocations: 19.94 kB / 0.8254 GB, free: 75.3 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03811/1.313, allocations: 21.22 MB / 0.8462 GB, free: 53.89 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.169e-05/1.313, allocations: 12 kB / 0.8462 GB, free: 53.88 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003662/1.316, allocations: 0.6835 MB / 0.8468 GB, free: 53.2 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007146/1.324, allocations: 2.487 MB / 0.8493 GB, free: 50.7 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009081/1.324, allocations: 83.92 kB / 0.8493 GB, free: 50.62 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01537/1.34, allocations: 13.83 MB / 0.8629 GB, free: 36.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.937e-06/1.34, allocations: 19.88 kB / 0.8629 GB, free: 36.48 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02189/1.362, allocations: 15.13 MB / 0.8777 GB, free: 21.08 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001139/1.363, allocations: 0.5096 MB / 0.8781 GB, free: 20.55 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001487/1.364, allocations: 87.92 kB / 0.8782 GB, free: 20.46 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003438/1.368, allocations: 303 kB / 0.8785 GB, free: 20.17 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001048/1.369, allocations: 262 kB / 0.8788 GB, free: 19.91 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005534/1.37, allocations: 112 kB / 0.8789 GB, free: 19.8 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004269/1.374, allocations: 2.71 MB / 0.8815 GB, free: 17.09 MB / 0.5606 GB Notification: Performance of sort global known variables: time 4.31e-07/1.374, allocations: 0 / 0.8815 GB, free: 17.09 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.008536/1.382, allocations: 1.64 MB / 0.8831 GB, free: 15.45 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.02514/1.408, allocations: 15.85 MB / 0.8986 GB, free: 15.33 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.01858/1.426, allocations: 9.869 MB / 0.9082 GB, free: 5.453 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.216e-05/1.426, allocations: 0 / 0.9082 GB, free: 5.453 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.008678/1.435, allocations: 4.316 MB / 0.9125 GB, free: 1.109 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008301/1.443, allocations: 0.7344 MB / 0.9132 GB, free: 392 kB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3894/1.833, allocations: 70.22 MB / 0.9817 GB, free: 184.2 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00635/1.839, allocations: 4.548 MB / 0.9862 GB, free: 179.6 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.006543/1.846, allocations: 2.718 MB / 0.9888 GB, free: 176.9 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004544/1.85, allocations: 2.827 MB / 0.9916 GB, free: 174.1 MB / 0.6075 GB Notification: Performance of SimCode: time 1.242e-06/1.85, allocations: 0 / 0.9916 GB, free: 174.1 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1763/2.027, allocations: 113.1 MB / 1.102 GB, free: 61.65 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.67/23.7, allocations: 6.797 kB / 1.102 GB, free: 61.64 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