Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 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.Spherical,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Spherical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Spherical,fileNamePrefix="ModelicaTest_4_0_0_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.001116/0.001116, allocations: 104.2 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.001182/0.001182, allocations: 191.9 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.383/1.383, allocations: 222.9 MB / 242.3 MB, free: 15.2 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.2182/0.2182, allocations: 44.18 MB / 336.6 MB, free: 2.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001226/0.001226, allocations: 59.81 kB / 408.5 MB, free: 27.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1199/0.1212, allocations: 60.82 MB / 469.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.01241/0.1336, allocations: 11.8 MB / 481.2 MB, free: 2.41 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009902/0.1436, allocations: 4.05 MB / 485.2 MB, free: 14.35 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002538/0.1461, allocations: 59.88 kB / 485.3 MB, free: 14.29 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002601/0.1488, allocations: 1.183 MB / 486.4 MB, free: 13.1 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00408/0.1529, allocations: 1.755 MB / 488.2 MB, free: 11.34 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001307/0.1542, allocations: 0.5574 MB / 488.8 MB, free: 10.79 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004668/0.1589, allocations: 3.949 MB / 492.7 MB, free: 6.828 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002134/0.1611, allocations: 1.791 MB / 494.5 MB, free: 5.012 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001669/0.1628, allocations: 1.156 MB / 495.7 MB, free: 3.852 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002024/0.1648, allocations: 1.682 MB / 497.3 MB, free: 2.164 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004563/0.1653, allocations: 216 kB / 497.5 MB, free: 1.953 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002122/0.1674, allocations: 1.303 MB / 498.9 MB, free: 0.6484 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001314/0.1687, allocations: 1.589 MB / 0.4887 GB, free: 15.05 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001837/0.1706, allocations: 1.855 MB / 0.4905 GB, free: 13.19 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006258/0.1769, allocations: 5.981 MB / 0.4964 GB, free: 7.188 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.472e-06/0.1769, allocations: 4 kB / 0.4964 GB, free: 7.184 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.983e-06/0.1769, allocations: 0 / 0.4964 GB, free: 7.184 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001413/0.1771, allocations: 0 / 0.4964 GB, free: 7.184 MB / 382.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.007217/0.1843, allocations: 4.134 MB / 0.5004 GB, free: 2.98 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.84e-05/0.1844, allocations: 8.031 kB / 0.5004 GB, free: 2.973 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009252/0.1853, allocations: 0.6876 MB / 0.5011 GB, free: 2.273 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2648/0.4501, allocations: 5.685 MB / 0.5066 GB, free: 45.94 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00628/0.4564, allocations: 2.801 MB / 0.5094 GB, free: 45.19 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001433/0.4566, allocations: 184.8 kB / 0.5095 GB, free: 45.14 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009803/0.4576, allocations: 309.9 kB / 0.5098 GB, free: 45.09 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01671/0.4743, allocations: 10.73 MB / 0.5203 GB, free: 40.27 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.782e-05/0.4744, allocations: 23.62 kB / 0.5203 GB, free: 40.26 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003532/0.4748, allocations: 111 kB / 0.5204 GB, free: 40.22 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003362/0.4782, allocations: 2.467 MB / 0.5229 GB, free: 39.23 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01635/0.4945, allocations: 10.16 MB / 0.5328 GB, free: 29.67 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04452/0.5391, allocations: 35.7 MB / 0.5676 GB, free: 9.191 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01181/0.551, allocations: 5.597 MB / 0.5731 GB, free: 3.371 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003209/0.5542, allocations: 2.339 MB / 0.5754 GB, free: 1.027 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001629/0.5559, allocations: 1.876 MB / 0.5772 GB, free: 14.82 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.713e-05/0.5559, allocations: 56.55 kB / 0.5773 GB, free: 14.75 MB / 414.1 MB Notification: Performance of pre-optimization done (n=224): time 6.011e-06/0.5559, allocations: 0 / 0.5773 GB, free: 14.75 MB / 414.1 MB Notification: Performance of matching and sorting (n=231): time 0.03556/0.5915, allocations: 14.96 MB / 0.5919 GB, free: 15.68 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001269/0.5928, allocations: 1.614 MB / 0.5935 GB, free: 13.91 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003719/0.5965, allocations: 2.811 MB / 0.5962 GB, free: 11.08 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004175/0.597, allocations: 53.7 kB / 0.5963 GB, free: 11.02 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001673/0.5987, allocations: 2.685 MB / 0.5989 GB, free: 8.297 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009526/0.5996, allocations: 0.8442 MB / 0.5997 GB, free: 7.441 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001545/0.6012, allocations: 1.103 MB / 0.6008 GB, free: 6.328 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.616e-05/0.6013, allocations: 301.1 kB / 0.6011 GB, free: 6.031 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003542/0.6048, allocations: 2.63 MB / 0.6036 GB, free: 3.395 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005721/0.6106, allocations: 5.627 MB / 0.6091 GB, free: 12.29 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01094/0.6216, allocations: 8.941 MB / 0.6179 GB, free: 1.883 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001187/0.6217, allocations: 28 kB / 0.6179 GB, free: 1.855 MB / 446.1 MB Notification: Performance of matching and sorting (n=725) (initialization): time 0.06769/0.6894, allocations: 19.02 MB / 0.6365 GB, free: 14.8 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.648e-05/0.6895, allocations: 52 kB / 0.6365 GB, free: 14.75 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04582/0.7354, allocations: 12.02 MB / 0.6483 GB, free: 2.691 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04834/0.7838, allocations: 10.28 MB / 0.6583 GB, free: 8.383 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00459/0.7884, allocations: 1.302 MB / 0.6596 GB, free: 7.078 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0303/0.8187, allocations: 18.21 MB / 0.6774 GB, free: 4.59 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005072/0.8239, allocations: 431.5 kB / 0.6778 GB, free: 4.168 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001099/0.825, allocations: 323.3 kB / 0.6781 GB, free: 3.855 MB / 0.4981 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.003684/0.8287, allocations: 2.024 MB / 0.68 GB, free: 1.82 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00062/0.8293, allocations: 272.4 kB / 0.6803 GB, free: 1.551 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008687/0.838, allocations: 5.107 MB / 0.6853 GB, free: 12.41 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007307/0.8453, allocations: 4.413 MB / 0.6896 GB, free: 7.98 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.032e-05/0.8454, allocations: 0 / 0.6896 GB, free: 7.98 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.349e-05/0.8454, allocations: 11.97 kB / 0.6896 GB, free: 7.969 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2803/1.126, allocations: 12.94 MB / 0.7023 GB, free: 170.8 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.811e-05/1.126, allocations: 6.875 kB / 0.7023 GB, free: 170.8 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002131/1.128, allocations: 460.8 kB / 0.7027 GB, free: 170.8 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002942/1.131, allocations: 0.9382 MB / 0.7036 GB, free: 170.8 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000267/1.131, allocations: 49.97 kB / 0.7037 GB, free: 170.8 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006299/1.137, allocations: 5.833 MB / 0.7094 GB, free: 167.3 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001019/1.138, allocations: 1.553 MB / 0.7109 GB, free: 165.8 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01264/1.151, allocations: 7.733 MB / 0.7184 GB, free: 163 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000763/1.152, allocations: 326.9 kB / 0.7187 GB, free: 162.9 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004244/1.152, allocations: 43.45 kB / 0.7188 GB, free: 162.9 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001511/1.154, allocations: 192.2 kB / 0.719 GB, free: 162.9 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003752/1.154, allocations: 144.7 kB / 0.7191 GB, free: 162.9 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001607/1.154, allocations: 74.95 kB / 0.7192 GB, free: 162.8 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.00219/1.157, allocations: 1.734 MB / 0.7209 GB, free: 162.3 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.41e-07/1.157, allocations: 0 / 0.7209 GB, free: 162.3 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.004396/1.161, allocations: 1.096 MB / 0.7219 GB, free: 162.2 MB / 0.5137 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.0101/1.171, allocations: 8.391 MB / 0.7301 GB, free: 158.9 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.01453/1.186, allocations: 9.65 MB / 0.7396 GB, free: 151.5 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.776e-05/1.186, allocations: 0 / 0.7396 GB, free: 151.5 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.003547/1.189, allocations: 2.535 MB / 0.742 GB, free: 149.3 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002176/1.192, allocations: 372.4 kB / 0.7424 GB, free: 149 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1219/1.314, allocations: 62.5 MB / 0.8034 GB, free: 81 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002922/1.316, allocations: 3.163 MB / 0.8065 GB, free: 77.81 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004225/1.321, allocations: 2.056 MB / 0.8085 GB, free: 75.75 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002428/1.323, allocations: 1.667 MB / 0.8101 GB, free: 74.08 MB / 0.5137 GB Notification: Performance of SimCode: time 8.72e-07/1.323, allocations: 0 / 0.8101 GB, free: 74.08 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.125/1.448, allocations: 73.77 MB / 0.8822 GB, free: 0.5078 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.02/14.47, allocations: 8.625 kB / 0.8822 GB, free: 0.5 MB / 0.5137 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_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_4_0_0_ModelicaTest_MultiBody_Joints_Spherical.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Spherical/Spherical.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches