Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Spherical.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.Spherical,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_Spherical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Spherical,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_Spherical",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.001764/0.001764, allocations: 109.3 kB / 16.4 MB, free: 6.332 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.00175/0.001751, allocations: 185.2 kB / 17.33 MB, free: 5.816 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.569/1.569, allocations: 205.1 MB / 223.2 MB, free: 12.29 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.2333/0.2333, allocations: 43.53 MB / 314.1 MB, free: 464 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.002147/0.002147, allocations: 71.91 kB / 441.3 MB, free: 6.164 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1254/0.1275, allocations: 57.8 MB / 499.1 MB, free: 12.29 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.01453/0.1421, allocations: 11.81 MB / 0.4989 GB, free: 432 kB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.009257/0.1514, allocations: 4.054 MB / 0.5029 GB, free: 12.36 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002543/0.1541, allocations: 67.81 kB / 0.503 GB, free: 12.29 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003089/0.1572, allocations: 1.171 MB / 0.5041 GB, free: 11.12 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005148/0.1624, allocations: 1.751 MB / 0.5058 GB, free: 9.359 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00181/0.1642, allocations: 0.5574 MB / 0.5064 GB, free: 8.801 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00729/0.1715, allocations: 3.969 MB / 0.5102 GB, free: 4.82 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003333/0.1749, allocations: 1.779 MB / 0.512 GB, free: 3.012 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002812/0.1777, allocations: 1.16 MB / 0.5131 GB, free: 1.848 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003198/0.181, allocations: 1.686 MB / 0.5148 GB, free: 160 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009134/0.1819, allocations: 216 kB / 0.515 GB, free: 15.94 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003264/0.1852, allocations: 1.287 MB / 0.5162 GB, free: 14.66 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002628/0.1879, allocations: 1.597 MB / 0.5178 GB, free: 13.05 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003748/0.1917, allocations: 1.867 MB / 0.5196 GB, free: 11.18 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01068/0.2024, allocations: 6.294 MB / 0.5257 GB, free: 4.855 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.055e-06/0.2024, allocations: 0 / 0.5257 GB, free: 4.855 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.675e-06/0.2025, allocations: 0 / 0.5257 GB, free: 4.855 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.000238/0.2027, allocations: 0 / 0.5257 GB, free: 4.855 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: 1482 * Number of variables: 1482 Notification: Performance of Generate backend data structure: time 0.01159/0.2143, allocations: 4.256 MB / 0.5299 GB, free: 0.5234 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.518e-05/0.2144, allocations: 11.89 kB / 0.5299 GB, free: 0.5117 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.2278/0.4422, allocations: 0.6823 MB / 0.5306 GB, free: 37.41 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02128/0.4635, allocations: 5.722 MB / 0.5362 GB, free: 37.19 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006559/0.4701, allocations: 2.977 MB / 0.5391 GB, free: 36.79 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002026/0.4703, allocations: 180.5 kB / 0.5392 GB, free: 36.78 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001338/0.4717, allocations: 313.2 kB / 0.5395 GB, free: 36.77 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01924/0.491, allocations: 10.72 MB / 0.55 GB, free: 31.97 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.382e-05/0.4911, allocations: 22.81 kB / 0.55 GB, free: 31.96 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005937/0.4917, allocations: 111.7 kB / 0.5501 GB, free: 31.93 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003606/0.4953, allocations: 2.466 MB / 0.5526 GB, free: 30.95 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01649/0.5118, allocations: 10.16 MB / 0.5625 GB, free: 22.7 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04477/0.5566, allocations: 35.59 MB / 0.5972 GB, free: 2.508 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01267/0.5694, allocations: 5.596 MB / 0.6027 GB, free: 12.68 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003643/0.5731, allocations: 2.33 MB / 0.605 GB, free: 10.35 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001963/0.575, allocations: 1.88 MB / 0.6068 GB, free: 8.141 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.933e-05/0.5751, allocations: 52.56 kB / 0.6069 GB, free: 8.078 MB / 446.1 MB Notification: Performance of pre-optimization done (n=224): time 5.951e-06/0.5751, allocations: 0 / 0.6069 GB, free: 8.078 MB / 446.1 MB Notification: Performance of matching and sorting (n=231): time 0.03823/0.6134, allocations: 15.07 MB / 0.6216 GB, free: 8.984 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001615/0.615, allocations: 1.614 MB / 0.6232 GB, free: 7.211 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00442/0.6195, allocations: 2.828 MB / 0.6259 GB, free: 4.371 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005271/0.62, allocations: 61.75 kB / 0.626 GB, free: 4.305 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002311/0.6223, allocations: 2.799 MB / 0.6287 GB, free: 1.477 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001443/0.6238, allocations: 0.8913 MB / 0.6296 GB, free: 0.5781 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001993/0.6258, allocations: 1.108 MB / 0.6307 GB, free: 15.46 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001256/0.6259, allocations: 301.1 kB / 0.631 GB, free: 15.16 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004142/0.6301, allocations: 2.626 MB / 0.6335 GB, free: 12.53 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007229/0.6373, allocations: 5.635 MB / 0.639 GB, free: 5.426 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.014/0.6514, allocations: 8.933 MB / 0.6477 GB, free: 11.03 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001131/0.6515, allocations: 28 kB / 0.6478 GB, free: 11 MB / 494.1 MB Notification: Performance of matching and sorting (n=725) (initialization): time 0.07003/0.7216, allocations: 19.03 MB / 0.6664 GB, free: 7.93 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 9.718e-05/0.7217, allocations: 53 kB / 0.6664 GB, free: 7.879 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04775/0.7695, allocations: 12.02 MB / 0.6781 GB, free: 11.83 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04932/0.8188, allocations: 10.28 MB / 0.6882 GB, free: 1.523 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005411/0.8243, allocations: 1.306 MB / 0.6895 GB, free: 224 kB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03443/0.8588, allocations: 18.21 MB / 0.7072 GB, free: 13.72 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00521/0.864, allocations: 439.5 kB / 0.7077 GB, free: 13.29 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001442/0.8655, allocations: 320 kB / 0.708 GB, free: 12.98 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 476 * Number of states: 0 () * Number of discrete variables: 24 (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],spherical.sphereColor[3],spherical.sphereColor[2],spherical.sphereColor[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 (653): * Single equations (assignments): 642 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(4,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,9)} Notification: Performance of prepare postOptimizeDAE: time 0.005148/0.8707, allocations: 2.024 MB / 0.7099 GB, free: 10.94 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007865/0.8715, allocations: 286.1 kB / 0.7102 GB, free: 10.66 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01111/0.8826, allocations: 5.111 MB / 0.7152 GB, free: 5.512 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008977/0.8916, allocations: 4.409 MB / 0.7195 GB, free: 1.09 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.314e-05/0.8917, allocations: 4 kB / 0.7195 GB, free: 1.086 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.511e-05/0.8917, allocations: 7.969 kB / 0.7195 GB, free: 1.078 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02452/0.9162, allocations: 12.92 MB / 0.7321 GB, free: 3.953 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.39e-05/0.9163, allocations: 4 kB / 0.7321 GB, free: 3.949 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002248/0.9186, allocations: 467.1 kB / 0.7326 GB, free: 3.492 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003184/0.9218, allocations: 0.9426 MB / 0.7335 GB, free: 2.539 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005029/0.9223, allocations: 51.95 kB / 0.7336 GB, free: 2.488 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007927/0.9302, allocations: 5.829 MB / 0.7393 GB, free: 12.38 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001386/0.9317, allocations: 1.55 MB / 0.7408 GB, free: 10.68 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01418/0.9459, allocations: 7.747 MB / 0.7483 GB, free: 2.801 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001055/0.947, allocations: 347.2 kB / 0.7487 GB, free: 2.441 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006693/0.9477, allocations: 43.98 kB / 0.7487 GB, free: 2.398 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00165/0.9493, allocations: 199.6 kB / 0.7489 GB, free: 2.203 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004196/0.9497, allocations: 140.9 kB / 0.749 GB, free: 2.062 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000196/0.95, allocations: 72.28 kB / 0.7491 GB, free: 1.992 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.002959/0.9529, allocations: 1.737 MB / 0.7508 GB, free: 256 kB / 0.5762 GB Notification: Performance of sort global known variables: time 4.51e-07/0.953, allocations: 4 kB / 0.7508 GB, free: 252 kB / 0.5762 GB Notification: Performance of remove unused functions: time 0.2232/1.176, allocations: 1.099 MB / 0.7519 GB, free: 194.4 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * Number of states: 6 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.w_a[1],body.w_a[2],body.w_a[3]) * 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 (170): * Single equations (assignments): 161 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(4,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01263/1.189, allocations: 8.401 MB / 0.7601 GB, free: 193.2 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.01242/1.201, allocations: 6.631 MB / 0.7666 GB, free: 190.9 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.102e-05/1.201, allocations: 1.125 kB / 0.7666 GB, free: 190.9 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.004414/1.206, allocations: 2.528 MB / 0.769 GB, free: 189.9 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002623/1.208, allocations: 386 kB / 0.7694 GB, free: 189.7 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1293/1.338, allocations: 59.67 MB / 0.8277 GB, free: 139.9 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003577/1.341, allocations: 3.161 MB / 0.8307 GB, free: 136.7 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.00379/1.345, allocations: 2.063 MB / 0.8328 GB, free: 134.7 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002258/1.347, allocations: 1.669 MB / 0.8344 GB, free: 133 MB / 0.5762 GB Notification: Performance of SimCode: time 1.062e-06/1.347, allocations: 0 / 0.8344 GB, free: 133 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1519/1.499, allocations: 71 MB / 0.9037 GB, free: 61.92 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.98/22.48, allocations: 15.81 kB / 0.9037 GB, free: 61.91 MB / 0.5762 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Spherical.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Spherical.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Spherical.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Spherical.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Spherical_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_Spherical.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Spherical.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Spherical_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/Spherical/Spherical.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Spherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches