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.001275/0.001275, allocations: 117.2 kB / 17.78 MB, free: 5.25 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.001585/0.001585, allocations: 184.2 kB / 18.72 MB, free: 4.332 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.292/1.292, allocations: 222.9 MB / 242.4 MB, free: 15.08 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.2004/0.2004, allocations: 44.19 MB / 336.8 MB, free: 2.66 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001437/0.001438, allocations: 67.91 kB / 470.1 MB, free: 13.65 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3019/0.3033, allocations: 60.82 MB / 0.5184 GB, free: 3.293 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.SphericalSpherical): time 0.007827/0.3112, allocations: 7.614 MB / 0.5259 GB, free: 13.9 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.005607/0.3169, allocations: 2.539 MB / 0.5283 GB, free: 12.21 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001139/0.318, allocations: 33.94 kB / 0.5284 GB, free: 12.21 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00207/0.3201, allocations: 0.884 MB / 0.5292 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009705/0.3212, allocations: 334.4 kB / 0.5296 GB, free: 11.51 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007556/0.3219, allocations: 317.6 kB / 0.5299 GB, free: 11.3 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000793/0.3227, allocations: 0.7345 MB / 0.5306 GB, free: 10.88 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009613/0.3237, allocations: 0.833 MB / 0.5314 GB, free: 10.39 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004868/0.3242, allocations: 366.7 kB / 0.5317 GB, free: 10.18 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008742/0.3251, allocations: 0.6532 MB / 0.5324 GB, free: 9.777 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001602/0.3253, allocations: 105.1 kB / 0.5325 GB, free: 9.777 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007724/0.326, allocations: 0.519 MB / 0.533 GB, free: 9.555 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004392/0.3265, allocations: 0.4947 MB / 0.5335 GB, free: 9.246 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005258/0.327, allocations: 0.5621 MB / 0.534 GB, free: 8.824 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002007/0.329, allocations: 1.805 MB / 0.5358 GB, free: 7.562 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.3291, allocations: 1.438 kB / 0.5358 GB, free: 7.562 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3291, allocations: 0 / 0.5358 GB, free: 7.562 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.771e-05/0.3291, allocations: 0 / 0.5358 GB, free: 7.562 MB / 398.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.003285/0.3324, allocations: 1.659 MB / 0.5374 GB, free: 6.375 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.852e-05/0.3324, allocations: 14.19 kB / 0.5374 GB, free: 6.371 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002304/0.3327, allocations: 183.4 kB / 0.5376 GB, free: 6.23 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007288/0.3334, allocations: 169.9 kB / 0.5378 GB, free: 6.133 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001136/0.3346, allocations: 0.6348 MB / 0.5384 GB, free: 5.637 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.544e-05/0.3346, allocations: 68.75 kB / 0.5384 GB, free: 5.602 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001911/0.3348, allocations: 80.25 kB / 0.5385 GB, free: 5.574 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005121/0.3399, allocations: 2.673 MB / 0.5411 GB, free: 3.992 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.397e-05/0.34, allocations: 11.45 kB / 0.5411 GB, free: 3.984 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001076/0.3401, allocations: 39.28 kB / 0.5412 GB, free: 3.957 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004714/0.3406, allocations: 383.7 kB / 0.5415 GB, free: 3.816 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005181/0.3458, allocations: 2.357 MB / 0.5438 GB, free: 1.801 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008408/0.3542, allocations: 8.242 MB / 0.5519 GB, free: 9.305 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003804/0.3581, allocations: 0.9794 MB / 0.5529 GB, free: 8.312 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003596/0.3584, allocations: 268.7 kB / 0.5531 GB, free: 8.047 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001408/0.3599, allocations: 1.715 MB / 0.5548 GB, free: 6.055 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.094e-05/0.3599, allocations: 42.56 kB / 0.5548 GB, free: 6.004 MB / 414.1 MB Notification: Performance of pre-optimization done (n=44): time 2.354e-06/0.3599, allocations: 0 / 0.5548 GB, free: 6.004 MB / 414.1 MB Notification: Performance of matching and sorting (n=58): time 0.01169/0.3716, allocations: 2.965 MB / 0.5577 GB, free: 3.027 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.428e-05/0.3717, allocations: 63.91 kB / 0.5578 GB, free: 2.953 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001213/0.3729, allocations: 0.907 MB / 0.5587 GB, free: 2.035 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.5e-05/0.373, allocations: 37.7 kB / 0.5587 GB, free: 1.992 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004904/0.3735, allocations: 0.6783 MB / 0.5594 GB, free: 1.305 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001793/0.3736, allocations: 226.2 kB / 0.5596 GB, free: 1.082 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003098/0.374, allocations: 254.7 kB / 0.5598 GB, free: 0.8281 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001835/0.3742, allocations: 402.7 kB / 0.5602 GB, free: 436 kB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005452/0.3747, allocations: 370.4 kB / 0.5606 GB, free: 64 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008608/0.3756, allocations: 0.9915 MB / 0.5615 GB, free: 14.76 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00151/0.3771, allocations: 1.495 MB / 0.563 GB, free: 12.96 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.578e-06/0.3771, allocations: 8 kB / 0.563 GB, free: 12.95 MB / 430.1 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.002003/0.3791, allocations: 1.401 MB / 0.5644 GB, free: 11.54 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.91e-05/0.3792, allocations: 19.94 kB / 0.5644 GB, free: 11.52 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.318e-05/0.3792, allocations: 20 kB / 0.5644 GB, free: 11.5 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.827e-05/0.3792, allocations: 32 kB / 0.5644 GB, free: 11.47 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001175/0.3804, allocations: 323.9 kB / 0.5647 GB, free: 11.16 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001237/0.3817, allocations: 1.451 MB / 0.5662 GB, free: 9.57 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009615/0.3827, allocations: 51.98 kB / 0.5662 GB, free: 9.52 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001009/0.3828, allocations: 71.94 kB / 0.5663 GB, free: 9.449 MB / 430.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.0009328/0.3837, allocations: 0.4893 MB / 0.5668 GB, free: 8.949 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001707/0.3839, allocations: 95.33 kB / 0.5668 GB, free: 8.855 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002105/0.3841, allocations: 120.8 kB / 0.567 GB, free: 8.734 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.484e-06/0.3841, allocations: 4 kB / 0.567 GB, free: 8.73 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.3841, allocations: 0 / 0.567 GB, free: 8.73 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.154e-06/0.3841, allocations: 0 / 0.567 GB, free: 8.73 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003704/0.3879, allocations: 2.183 MB / 0.5691 GB, free: 6.41 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.131e-05/0.3879, allocations: 4 kB / 0.5691 GB, free: 6.406 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005116/0.3884, allocations: 124.6 kB / 0.5692 GB, free: 6.285 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.204e-05/0.3884, allocations: 12 kB / 0.5692 GB, free: 6.273 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.799e-05/0.3885, allocations: 20 kB / 0.5692 GB, free: 6.254 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009224/0.3894, allocations: 1.42 MB / 0.5706 GB, free: 4.699 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.612e-06/0.3894, allocations: 11.94 kB / 0.5706 GB, free: 4.688 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000934/0.3904, allocations: 0.835 MB / 0.5715 GB, free: 3.75 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002651/0.3906, allocations: 168.4 kB / 0.5716 GB, free: 3.566 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001022/0.3908, allocations: 23.92 kB / 0.5716 GB, free: 3.543 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003544/0.3911, allocations: 16 kB / 0.5717 GB, free: 3.527 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.176e-05/0.3912, allocations: 55.83 kB / 0.5717 GB, free: 3.473 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.939e-05/0.3912, allocations: 23.94 kB / 0.5717 GB, free: 3.449 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0007557/0.392, allocations: 0.6005 MB / 0.5723 GB, free: 2.852 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.392, allocations: 0 / 0.5723 GB, free: 2.852 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001015/0.393, allocations: 220 kB / 0.5725 GB, free: 2.637 MB / 430.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.001207/0.3942, allocations: 1.402 MB / 0.5739 GB, free: 1.129 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001376/0.3956, allocations: 0.8788 MB / 0.5748 GB, free: 260 kB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.3956, allocations: 0 / 0.5748 GB, free: 260 kB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004163/0.3961, allocations: 292.7 kB / 0.575 GB, free: 15.97 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008266/0.3969, allocations: 115.3 kB / 0.5752 GB, free: 15.86 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01148/0.4084, allocations: 9.444 MB / 0.5844 GB, free: 5.531 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009285/0.4094, allocations: 1.224 MB / 0.5856 GB, free: 4.281 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0007994/0.4102, allocations: 347.5 kB / 0.5859 GB, free: 3.938 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005133/0.4107, allocations: 407.3 kB / 0.5863 GB, free: 3.539 MB / 446.1 MB Notification: Performance of SimCode: time 5.71e-07/0.4107, allocations: 3.938 kB / 0.5863 GB, free: 3.535 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04837/0.4591, allocations: 17.3 MB / 0.6032 GB, free: 2.406 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15/15.46, allocations: 11.48 kB / 0.6032 GB, free: 2.398 MB / 462.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