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.001521/0.001521, allocations: 118.4 kB / 17.78 MB, free: 5.258 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.001513/0.001513, allocations: 183.8 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.427/1.427, allocations: 222.9 MB / 242.4 MB, free: 15.09 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.2277/0.2277, allocations: 44.18 MB / 336.8 MB, free: 2.648 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001861/0.001861, allocations: 67.89 kB / 470.1 MB, free: 13.65 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3647/0.3666, allocations: 60.82 MB / 0.5184 GB, free: 3.277 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.01335/0.38, allocations: 11.8 MB / 0.53 GB, free: 10.89 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009743/0.3897, allocations: 4.053 MB / 0.5339 GB, free: 7.941 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002436/0.3922, allocations: 61.28 kB / 0.534 GB, free: 7.934 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002991/0.3952, allocations: 1.173 MB / 0.5351 GB, free: 7.129 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005805/0.4011, allocations: 1.759 MB / 0.5368 GB, free: 5.938 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001889/0.403, allocations: 0.5555 MB / 0.5374 GB, free: 5.582 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.007089/0.4101, allocations: 3.95 MB / 0.5412 GB, free: 3.531 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003375/0.4135, allocations: 1.793 MB / 0.543 GB, free: 2.398 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002577/0.4161, allocations: 1.158 MB / 0.5441 GB, free: 1.719 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003565/0.4197, allocations: 1.69 MB / 0.5458 GB, free: 24 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001098/0.4208, allocations: 216 kB / 0.546 GB, free: 15.81 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00344/0.4243, allocations: 1.295 MB / 0.5472 GB, free: 14.52 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002828/0.4271, allocations: 1.589 MB / 0.5488 GB, free: 12.92 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00412/0.4313, allocations: 1.859 MB / 0.5506 GB, free: 11.05 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01017/0.4415, allocations: 6.286 MB / 0.5568 GB, free: 4.742 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.4415, allocations: 0 / 0.5568 GB, free: 4.742 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.4415, allocations: 0 / 0.5568 GB, free: 4.742 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002367/0.4418, allocations: 0 / 0.5568 GB, free: 4.742 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.01229/0.4541, allocations: 4.252 MB / 0.5609 GB, free: 424 kB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.436e-05/0.4541, allocations: 12.03 kB / 0.5609 GB, free: 412 kB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002077/0.4562, allocations: 0.6876 MB / 0.5616 GB, free: 15.7 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02057/0.4768, allocations: 5.715 MB / 0.5672 GB, free: 9.977 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007468/0.4843, allocations: 2.837 MB / 0.5699 GB, free: 7.094 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002762/0.4846, allocations: 180.5 kB / 0.5701 GB, free: 6.914 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001693/0.4863, allocations: 307.7 kB / 0.5704 GB, free: 6.613 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02409/0.5104, allocations: 10.72 MB / 0.5809 GB, free: 11.43 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001285/0.5106, allocations: 35.73 kB / 0.5809 GB, free: 11.39 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001004/0.5116, allocations: 111.8 kB / 0.581 GB, free: 11.29 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004711/0.5163, allocations: 2.463 MB / 0.5834 GB, free: 8.82 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02372/0.5401, allocations: 10.16 MB / 0.5933 GB, free: 14.65 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06109/0.6012, allocations: 35.56 MB / 0.6281 GB, free: 10.23 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01246/0.6137, allocations: 5.599 MB / 0.6335 GB, free: 4.398 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003522/0.6173, allocations: 2.338 MB / 0.6358 GB, free: 2.055 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001923/0.6192, allocations: 1.872 MB / 0.6376 GB, free: 15.85 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.102e-05/0.6193, allocations: 53.12 kB / 0.6377 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=224): time 1.512e-05/0.6193, allocations: 0 / 0.6377 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of matching and sorting (n=231): time 0.0396/0.6589, allocations: 15.03 MB / 0.6524 GB, free: 0.6484 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001746/0.6607, allocations: 1.614 MB / 0.654 GB, free: 14.87 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005019/0.6658, allocations: 2.816 MB / 0.6567 GB, free: 12.04 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0004843/0.6663, allocations: 49.7 kB / 0.6567 GB, free: 11.98 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002527/0.6688, allocations: 2.795 MB / 0.6595 GB, free: 9.16 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.00134/0.6702, allocations: 0.8836 MB / 0.6603 GB, free: 8.27 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002827/0.673, allocations: 1.112 MB / 0.6614 GB, free: 7.148 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001501/0.6732, allocations: 309.1 kB / 0.6617 GB, free: 6.844 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004759/0.678, allocations: 2.626 MB / 0.6643 GB, free: 4.211 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007643/0.6856, allocations: 5.635 MB / 0.6698 GB, free: 13.1 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01394/0.6996, allocations: 8.937 MB / 0.6785 GB, free: 2.695 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001413/0.6998, allocations: 32 kB / 0.6785 GB, free: 2.664 MB / 0.5294 GB Notification: Performance of matching and sorting (n=725) (initialization): time 0.07197/0.7717, allocations: 19.03 MB / 0.6971 GB, free: 15.61 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003287/0.7722, allocations: 48 kB / 0.6972 GB, free: 15.56 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04855/0.8207, allocations: 12.02 MB / 0.7089 GB, free: 3.508 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04915/0.8699, allocations: 10.28 MB / 0.719 GB, free: 9.195 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004831/0.8748, allocations: 1.298 MB / 0.7202 GB, free: 7.895 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3109/1.186, allocations: 18.22 MB / 0.738 GB, free: 176.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004628/1.19, allocations: 437 kB / 0.7384 GB, free: 176.6 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009444/1.191, allocations: 320.5 kB / 0.7387 GB, free: 176.5 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.003455/1.195, allocations: 2.012 MB / 0.7407 GB, free: 175.8 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000585/1.195, allocations: 291.8 kB / 0.741 GB, free: 175.8 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008703/1.204, allocations: 5.113 MB / 0.746 GB, free: 174.2 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006216/1.21, allocations: 4.404 MB / 0.7503 GB, free: 172.9 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.689e-06/1.21, allocations: 6.125 kB / 0.7503 GB, free: 172.9 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.668e-05/1.21, allocations: 15.23 kB / 0.7503 GB, free: 172.9 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01868/1.229, allocations: 12.92 MB / 0.7629 GB, free: 168.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.501e-05/1.229, allocations: 7.562 kB / 0.7629 GB, free: 168.5 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001853/1.231, allocations: 457.9 kB / 0.7634 GB, free: 168.3 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002648/1.234, allocations: 0.9346 MB / 0.7643 GB, free: 167.3 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002258/1.234, allocations: 55.91 kB / 0.7643 GB, free: 167.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005518/1.239, allocations: 5.837 MB / 0.77 GB, free: 161.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007509/1.24, allocations: 1.542 MB / 0.7715 GB, free: 159.6 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009406/1.25, allocations: 7.754 MB / 0.7791 GB, free: 151.9 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007679/1.25, allocations: 342.1 kB / 0.7794 GB, free: 151.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003411/1.251, allocations: 50.38 kB / 0.7795 GB, free: 151.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001401/1.252, allocations: 195.7 kB / 0.7797 GB, free: 151.4 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003575/1.253, allocations: 148.8 kB / 0.7798 GB, free: 151.2 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001511/1.253, allocations: 59.98 kB / 0.7799 GB, free: 151.2 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001955/1.255, allocations: 1.737 MB / 0.7816 GB, free: 149.4 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.7e-07/1.255, allocations: 0 / 0.7816 GB, free: 149.4 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.004075/1.259, allocations: 1.097 MB / 0.7826 GB, free: 148.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.009293/1.268, allocations: 8.41 MB / 0.7908 GB, free: 139.9 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.009122/1.277, allocations: 6.631 MB / 0.7973 GB, free: 133.2 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.021e-05/1.277, allocations: 4 kB / 0.7973 GB, free: 133.2 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.003033/1.28, allocations: 2.527 MB / 0.7998 GB, free: 130.7 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002007/1.282, allocations: 386.8 kB / 0.8002 GB, free: 130.3 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1298/1.412, allocations: 59.57 MB / 0.8583 GB, free: 66.1 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002682/1.415, allocations: 3.156 MB / 0.8614 GB, free: 62.91 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.00364/1.419, allocations: 2.064 MB / 0.8634 GB, free: 60.84 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0021/1.421, allocations: 1.663 MB / 0.865 GB, free: 59.18 MB / 0.5762 GB Notification: Performance of SimCode: time 1.012e-06/1.421, allocations: 0 / 0.865 GB, free: 59.18 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1183/1.539, allocations: 70.87 MB / 0.9343 GB, free: 4.555 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.98/22.51, allocations: 10.36 kB / 0.9343 GB, free: 4.551 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