Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_MultiBody_Joints_Revolute2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute2,fileNamePrefix="ModelicaTest_3_2_3_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.001412/0.001412, allocations: 106 kB / 16.41 MB, free: 6.516 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.001488/0.001488, allocations: 185.5 kB / 17.34 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.565/1.565, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2194/0.2194, allocations: 43.51 MB / 314.1 MB, free: 460 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002019/0.002019, allocations: 74.02 kB / 441.3 MB, free: 6.137 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1216/0.1236, allocations: 57.79 MB / 499.1 MB, free: 12.27 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.02311/0.1468, allocations: 18.61 MB / 0.5056 GB, free: 9.578 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01305/0.1599, allocations: 5.355 MB / 0.5108 GB, free: 4.207 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003952/0.1639, allocations: 107.8 kB / 0.5109 GB, free: 4.102 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00707/0.1711, allocations: 3.075 MB / 0.5139 GB, free: 1.016 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008/0.1791, allocations: 2.618 MB / 0.5165 GB, free: 14.38 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002903/0.182, allocations: 1.033 MB / 0.5175 GB, free: 13.35 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01255/0.1946, allocations: 7.395 MB / 0.5247 GB, free: 5.938 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008445/0.2031, allocations: 4.257 MB / 0.5289 GB, free: 1.617 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2619/0.465, allocations: 2.293 MB / 0.5311 GB, free: 8.727 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00622/0.4713, allocations: 3.275 MB / 0.5343 GB, free: 8.727 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002552/0.4739, allocations: 457.4 kB / 0.5347 GB, free: 8.727 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00483/0.4787, allocations: 1.303 MB / 0.536 GB, free: 8.727 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005841/0.4846, allocations: 2.879 MB / 0.5388 GB, free: 8.441 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009354/0.494, allocations: 3.307 MB / 0.5421 GB, free: 7.266 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01987/0.5139, allocations: 10.31 MB / 0.5521 GB, free: 5.605 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.566e-06/0.514, allocations: 0 / 0.5521 GB, free: 5.605 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.514, allocations: 1 kB / 0.5521 GB, free: 5.605 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004825/0.5145, allocations: 0 / 0.5521 GB, free: 5.605 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: 2212 * Number of variables: 2212 Notification: Performance of Generate backend data structure: time 0.03027/0.5448, allocations: 7.655 MB / 0.5596 GB, free: 2.137 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.534e-05/0.5449, allocations: 13.45 kB / 0.5596 GB, free: 2.133 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006132/0.551, allocations: 1.032 MB / 0.5606 GB, free: 1.613 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03203/0.5831, allocations: 5.649 MB / 0.5661 GB, free: 14.8 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01668/0.5998, allocations: 5.946 MB / 0.572 GB, free: 11.7 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005255/0.6004, allocations: 321.6 kB / 0.5723 GB, free: 11.61 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003495/0.6039, allocations: 436.6 kB / 0.5727 GB, free: 11.5 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04324/0.6472, allocations: 15.74 MB / 0.588 GB, free: 13.59 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003211/0.6475, allocations: 64.75 kB / 0.5881 GB, free: 13.55 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001156/0.6487, allocations: 199.7 kB / 0.5883 GB, free: 13.41 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007236/0.656, allocations: 3.468 MB / 0.5917 GB, free: 9.973 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03683/0.6928, allocations: 14.79 MB / 0.6061 GB, free: 11.36 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.117/0.8098, allocations: 55.74 MB / 0.6606 GB, free: 3.27 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02168/0.8316, allocations: 8.142 MB / 0.6685 GB, free: 10.9 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009354/0.841, allocations: 4.78 MB / 0.6732 GB, free: 6.121 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002812/0.8438, allocations: 2.201 MB / 0.6753 GB, free: 3.551 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.648e-05/0.844, allocations: 76.44 kB / 0.6754 GB, free: 3.469 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=367): time 8.166e-06/0.844, allocations: 0 / 0.6754 GB, free: 3.469 MB / 0.5137 GB Notification: Performance of matching and sorting (n=419): time 0.1294/0.9734, allocations: 39.91 MB / 0.7144 GB, free: 11.62 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001151/0.9735, allocations: 116 kB / 0.7145 GB, free: 11.49 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007647/0.9812, allocations: 4.421 MB / 0.7188 GB, free: 7.059 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001374/0.9826, allocations: 88.83 kB / 0.7189 GB, free: 6.969 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.003812/0.9864, allocations: 4.043 MB / 0.7228 GB, free: 2.93 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.002815/0.9892, allocations: 1.56 MB / 0.7244 GB, free: 1.391 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003155/0.9924, allocations: 1.544 MB / 0.7259 GB, free: 15.84 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001544/0.9926, allocations: 305.1 kB / 0.7262 GB, free: 15.54 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008026/1.001, allocations: 3.954 MB / 0.73 GB, free: 11.59 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01365/1.014, allocations: 7.769 MB / 0.7376 GB, free: 2.066 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02317/1.038, allocations: 12.73 MB / 0.75 GB, free: 4.016 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001364/1.038, allocations: 44 kB / 0.7501 GB, free: 3.973 MB / 0.5919 GB Notification: Performance of matching and sorting (n=1017) (initialization): time 0.346/1.384, allocations: 14.26 MB / 0.764 GB, free: 202.9 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002929/1.384, allocations: 61.55 kB / 0.7641 GB, free: 202.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005676/1.385, allocations: 129.9 kB / 0.7642 GB, free: 202.9 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01378/1.399, allocations: 2.677 MB / 0.7668 GB, free: 202.9 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01055/1.409, allocations: 1.781 MB / 0.7685 GB, free: 202.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02759/1.437, allocations: 15.24 MB / 0.7834 GB, free: 196.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01183/1.449, allocations: 498.6 kB / 0.7839 GB, free: 195.9 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003224/1.452, allocations: 431.1 kB / 0.7843 GB, free: 195.9 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 592 * Number of states: 0 () * Number of discrete variables: 48 (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 (920): * Single equations (assignments): 912 * 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.01202/1.464, allocations: 2.918 MB / 0.7872 GB, free: 194.7 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001751/1.466, allocations: 491.6 kB / 0.7876 GB, free: 194.7 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01965/1.485, allocations: 10.57 MB / 0.7979 GB, free: 189.2 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.475e-05/1.486, allocations: 64.95 kB / 0.798 GB, free: 189.1 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.392e-05/1.486, allocations: 19 kB / 0.798 GB, free: 189.1 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.331e-05/1.486, allocations: 21 kB / 0.798 GB, free: 189.1 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03851/1.524, allocations: 21.31 MB / 0.8189 GB, free: 168.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.656e-05/1.524, allocations: 16.06 kB / 0.8189 GB, free: 168.4 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003504/1.528, allocations: 0.6825 MB / 0.8195 GB, free: 167.7 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007111/1.535, allocations: 2.486 MB / 0.822 GB, free: 165.2 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00144/1.536, allocations: 79.98 kB / 0.822 GB, free: 165.1 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01601/1.552, allocations: 13.83 MB / 0.8355 GB, free: 151.1 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.217e-05/1.552, allocations: 19.88 kB / 0.8356 GB, free: 151.1 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0236/1.576, allocations: 15.15 MB / 0.8504 GB, free: 135.7 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003562/1.58, allocations: 1.187 MB / 0.8515 GB, free: 134.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001409/1.581, allocations: 77.47 kB / 0.8516 GB, free: 134.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003114/1.584, allocations: 309.8 kB / 0.8519 GB, free: 134.1 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007217/1.585, allocations: 261.9 kB / 0.8521 GB, free: 133.9 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000304/1.585, allocations: 117.4 kB / 0.8522 GB, free: 133.8 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.004324/1.59, allocations: 2.783 MB / 0.855 GB, free: 131 MB / 0.5919 GB Notification: Performance of sort global known variables: time 2.1e-07/1.59, allocations: 384 / 0.855 GB, free: 131 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.008683/1.598, allocations: 1.65 MB / 0.8566 GB, free: 129.3 MB / 0.5919 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.0233/1.622, allocations: 15.86 MB / 0.8721 GB, free: 113.2 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01509/1.637, allocations: 9.888 MB / 0.8817 GB, free: 103.3 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.06e-05/1.637, allocations: 0 / 0.8817 GB, free: 103.3 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.006154/1.643, allocations: 4.312 MB / 0.8859 GB, free: 98.99 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005004/1.648, allocations: 0.7316 MB / 0.8866 GB, free: 98.27 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1147/1.763, allocations: 71.18 MB / 0.9562 GB, free: 20.98 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007138/1.77, allocations: 4.62 MB / 0.9607 GB, free: 16.32 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.006127/1.776, allocations: 2.736 MB / 0.9633 GB, free: 13.57 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005238/1.781, allocations: 2.912 MB / 0.9662 GB, free: 10.66 MB / 0.5919 GB Notification: Performance of SimCode: time 1.402e-06/1.781, allocations: 4 kB / 0.9662 GB, free: 10.66 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4308/2.212, allocations: 113.9 MB / 1.077 GB, free: 124.4 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.87/24.08, allocations: 11.92 kB / 1.077 GB, free: 124.4 MB / 0.5919 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_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_3_2_3_ModelicaTest_MultiBody_Joints_Revolute2.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/Revolute2/Revolute2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches