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.00122/0.00122, allocations: 111.4 kB / 16.41 MB, free: 6.445 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.001332/0.001332, 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.4/1.4, allocations: 205.1 MB / 223.2 MB, free: 12.25 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.2168/0.2168, allocations: 43.52 MB / 314.1 MB, free: 476 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.001546/0.001546, allocations: 71.83 kB / 441.3 MB, free: 6.164 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1225/0.124, allocations: 57.8 MB / 499.1 MB, free: 12.29 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.02167/0.1457, allocations: 18.61 MB / 0.5056 GB, free: 9.605 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01332/0.1591, allocations: 5.351 MB / 0.5108 GB, free: 4.238 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004194/0.1634, allocations: 111.7 kB / 0.5109 GB, free: 4.129 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0065/0.1699, allocations: 3.067 MB / 0.5139 GB, free: 1.051 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008644/0.1786, allocations: 2.7 MB / 0.5166 GB, free: 14.34 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003004/0.1816, allocations: 1.026 MB / 0.5176 GB, free: 13.31 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01195/0.1936, allocations: 7.41 MB / 0.5248 GB, free: 5.883 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006894/0.2005, allocations: 4.246 MB / 0.5289 GB, free: 1.574 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2937/0.4943, allocations: 2.304 MB / 0.5312 GB, free: 8.727 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006429/0.5008, allocations: 3.283 MB / 0.5344 GB, free: 8.727 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002207/0.503, allocations: 459.8 kB / 0.5348 GB, free: 8.727 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004152/0.5072, allocations: 1.299 MB / 0.5361 GB, free: 8.727 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00575/0.513, allocations: 2.891 MB / 0.5389 GB, free: 8.441 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00846/0.5215, allocations: 3.312 MB / 0.5422 GB, free: 7.266 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02122/0.5427, allocations: 10.31 MB / 0.5522 GB, free: 5.605 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.633e-06/0.5428, allocations: 0 / 0.5522 GB, free: 5.605 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.5428, allocations: 0 / 0.5522 GB, free: 5.605 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0005053/0.5433, allocations: 1.062 kB / 0.5522 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.0279/0.5712, allocations: 7.663 MB / 0.5597 GB, free: 2.16 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.015e-05/0.5713, allocations: 13.98 kB / 0.5597 GB, free: 2.156 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004013/0.5753, allocations: 1.028 MB / 0.5607 GB, free: 1.629 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03095/0.6063, allocations: 5.648 MB / 0.5662 GB, free: 14.82 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01513/0.6214, allocations: 5.948 MB / 0.5721 GB, free: 11.72 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000487/0.622, allocations: 326.9 kB / 0.5724 GB, free: 11.62 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003303/0.6253, allocations: 437.8 kB / 0.5728 GB, free: 11.52 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0401/0.6654, allocations: 15.73 MB / 0.5881 GB, free: 13.61 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000414/0.6659, allocations: 67.16 kB / 0.5882 GB, free: 13.56 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002632/0.6686, allocations: 197.1 kB / 0.5884 GB, free: 13.42 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007291/0.6759, allocations: 3.474 MB / 0.5918 GB, free: 9.984 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03673/0.7126, allocations: 14.79 MB / 0.6062 GB, free: 11.37 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.102/0.8147, allocations: 55.74 MB / 0.6607 GB, free: 3.281 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01995/0.8347, allocations: 8.145 MB / 0.6686 GB, free: 10.91 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007755/0.8425, allocations: 4.777 MB / 0.6733 GB, free: 6.137 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002394/0.8449, allocations: 2.203 MB / 0.6754 GB, free: 3.562 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.091e-05/0.845, allocations: 72.2 kB / 0.6755 GB, free: 3.488 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=367): time 9.487e-06/0.845, allocations: 0 / 0.6755 GB, free: 3.488 MB / 0.5137 GB Notification: Performance of matching and sorting (n=419): time 0.1256/0.9706, allocations: 39.92 MB / 0.7145 GB, free: 11.64 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001294/0.9708, allocations: 124 kB / 0.7146 GB, free: 11.5 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01089/0.9817, allocations: 4.425 MB / 0.7189 GB, free: 7.062 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001248/0.983, allocations: 85.7 kB / 0.719 GB, free: 6.973 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.003702/0.9867, allocations: 4.036 MB / 0.7229 GB, free: 2.941 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.00271/0.9895, allocations: 1.558 MB / 0.7245 GB, free: 1.402 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005485/0.995, allocations: 1.545 MB / 0.726 GB, free: 15.85 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001373/0.9951, allocations: 305.1 kB / 0.7263 GB, free: 15.55 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007513/1.003, allocations: 3.958 MB / 0.7301 GB, free: 11.59 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01071/1.013, allocations: 7.756 MB / 0.7377 GB, free: 2.082 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01855/1.032, allocations: 12.74 MB / 0.7501 GB, free: 4.027 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001355/1.032, allocations: 36 kB / 0.7502 GB, free: 3.992 MB / 0.5919 GB Notification: Performance of matching and sorting (n=1017) (initialization): time 0.3146/1.347, allocations: 14.27 MB / 0.7641 GB, free: 202.7 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002197/1.347, allocations: 60.38 kB / 0.7642 GB, free: 202.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004361/1.347, allocations: 129.7 kB / 0.7643 GB, free: 202.7 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009814/1.357, allocations: 2.673 MB / 0.7669 GB, free: 202.7 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008578/1.366, allocations: 1.779 MB / 0.7686 GB, free: 202.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01854/1.385, allocations: 15.23 MB / 0.7835 GB, free: 195.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007348/1.392, allocations: 496.5 kB / 0.784 GB, free: 195.8 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001542/1.393, allocations: 427.3 kB / 0.7844 GB, free: 195.7 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.007203/1.401, allocations: 2.924 MB / 0.7873 GB, free: 194.5 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001773/1.402, allocations: 493 kB / 0.7877 GB, free: 194.5 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02047/1.423, allocations: 10.57 MB / 0.7981 GB, free: 189.1 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.793e-05/1.423, allocations: 64.55 kB / 0.7981 GB, free: 189.1 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.296e-05/1.423, allocations: 11.94 kB / 0.7981 GB, free: 189.1 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.275e-05/1.423, allocations: 23.17 kB / 0.7981 GB, free: 189.1 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04273/1.466, allocations: 21.32 MB / 0.819 GB, free: 168.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.544e-05/1.466, allocations: 13.69 kB / 0.819 GB, free: 168.4 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003718/1.47, allocations: 0.6825 MB / 0.8196 GB, free: 167.7 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007603/1.477, allocations: 2.49 MB / 0.8221 GB, free: 165.2 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001518/1.479, allocations: 81.31 kB / 0.8222 GB, free: 165.1 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01658/1.496, allocations: 13.82 MB / 0.8357 GB, free: 151.1 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.611e-05/1.496, allocations: 19.88 kB / 0.8357 GB, free: 151.1 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02623/1.522, allocations: 15.15 MB / 0.8505 GB, free: 135.8 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004136/1.526, allocations: 1.19 MB / 0.8516 GB, free: 134.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002308/1.528, allocations: 75.98 kB / 0.8517 GB, free: 134.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004465/1.533, allocations: 304.3 kB / 0.852 GB, free: 134.2 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001572/1.535, allocations: 267.3 kB / 0.8522 GB, free: 133.9 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008694/1.535, allocations: 116.4 kB / 0.8524 GB, free: 133.8 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.006069/1.541, allocations: 2.776 MB / 0.8551 GB, free: 131 MB / 0.5919 GB Notification: Performance of sort global known variables: time 9.12e-07/1.542, allocations: 0 / 0.8551 GB, free: 131 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.01106/1.553, allocations: 1.654 MB / 0.8567 GB, free: 129.4 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.02712/1.58, allocations: 15.86 MB / 0.8722 GB, free: 113.3 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01642/1.596, allocations: 9.885 MB / 0.8818 GB, free: 103.4 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.975e-05/1.596, allocations: 4 kB / 0.8818 GB, free: 103.4 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.007448/1.604, allocations: 4.306 MB / 0.886 GB, free: 99.04 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008551/1.612, allocations: 0.7385 MB / 0.8867 GB, free: 98.32 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1221/1.735, allocations: 71.18 MB / 0.9563 GB, free: 21.02 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008059/1.743, allocations: 4.617 MB / 0.9608 GB, free: 16.36 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.006928/1.75, allocations: 2.744 MB / 0.9634 GB, free: 13.61 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005365/1.755, allocations: 2.909 MB / 0.9663 GB, free: 10.7 MB / 0.5919 GB Notification: Performance of SimCode: time 1.172e-06/1.755, allocations: 0 / 0.9663 GB, free: 10.7 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4182/2.173, allocations: 113.9 MB / 1.078 GB, free: 124.5 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.4/23.57, allocations: 13.02 kB / 1.078 GB, free: 124.5 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