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.001081/0.001081, allocations: 106.3 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.001101/0.001101, 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.363/1.363, 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.2094/0.2094, allocations: 43.52 MB / 314.1 MB, free: 452 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.001378/0.001378, allocations: 65.47 kB / 441.3 MB, free: 6.141 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.1122, allocations: 57.8 MB / 499.1 MB, free: 12.27 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.0198/0.132, allocations: 18.62 MB / 0.5056 GB, free: 9.574 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01231/0.1444, allocations: 5.347 MB / 0.5108 GB, free: 4.211 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003582/0.148, allocations: 107.8 kB / 0.5109 GB, free: 4.105 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006164/0.1543, allocations: 3.071 MB / 0.5139 GB, free: 1.023 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007901/0.1622, allocations: 2.704 MB / 0.5166 GB, free: 14.31 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002721/0.1649, allocations: 1.03 MB / 0.5176 GB, free: 13.28 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01066/0.1756, allocations: 7.403 MB / 0.5248 GB, free: 5.855 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006414/0.1821, allocations: 4.254 MB / 0.5289 GB, free: 1.539 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2734/0.4555, allocations: 2.301 MB / 0.5312 GB, free: 8.754 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006944/0.4625, allocations: 3.281 MB / 0.5344 GB, free: 8.754 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002674/0.4652, allocations: 458.6 kB / 0.5348 GB, free: 8.754 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005417/0.4707, allocations: 1.303 MB / 0.5361 GB, free: 8.754 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006204/0.4769, allocations: 2.889 MB / 0.5389 GB, free: 8.469 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009472/0.4864, allocations: 3.309 MB / 0.5422 GB, free: 7.293 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02116/0.5076, allocations: 10.32 MB / 0.5522 GB, free: 5.633 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.071e-06/0.5076, allocations: 0.5625 kB / 0.5522 GB, free: 5.633 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.295e-06/0.5077, allocations: 0.5 kB / 0.5522 GB, free: 5.633 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0006851/0.5084, allocations: 1.156 kB / 0.5522 GB, free: 5.633 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.03259/0.541, allocations: 7.655 MB / 0.5597 GB, free: 2.172 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.731e-05/0.541, allocations: 13.7 kB / 0.5597 GB, free: 2.168 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003807/0.5448, allocations: 1.032 MB / 0.5607 GB, free: 1.605 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0291/0.574, allocations: 5.653 MB / 0.5663 GB, free: 14.79 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01354/0.5875, allocations: 5.942 MB / 0.5721 GB, free: 11.7 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002712/0.5878, allocations: 321.9 kB / 0.5724 GB, free: 11.6 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002308/0.5902, allocations: 443.3 kB / 0.5728 GB, free: 11.49 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03037/0.6205, allocations: 15.74 MB / 0.5882 GB, free: 13.54 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002021/0.6208, allocations: 59.17 kB / 0.5882 GB, free: 13.5 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007519/0.6215, allocations: 195.2 kB / 0.5884 GB, free: 13.37 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00651/0.6281, allocations: 3.474 MB / 0.5918 GB, free: 9.926 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03119/0.6593, allocations: 14.79 MB / 0.6062 GB, free: 11.31 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09747/0.7568, allocations: 55.73 MB / 0.6607 GB, free: 3.227 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02006/0.7769, allocations: 8.144 MB / 0.6686 GB, free: 10.86 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007178/0.7841, allocations: 4.779 MB / 0.6733 GB, free: 6.078 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002267/0.7864, allocations: 2.207 MB / 0.6754 GB, free: 3.504 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.619e-05/0.7865, allocations: 73.08 kB / 0.6755 GB, free: 3.422 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=367): time 1.012e-05/0.7865, allocations: 0 / 0.6755 GB, free: 3.422 MB / 0.5137 GB Notification: Performance of matching and sorting (n=419): time 0.1128/0.8993, allocations: 39.91 MB / 0.7145 GB, free: 11.58 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.394e-05/0.8995, allocations: 122.8 kB / 0.7146 GB, free: 11.44 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009328/0.9088, allocations: 4.421 MB / 0.7189 GB, free: 7.008 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0005396/0.9094, allocations: 89.7 kB / 0.719 GB, free: 6.914 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002782/0.9122, allocations: 4.038 MB / 0.7229 GB, free: 2.883 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001742/0.9139, allocations: 1.568 MB / 0.7245 GB, free: 1.336 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003006/0.9169, allocations: 1.54 MB / 0.726 GB, free: 15.79 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 9.875e-05/0.917, allocations: 301.7 kB / 0.7263 GB, free: 15.5 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005793/0.9228, allocations: 3.958 MB / 0.7301 GB, free: 11.54 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008456/0.9313, allocations: 7.762 MB / 0.7377 GB, free: 2.02 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01616/0.9475, allocations: 12.74 MB / 0.7502 GB, free: 3.961 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001278/0.9476, allocations: 36 kB / 0.7502 GB, free: 3.926 MB / 0.5919 GB Notification: Performance of matching and sorting (n=1017) (initialization): time 0.3128/1.26, allocations: 14.26 MB / 0.7641 GB, free: 202.8 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002846/1.261, allocations: 67.69 kB / 0.7642 GB, free: 202.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004595/1.261, allocations: 128.8 kB / 0.7643 GB, free: 202.8 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009764/1.271, allocations: 2.677 MB / 0.7669 GB, free: 202.8 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007186/1.278, allocations: 1.777 MB / 0.7686 GB, free: 202.7 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01896/1.297, allocations: 15.24 MB / 0.7835 GB, free: 196 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006849/1.304, allocations: 496.7 kB / 0.784 GB, free: 195.8 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00187/1.306, allocations: 435.1 kB / 0.7844 GB, free: 195.8 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.008157/1.314, allocations: 2.91 MB / 0.7873 GB, free: 194.6 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001833/1.316, allocations: 491.1 kB / 0.7877 GB, free: 194.6 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02301/1.339, allocations: 10.57 MB / 0.7981 GB, free: 189 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.314e-05/1.339, allocations: 60 kB / 0.7981 GB, free: 189 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.528e-05/1.339, allocations: 15.94 kB / 0.7981 GB, free: 189 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.138e-05/1.339, allocations: 23.16 kB / 0.7981 GB, free: 189 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04661/1.386, allocations: 21.31 MB / 0.819 GB, free: 168.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.831e-05/1.386, allocations: 14.86 kB / 0.819 GB, free: 168.3 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00362/1.39, allocations: 0.6864 MB / 0.8196 GB, free: 167.6 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007291/1.397, allocations: 2.49 MB / 0.8221 GB, free: 165.1 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001298/1.398, allocations: 79.98 kB / 0.8222 GB, free: 165 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0155/1.414, allocations: 13.82 MB / 0.8357 GB, free: 151 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.926e-06/1.414, allocations: 15.94 kB / 0.8357 GB, free: 151 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02192/1.436, allocations: 15.15 MB / 0.8505 GB, free: 135.7 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003628/1.439, allocations: 1.189 MB / 0.8516 GB, free: 134.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001567/1.441, allocations: 79.98 kB / 0.8517 GB, free: 134.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003812/1.445, allocations: 305.3 kB / 0.852 GB, free: 134.1 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009829/1.446, allocations: 261.9 kB / 0.8522 GB, free: 133.8 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005636/1.446, allocations: 117.6 kB / 0.8524 GB, free: 133.7 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.006961/1.453, allocations: 2.779 MB / 0.8551 GB, free: 130.9 MB / 0.5919 GB Notification: Performance of sort global known variables: time 2.2e-07/1.453, allocations: 0 / 0.8551 GB, free: 130.9 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.009832/1.463, allocations: 1.654 MB / 0.8567 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.02423/1.488, allocations: 15.84 MB / 0.8722 GB, free: 113.2 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.014/1.502, allocations: 9.895 MB / 0.8818 GB, free: 103.3 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.411e-05/1.502, allocations: 0 / 0.8818 GB, free: 103.3 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.005505/1.507, allocations: 4.312 MB / 0.886 GB, free: 98.92 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005499/1.513, allocations: 0.7393 MB / 0.8868 GB, free: 98.21 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1097/1.622, allocations: 71.18 MB / 0.9563 GB, free: 20.92 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005241/1.628, allocations: 4.613 MB / 0.9608 GB, free: 16.26 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.005557/1.633, allocations: 2.744 MB / 0.9635 GB, free: 13.51 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004083/1.637, allocations: 2.909 MB / 0.9663 GB, free: 10.6 MB / 0.5919 GB Notification: Performance of SimCode: time 1.192e-06/1.637, allocations: 0 / 0.9663 GB, free: 10.6 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.411/2.048, allocations: 113.9 MB / 1.078 GB, free: 124.3 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.19/22.23, allocations: 11.44 kB / 1.078 GB, free: 124.3 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