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.001224/0.001224, allocations: 102.1 kB / 16.27 MB, free: 5.973 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.001477/0.001477, allocations: 188.6 kB / 17.19 MB, free: 5.605 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.414/1.414, allocations: 205.1 MB / 223.1 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.2184/0.2184, allocations: 43.52 MB / 313.9 MB, free: 0.5391 MB / 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.001451/0.001451, allocations: 70.5 kB / 382.8 MB, free: 56.68 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1153/0.1168, allocations: 57.79 MB / 440.6 MB, free: 6.848 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.01696/0.1338, allocations: 11.82 MB / 452.4 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01089/0.1448, allocations: 4.051 MB / 456.5 MB, free: 6.902 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002057/0.1469, allocations: 59.88 kB / 456.5 MB, free: 6.844 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003385/0.1503, allocations: 1.179 MB / 457.7 MB, free: 5.66 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005683/0.156, allocations: 1.751 MB / 459.5 MB, free: 3.902 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001963/0.158, allocations: 0.5535 MB / 460 MB, free: 3.348 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007649/0.1657, allocations: 3.954 MB / 464 MB, free: 15.39 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003944/0.1697, allocations: 1.787 MB / 465.8 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002764/0.1725, allocations: 1.164 MB / 466.9 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004021/0.1765, allocations: 1.678 MB / 468.6 MB, free: 10.72 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001312/0.1779, allocations: 220 kB / 468.8 MB, free: 10.51 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004225/0.1822, allocations: 1.291 MB / 470.1 MB, free: 9.215 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002664/0.1849, allocations: 1.597 MB / 471.7 MB, free: 7.613 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003494/0.1884, allocations: 1.863 MB / 473.6 MB, free: 5.738 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01039/0.1988, allocations: 5.981 MB / 479.6 MB, free: 15.74 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.052e-05/0.1989, allocations: 4 kB / 479.6 MB, free: 15.73 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.1989, allocations: 0 / 479.6 MB, free: 15.73 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001973/0.1991, allocations: 0 / 479.6 MB, free: 15.73 MB / 366.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.0126/0.2117, allocations: 4.142 MB / 483.7 MB, free: 11.52 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.279e-05/0.2118, allocations: 15.89 kB / 483.7 MB, free: 11.51 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001774/0.2136, allocations: 0.6837 MB / 484.4 MB, free: 10.81 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02259/0.2362, allocations: 5.696 MB / 490.1 MB, free: 5.102 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007742/0.244, allocations: 2.954 MB / 493.1 MB, free: 2.098 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002153/0.2443, allocations: 180.5 kB / 493.2 MB, free: 1.918 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001486/0.2458, allocations: 307.6 kB / 493.5 MB, free: 1.617 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01776/0.2635, allocations: 10.73 MB / 0.4924 GB, free: 6.43 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.784e-05/0.2637, allocations: 23.81 kB / 0.4925 GB, free: 6.406 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003819/0.2641, allocations: 115.8 kB / 0.4926 GB, free: 6.293 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003902/0.268, allocations: 2.459 MB / 0.495 GB, free: 3.832 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02/0.288, allocations: 10.16 MB / 0.5049 GB, free: 9.66 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2507/0.5388, allocations: 35.71 MB / 0.5398 GB, free: 66.13 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01165/0.5505, allocations: 5.592 MB / 0.5452 GB, free: 64.97 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002929/0.5534, allocations: 2.337 MB / 0.5475 GB, free: 64.96 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001359/0.5548, allocations: 1.874 MB / 0.5493 GB, free: 63.26 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.344e-05/0.5549, allocations: 50.31 kB / 0.5494 GB, free: 63.21 MB / 414.1 MB Notification: Performance of pre-optimization done (n=224): time 5.42e-06/0.5549, allocations: 3 kB / 0.5494 GB, free: 63.21 MB / 414.1 MB Notification: Performance of matching and sorting (n=231): time 0.03355/0.5884, allocations: 15.01 MB / 0.5641 GB, free: 59.11 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001035/0.5895, allocations: 1.611 MB / 0.5656 GB, free: 57.53 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003759/0.5933, allocations: 2.829 MB / 0.5684 GB, free: 56.25 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005041/0.5938, allocations: 58.03 kB / 0.5684 GB, free: 56.19 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001302/0.5951, allocations: 2.681 MB / 0.5711 GB, free: 53.86 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009998/0.5961, allocations: 0.8519 MB / 0.5719 GB, free: 53.14 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001394/0.5976, allocations: 1.095 MB / 0.573 GB, free: 52.08 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 4.46e-05/0.5976, allocations: 304.5 kB / 0.5733 GB, free: 51.79 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002945/0.6006, allocations: 2.626 MB / 0.5758 GB, free: 49.15 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003896/0.6045, allocations: 5.635 MB / 0.5813 GB, free: 42.11 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007699/0.6122, allocations: 8.938 MB / 0.59 GB, free: 31.79 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.383e-05/0.6123, allocations: 28 kB / 0.5901 GB, free: 31.76 MB / 414.1 MB Notification: Performance of matching and sorting (n=725) (initialization): time 0.06067/0.673, allocations: 19.02 MB / 0.6086 GB, free: 12.7 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.541e-05/0.6731, allocations: 55.98 kB / 0.6087 GB, free: 12.65 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04398/0.7171, allocations: 12.02 MB / 0.6204 GB, free: 0.6094 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.05073/0.7678, allocations: 10.29 MB / 0.6305 GB, free: 6.293 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004878/0.7728, allocations: 1.301 MB / 0.6318 GB, free: 4.992 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03095/0.8038, allocations: 18.22 MB / 0.6495 GB, free: 2.504 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004949/0.8087, allocations: 435.5 kB / 0.65 GB, free: 2.078 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009961/0.8098, allocations: 316 kB / 0.6503 GB, free: 1.77 MB / 446.1 MB 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.003643/0.8134, allocations: 2.025 MB / 0.6522 GB, free: 15.73 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006226/0.8141, allocations: 280.2 kB / 0.6525 GB, free: 15.46 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00885/0.8229, allocations: 5.121 MB / 0.6575 GB, free: 10.31 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007605/0.8306, allocations: 4.393 MB / 0.6618 GB, free: 5.902 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.579e-05/0.8306, allocations: 4.938 kB / 0.6618 GB, free: 5.898 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.189e-05/0.8307, allocations: 7.969 kB / 0.6618 GB, free: 5.891 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02248/0.8532, allocations: 12.96 MB / 0.6745 GB, free: 8.805 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.516e-05/0.8532, allocations: 8.188 kB / 0.6745 GB, free: 8.797 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002134/0.8554, allocations: 459.2 kB / 0.6749 GB, free: 8.348 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003132/0.8585, allocations: 0.9386 MB / 0.6758 GB, free: 7.398 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003222/0.8589, allocations: 55.73 kB / 0.6759 GB, free: 7.348 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007041/0.8659, allocations: 5.824 MB / 0.6816 GB, free: 1.246 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001267/0.8672, allocations: 1.555 MB / 0.6831 GB, free: 15.55 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01264/0.8799, allocations: 7.732 MB / 0.6906 GB, free: 7.695 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009063/0.8808, allocations: 329.6 kB / 0.691 GB, free: 7.352 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000518/0.8814, allocations: 43.98 kB / 0.691 GB, free: 7.309 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001596/0.883, allocations: 192.2 kB / 0.6912 GB, free: 7.121 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000395/0.8834, allocations: 144.9 kB / 0.6913 GB, free: 6.977 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001662/0.8836, allocations: 71.73 kB / 0.6914 GB, free: 6.91 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002741/0.8863, allocations: 1.745 MB / 0.6931 GB, free: 5.16 MB / 494.1 MB Notification: Performance of sort global known variables: time 5.11e-07/0.8863, allocations: 4 kB / 0.6931 GB, free: 5.156 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005456/0.8918, allocations: 1.097 MB / 0.6942 GB, free: 4.062 MB / 494.1 MB 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.01313/0.9049, allocations: 8.383 MB / 0.7023 GB, free: 11.54 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.01678/0.9218, allocations: 9.644 MB / 0.7118 GB, free: 1.906 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.344e-05/0.9218, allocations: 5.938 kB / 0.7118 GB, free: 1.902 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.00429/0.9261, allocations: 2.528 MB / 0.7142 GB, free: 15.33 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002564/0.9287, allocations: 386.9 kB / 0.7146 GB, free: 14.96 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3763/1.305, allocations: 62.62 MB / 0.7758 GB, free: 152.2 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002847/1.308, allocations: 3.164 MB / 0.7789 GB, free: 149 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004064/1.312, allocations: 2.057 MB / 0.7809 GB, free: 147 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00186/1.314, allocations: 1.679 MB / 0.7825 GB, free: 145.4 MB / 0.5137 GB Notification: Performance of SimCode: time 1.051e-06/1.314, allocations: 0 / 0.7825 GB, free: 145.4 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1048/1.419, allocations: 73.9 MB / 0.8547 GB, free: 71.54 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 13/14.42, allocations: 11.94 kB / 0.8547 GB, free: 71.53 MB / 0.5137 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