Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.SphericalSpherical.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.SphericalSpherical,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_SphericalSpherical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.SphericalSpherical,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_SphericalSpherical",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.001066/0.001066, allocations: 104 kB / 17.63 MB, free: 5.523 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.001017/0.001017, allocations: 192.1 kB / 18.56 MB, free: 4.605 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.332/1.332, allocations: 222.9 MB / 242.3 MB, free: 15.21 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.2162/0.2162, allocations: 44.18 MB / 336.6 MB, free: 2.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001406/0.001406, allocations: 60.28 kB / 408.5 MB, free: 27.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1125/0.1139, allocations: 60.82 MB / 469.4 MB, free: 14.26 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.SphericalSpherical): time 0.008453/0.1224, allocations: 7.614 MB / 477 MB, free: 6.598 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004681/0.1271, allocations: 2.535 MB / 479.5 MB, free: 4.055 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000996/0.1281, allocations: 31.94 kB / 479.5 MB, free: 4.023 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002016/0.1302, allocations: 0.8876 MB / 480.4 MB, free: 3.133 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009526/0.1312, allocations: 314.2 kB / 480.7 MB, free: 2.824 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008415/0.1321, allocations: 327.3 kB / 481.1 MB, free: 2.504 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000852/0.1329, allocations: 0.732 MB / 481.8 MB, free: 1.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009872/0.1339, allocations: 0.8297 MB / 482.6 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004626/0.1344, allocations: 366.6 kB / 483 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008598/0.1353, allocations: 0.6466 MB / 483.6 MB, free: 15.92 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001725/0.1354, allocations: 104 kB / 483.7 MB, free: 15.82 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000938/0.1364, allocations: 0.5187 MB / 484.2 MB, free: 15.3 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000553/0.137, allocations: 0.4909 MB / 484.7 MB, free: 14.81 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006469/0.1376, allocations: 0.5749 MB / 485.3 MB, free: 14.23 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002155/0.1398, allocations: 1.729 MB / 487 MB, free: 12.5 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.434e-06/0.1398, allocations: 7.938 kB / 487 MB, free: 12.49 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.766e-06/0.1398, allocations: 0 / 487 MB, free: 12.49 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.937e-05/0.1398, allocations: 0 / 487 MB, free: 12.49 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 332 * Number of variables: 332 Notification: Performance of Generate backend data structure: time 0.003204/0.1431, allocations: 1.638 MB / 488.7 MB, free: 10.8 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.087e-05/0.1431, allocations: 8.031 kB / 488.7 MB, free: 10.79 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002403/0.1434, allocations: 178.5 kB / 488.9 MB, free: 10.61 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007388/0.1441, allocations: 163.2 kB / 489 MB, free: 10.45 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00107/0.1452, allocations: 0.6316 MB / 489.7 MB, free: 9.777 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.288e-05/0.1453, allocations: 66.09 kB / 489.7 MB, free: 9.711 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001838/0.1455, allocations: 83.95 kB / 489.8 MB, free: 9.629 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004948/0.1504, allocations: 2.669 MB / 492.5 MB, free: 6.809 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.324e-05/0.1505, allocations: 11.92 kB / 492.5 MB, free: 6.797 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.503e-05/0.1506, allocations: 35.97 kB / 492.5 MB, free: 6.762 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004813/0.1511, allocations: 385.7 kB / 492.9 MB, free: 6.387 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005212/0.1563, allocations: 2.365 MB / 495.3 MB, free: 4.02 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009183/0.1655, allocations: 8.26 MB / 0.4917 GB, free: 11.51 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003761/0.1693, allocations: 0.9735 MB / 0.4927 GB, free: 10.53 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003797/0.1697, allocations: 268.9 kB / 0.4929 GB, free: 10.26 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001416/0.1711, allocations: 1.73 MB / 0.4946 GB, free: 8.254 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.555e-05/0.1712, allocations: 30.56 kB / 0.4946 GB, free: 8.215 MB / 382.1 MB Notification: Performance of pre-optimization done (n=44): time 2.124e-06/0.1712, allocations: 0 / 0.4946 GB, free: 8.215 MB / 382.1 MB Notification: Performance of matching and sorting (n=58): time 0.0114/0.1826, allocations: 2.951 MB / 0.4975 GB, free: 5.25 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.167e-05/0.1827, allocations: 55.97 kB / 0.4976 GB, free: 5.184 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001162/0.1839, allocations: 0.9106 MB / 0.4985 GB, free: 4.262 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.944e-05/0.1839, allocations: 37.7 kB / 0.4985 GB, free: 4.219 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004313/0.1843, allocations: 0.6527 MB / 0.4991 GB, free: 3.555 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001587/0.1845, allocations: 221 kB / 0.4994 GB, free: 3.336 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003172/0.1848, allocations: 246.6 kB / 0.4996 GB, free: 3.086 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001942/0.185, allocations: 402.7 kB / 0.5 GB, free: 2.684 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006176/0.1857, allocations: 370.4 kB / 0.5003 GB, free: 2.324 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001439/0.1871, allocations: 0.9914 MB / 0.5013 GB, free: 1.023 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2364/0.4235, allocations: 1.496 MB / 0.5028 GB, free: 48.87 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.239e-05/0.4236, allocations: 6.562 kB / 0.5028 GB, free: 48.87 MB / 382.1 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.002251/0.4258, allocations: 1.392 MB / 0.5041 GB, free: 48.7 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.777e-05/0.4259, allocations: 20.19 kB / 0.5041 GB, free: 48.7 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.477e-05/0.4259, allocations: 26.31 kB / 0.5042 GB, free: 48.7 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.894e-05/0.426, allocations: 30.81 kB / 0.5042 GB, free: 48.7 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001181/0.4271, allocations: 317.8 kB / 0.5045 GB, free: 48.67 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007492/0.4279, allocations: 1.456 MB / 0.5059 GB, free: 47.25 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006751/0.4286, allocations: 54.92 kB / 0.506 GB, free: 47.25 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.199e-05/0.4287, allocations: 67.69 kB / 0.506 GB, free: 47.25 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 100 * Number of states: 0 () * Number of discrete variables: 27 (Fixed1.color[3],Fixed1.color[2],Fixed1.color[1],Prismatic1.boxColor[3],Prismatic1.boxColor[2],Prismatic1.boxColor[1],sphericalSpherical.massColor[3],sphericalSpherical.massColor[2],sphericalSpherical.massColor[1],sphericalSpherical.sphereColor[3],sphericalSpherical.sphereColor[2],sphericalSpherical.sphereColor[1],sphericalSpherical.rodColor[3],sphericalSpherical.rodColor[2],sphericalSpherical.rodColor[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 (157): * Single equations (assignments): 156 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005899/0.4293, allocations: 498.4 kB / 0.5065 GB, free: 47.08 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001103/0.4294, allocations: 88.56 kB / 0.5066 GB, free: 47.07 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001832/0.4296, allocations: 115.9 kB / 0.5067 GB, free: 47 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.501e-06/0.4296, allocations: 9.375 kB / 0.5067 GB, free: 47 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.4296, allocations: 4.25 kB / 0.5067 GB, free: 47 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.843e-06/0.4296, allocations: 2.719 kB / 0.5067 GB, free: 47 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003364/0.433, allocations: 2.168 MB / 0.5088 GB, free: 45.96 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.427e-06/0.433, allocations: 7.094 kB / 0.5088 GB, free: 45.96 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005083/0.4335, allocations: 129.6 kB / 0.509 GB, free: 45.95 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.574e-05/0.4335, allocations: 8.188 kB / 0.509 GB, free: 45.95 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.848e-05/0.4336, allocations: 17.73 kB / 0.509 GB, free: 45.94 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007302/0.4343, allocations: 1.427 MB / 0.5104 GB, free: 44.48 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.834e-06/0.4343, allocations: 6.219 kB / 0.5104 GB, free: 44.48 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001021/0.4354, allocations: 0.8364 MB / 0.5112 GB, free: 43.93 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001995/0.4356, allocations: 165.7 kB / 0.5114 GB, free: 43.83 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000115/0.4357, allocations: 20.61 kB / 0.5114 GB, free: 43.82 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003711/0.4361, allocations: 13.42 kB / 0.5114 GB, free: 43.82 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001011/0.4362, allocations: 56.56 kB / 0.5115 GB, free: 43.8 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.747e-05/0.4362, allocations: 25.09 kB / 0.5115 GB, free: 43.79 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008917/0.4371, allocations: 0.6006 MB / 0.5121 GB, free: 43.55 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4371, allocations: 1.641 kB / 0.5121 GB, free: 43.55 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001318/0.4385, allocations: 216.7 kB / 0.5123 GB, free: 43.52 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 0 () * 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 (58): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001092/0.4396, allocations: 1.394 MB / 0.5136 GB, free: 42.41 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001605/0.4412, allocations: 0.9504 MB / 0.5146 GB, free: 42.11 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.716e-06/0.4412, allocations: 0 / 0.5146 GB, free: 42.11 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004906/0.4417, allocations: 280.3 kB / 0.5148 GB, free: 42.02 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008256/0.4425, allocations: 129.2 kB / 0.515 GB, free: 41.96 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01199/0.4545, allocations: 9.837 MB / 0.5246 GB, free: 35.44 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000792/0.4554, allocations: 1.219 MB / 0.5258 GB, free: 34.65 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008206/0.4562, allocations: 343.5 kB / 0.5261 GB, free: 34.62 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004095/0.4566, allocations: 407.8 kB / 0.5265 GB, free: 34.31 MB / 382.1 MB Notification: Performance of SimCode: time 1.542e-06/0.4566, allocations: 0 / 0.5265 GB, free: 34.31 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03459/0.4912, allocations: 16.94 MB / 0.543 GB, free: 19.82 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.066/8.558, allocations: 20.55 kB / 0.543 GB, free: 19.8 MB / 382.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.SphericalSpherical.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.SphericalSpherical.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.SphericalSpherical.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.SphericalSpherical.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.SphericalSpherical_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_SphericalSpherical.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.SphericalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.SphericalSpherical_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/SphericalSpherical/SphericalSpherical.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.SphericalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches