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.001323/0.001323, allocations: 114.5 kB / 17.78 MB, free: 5.262 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.00144/0.001441, allocations: 187.7 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.426/1.426, allocations: 222.9 MB / 242.4 MB, free: 15.04 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.2332/0.2332, allocations: 44.19 MB / 336.8 MB, free: 2.648 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001459/0.001459, allocations: 67.91 kB / 470.1 MB, free: 13.64 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3859/0.3874, allocations: 60.82 MB / 0.5184 GB, free: 3.285 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.01305/0.4005, allocations: 11.8 MB / 0.53 GB, free: 10.9 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01021/0.4108, allocations: 4.051 MB / 0.5339 GB, free: 7.957 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00294/0.4137, allocations: 60.16 kB / 0.534 GB, free: 7.949 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003343/0.4172, allocations: 1.178 MB / 0.5351 GB, free: 7.141 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006196/0.4234, allocations: 1.8 MB / 0.5369 GB, free: 5.918 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00202/0.4254, allocations: 0.5539 MB / 0.5374 GB, free: 5.566 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00631/0.4318, allocations: 3.958 MB / 0.5413 GB, free: 3.508 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003468/0.4353, allocations: 1.793 MB / 0.543 GB, free: 2.375 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002552/0.4379, allocations: 1.162 MB / 0.5442 GB, free: 1.676 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00293/0.4408, allocations: 1.686 MB / 0.5458 GB, free: 15.98 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007966/0.4416, allocations: 216 kB / 0.546 GB, free: 15.77 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002958/0.4446, allocations: 1.303 MB / 0.5473 GB, free: 14.47 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001974/0.4466, allocations: 1.582 MB / 0.5488 GB, free: 12.88 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002277/0.4489, allocations: 1.867 MB / 0.5507 GB, free: 11 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007445/0.4563, allocations: 6.278 MB / 0.5568 GB, free: 4.703 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.424e-06/0.4564, allocations: 4 kB / 0.5568 GB, free: 4.699 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.4564, allocations: 4 kB / 0.5568 GB, free: 4.695 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001818/0.4566, allocations: 0 / 0.5568 GB, free: 4.695 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.008231/0.4648, allocations: 4.252 MB / 0.561 GB, free: 376 kB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.519e-05/0.4649, allocations: 8.031 kB / 0.561 GB, free: 368 kB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001036/0.4659, allocations: 0.6876 MB / 0.5616 GB, free: 15.66 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.019/0.4849, allocations: 5.715 MB / 0.5672 GB, free: 9.934 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006403/0.4914, allocations: 2.841 MB / 0.57 GB, free: 7.047 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001455/0.4916, allocations: 184.5 kB / 0.5702 GB, free: 6.863 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001331/0.4929, allocations: 307.7 kB / 0.5705 GB, free: 6.562 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01737/0.5103, allocations: 10.72 MB / 0.5809 GB, free: 11.38 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.338e-05/0.5104, allocations: 23.81 kB / 0.5809 GB, free: 11.35 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004959/0.5109, allocations: 111.8 kB / 0.5811 GB, free: 11.24 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003803/0.5147, allocations: 2.463 MB / 0.5835 GB, free: 8.777 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01936/0.5341, allocations: 10.15 MB / 0.5934 GB, free: 14.61 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05783/0.592, allocations: 35.57 MB / 0.6281 GB, free: 10.18 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01248/0.6045, allocations: 5.6 MB / 0.6336 GB, free: 4.348 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003663/0.6082, allocations: 2.334 MB / 0.6359 GB, free: 2.008 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002107/0.6103, allocations: 1.876 MB / 0.6377 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.572e-05/0.6104, allocations: 56.55 kB / 0.6378 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=224): time 8.376e-06/0.6105, allocations: 0 / 0.6378 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of matching and sorting (n=231): time 0.04041/0.6509, allocations: 15.03 MB / 0.6524 GB, free: 0.5977 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001607/0.6525, allocations: 1.61 MB / 0.654 GB, free: 14.82 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00502/0.6576, allocations: 2.816 MB / 0.6567 GB, free: 11.99 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0005028/0.6581, allocations: 53.69 kB / 0.6568 GB, free: 11.93 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002231/0.6603, allocations: 2.795 MB / 0.6595 GB, free: 9.109 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001328/0.6617, allocations: 0.8836 MB / 0.6604 GB, free: 8.219 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002974/0.6647, allocations: 1.108 MB / 0.6615 GB, free: 7.102 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001193/0.6648, allocations: 305.1 kB / 0.6618 GB, free: 6.801 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004657/0.6695, allocations: 2.63 MB / 0.6643 GB, free: 4.164 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007748/0.6773, allocations: 5.631 MB / 0.6698 GB, free: 13.06 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01301/0.6903, allocations: 8.933 MB / 0.6786 GB, free: 2.656 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001505/0.6905, allocations: 28 kB / 0.6786 GB, free: 2.629 MB / 0.5294 GB Notification: Performance of matching and sorting (n=725) (initialization): time 0.06814/0.7586, allocations: 19.03 MB / 0.6972 GB, free: 15.56 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001628/0.7589, allocations: 51.98 kB / 0.6972 GB, free: 15.51 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04574/0.8046, allocations: 12.01 MB / 0.709 GB, free: 3.461 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04899/0.8537, allocations: 10.28 MB / 0.719 GB, free: 9.152 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004979/0.8587, allocations: 1.302 MB / 0.7203 GB, free: 7.848 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3008/1.159, allocations: 18.22 MB / 0.7381 GB, free: 176.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004197/1.164, allocations: 428.1 kB / 0.7385 GB, free: 176.6 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008562/1.165, allocations: 326.6 kB / 0.7388 GB, free: 176.6 MB / 0.5762 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.003111/1.168, allocations: 2.021 MB / 0.7408 GB, free: 175.9 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005011/1.168, allocations: 287.4 kB / 0.741 GB, free: 175.9 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007853/1.176, allocations: 5.113 MB / 0.746 GB, free: 174.2 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006309/1.182, allocations: 4.407 MB / 0.7503 GB, free: 172.9 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.808e-06/1.182, allocations: 3.812 kB / 0.7503 GB, free: 172.9 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.623e-05/1.182, allocations: 7.688 kB / 0.7503 GB, free: 172.9 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01795/1.2, allocations: 12.92 MB / 0.763 GB, free: 168.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.486e-05/1.201, allocations: 7.562 kB / 0.763 GB, free: 168.5 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001887/1.202, allocations: 460.1 kB / 0.7634 GB, free: 168.2 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00255/1.205, allocations: 0.9464 MB / 0.7643 GB, free: 167.3 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002323/1.205, allocations: 51.91 kB / 0.7644 GB, free: 167.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004997/1.21, allocations: 5.829 MB / 0.7701 GB, free: 161.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006883/1.211, allocations: 1.543 MB / 0.7716 GB, free: 159.5 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008748/1.22, allocations: 7.759 MB / 0.7791 GB, free: 151.8 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000756/1.22, allocations: 342.1 kB / 0.7795 GB, free: 151.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003715/1.221, allocations: 46.62 kB / 0.7795 GB, free: 151.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001422/1.222, allocations: 195.7 kB / 0.7797 GB, free: 151.3 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003049/1.223, allocations: 140.8 kB / 0.7798 GB, free: 151.2 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001415/1.223, allocations: 71.97 kB / 0.7799 GB, free: 151.1 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001903/1.225, allocations: 1.728 MB / 0.7816 GB, free: 149.4 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2e-07/1.225, allocations: 3.938 kB / 0.7816 GB, free: 149.4 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.005343/1.23, allocations: 1.111 MB / 0.7827 GB, free: 148.3 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.01003/1.24, allocations: 8.401 MB / 0.7909 GB, free: 139.8 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.01063/1.251, allocations: 6.631 MB / 0.7974 GB, free: 133.1 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.738e-05/1.251, allocations: 320 / 0.7974 GB, free: 133.1 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.003175/1.254, allocations: 2.531 MB / 0.7998 GB, free: 130.6 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002377/1.256, allocations: 380.8 kB / 0.8002 GB, free: 130.2 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1236/1.38, allocations: 59.56 MB / 0.8584 GB, free: 66.03 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003232/1.383, allocations: 3.167 MB / 0.8615 GB, free: 62.83 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003957/1.387, allocations: 2.06 MB / 0.8635 GB, free: 60.76 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002053/1.389, allocations: 1.659 MB / 0.8651 GB, free: 59.1 MB / 0.5762 GB Notification: Performance of SimCode: time 1.443e-06/1.389, allocations: 4 kB / 0.8651 GB, free: 59.1 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1054/1.495, allocations: 70.87 MB / 0.9343 GB, free: 4.48 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.77/21.26, allocations: 7.062 kB / 0.9343 GB, free: 4.477 MB / 0.5919 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