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.00118/0.00118, allocations: 103.2 kB / 16.27 MB, free: 6.41 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.001269/0.001269, allocations: 190.5 kB / 17.2 MB, free: 5.953 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.412/1.412, allocations: 205.1 MB / 223.1 MB, free: 12.3 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.2144/0.2144, allocations: 43.52 MB / 313.9 MB, free: 0.5273 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.001469/0.001469, allocations: 71.3 kB / 382.8 MB, free: 56.74 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09481/0.09629, allocations: 57.79 MB / 440.6 MB, free: 6.816 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.01052/0.1068, allocations: 11.81 MB / 452.4 MB, free: 10.94 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008098/0.115, allocations: 4.051 MB / 456.5 MB, free: 6.875 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002068/0.1171, allocations: 59.88 kB / 456.5 MB, free: 6.816 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002424/0.1196, allocations: 1.175 MB / 457.7 MB, free: 5.637 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004665/0.1243, allocations: 1.751 MB / 459.5 MB, free: 3.879 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001263/0.1256, allocations: 0.5535 MB / 460 MB, free: 3.324 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004546/0.1302, allocations: 3.961 MB / 464 MB, free: 15.36 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001984/0.1322, allocations: 1.787 MB / 465.8 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001419/0.1336, allocations: 1.164 MB / 466.9 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001736/0.1353, allocations: 1.682 MB / 468.6 MB, free: 10.69 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003905/0.1357, allocations: 216 kB / 468.8 MB, free: 10.48 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002097/0.1378, allocations: 1.295 MB / 470.1 MB, free: 9.18 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001367/0.1392, allocations: 1.589 MB / 471.7 MB, free: 7.586 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001858/0.1411, allocations: 1.867 MB / 473.6 MB, free: 5.707 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005977/0.1471, allocations: 5.981 MB / 479.6 MB, free: 15.71 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.903e-06/0.1471, allocations: 0 / 479.6 MB, free: 15.71 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1471, allocations: 7.938 kB / 479.6 MB, free: 15.7 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001095/0.1472, allocations: 0 / 479.6 MB, free: 15.7 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.006997/0.1543, allocations: 4.138 MB / 483.7 MB, free: 11.49 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.118e-05/0.1543, allocations: 11.89 kB / 483.7 MB, free: 11.48 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008701/0.1552, allocations: 0.6915 MB / 484.4 MB, free: 10.78 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0191/0.1743, allocations: 5.692 MB / 490.1 MB, free: 5.07 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006318/0.1807, allocations: 2.946 MB / 493 MB, free: 2.074 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001405/0.1808, allocations: 180.5 kB / 493.2 MB, free: 1.895 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000879/0.1817, allocations: 315.6 kB / 493.5 MB, free: 1.586 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01922/0.201, allocations: 10.72 MB / 0.4924 GB, free: 6.406 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001422/0.2011, allocations: 23.81 kB / 0.4925 GB, free: 6.383 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001081/0.2022, allocations: 115.8 kB / 0.4926 GB, free: 6.27 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005101/0.2074, allocations: 2.459 MB / 0.495 GB, free: 3.809 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02731/0.2347, allocations: 10.17 MB / 0.5049 GB, free: 9.633 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2414/0.4761, allocations: 35.71 MB / 0.5398 GB, free: 66.19 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0139/0.4901, allocations: 5.593 MB / 0.5452 GB, free: 65.03 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003226/0.4933, allocations: 2.336 MB / 0.5475 GB, free: 65.01 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001458/0.4948, allocations: 1.873 MB / 0.5493 GB, free: 63.31 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.445e-05/0.4949, allocations: 54.22 kB / 0.5494 GB, free: 63.27 MB / 414.1 MB Notification: Performance of pre-optimization done (n=224): time 5.781e-06/0.4949, allocations: 0 / 0.5494 GB, free: 63.27 MB / 414.1 MB Notification: Performance of matching and sorting (n=231): time 0.03126/0.5261, allocations: 15.01 MB / 0.564 GB, free: 59.14 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001049/0.5272, allocations: 1.613 MB / 0.5656 GB, free: 57.57 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003099/0.5303, allocations: 2.823 MB / 0.5684 GB, free: 56.23 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003232/0.5307, allocations: 56.33 kB / 0.5684 GB, free: 56.18 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001093/0.5318, allocations: 2.685 MB / 0.5711 GB, free: 53.84 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005615/0.5324, allocations: 0.8521 MB / 0.5719 GB, free: 53.12 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001131/0.5335, allocations: 1.095 MB / 0.573 GB, free: 52.02 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 3.355e-05/0.5335, allocations: 305.1 kB / 0.5732 GB, free: 51.71 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002735/0.5363, allocations: 2.626 MB / 0.5758 GB, free: 49.08 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005326/0.5416, allocations: 5.631 MB / 0.5813 GB, free: 42.06 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01198/0.5536, allocations: 8.944 MB / 0.59 GB, free: 31.72 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.978e-05/0.5537, allocations: 32.5 kB / 0.5901 GB, free: 31.69 MB / 414.1 MB Notification: Performance of matching and sorting (n=725) (initialization): time 0.0603/0.614, allocations: 19.02 MB / 0.6086 GB, free: 12.63 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001056/0.6142, allocations: 48 kB / 0.6087 GB, free: 12.59 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04442/0.6586, allocations: 12.02 MB / 0.6204 GB, free: 0.543 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.05073/0.7094, allocations: 10.29 MB / 0.6305 GB, free: 6.23 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004782/0.7142, allocations: 1.303 MB / 0.6317 GB, free: 4.926 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0313/0.7455, allocations: 18.22 MB / 0.6495 GB, free: 2.441 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004686/0.7502, allocations: 439.4 kB / 0.65 GB, free: 2.016 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001336/0.7516, allocations: 323.4 kB / 0.6503 GB, free: 1.703 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.004313/0.7559, allocations: 2.022 MB / 0.6522 GB, free: 15.68 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008612/0.7568, allocations: 272.4 kB / 0.6525 GB, free: 15.41 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00929/0.7661, allocations: 5.114 MB / 0.6575 GB, free: 10.27 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007562/0.7737, allocations: 4.411 MB / 0.6618 GB, free: 5.848 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.104e-05/0.7737, allocations: 3.984 kB / 0.6618 GB, free: 5.844 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.804e-05/0.7737, allocations: 7.969 kB / 0.6618 GB, free: 5.836 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02174/0.7955, allocations: 12.94 MB / 0.6745 GB, free: 8.758 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.493e-05/0.7955, allocations: 8 kB / 0.6745 GB, free: 8.75 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002142/0.7977, allocations: 459.2 kB / 0.6749 GB, free: 8.301 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003015/0.8007, allocations: 0.9469 MB / 0.6758 GB, free: 7.344 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002127/0.801, allocations: 55.91 kB / 0.6759 GB, free: 7.289 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006542/0.8075, allocations: 5.83 MB / 0.6816 GB, free: 1.188 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00103/0.8086, allocations: 1.549 MB / 0.6831 GB, free: 15.49 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01134/0.8199, allocations: 7.732 MB / 0.6906 GB, free: 7.637 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000696/0.8206, allocations: 329.6 kB / 0.691 GB, free: 7.293 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000563/0.8212, allocations: 47.81 kB / 0.691 GB, free: 7.25 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001728/0.8229, allocations: 191.7 kB / 0.6912 GB, free: 7.062 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003923/0.8233, allocations: 148.9 kB / 0.6913 GB, free: 6.914 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001704/0.8235, allocations: 63.98 kB / 0.6914 GB, free: 6.852 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003001/0.8265, allocations: 1.741 MB / 0.6931 GB, free: 5.105 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.8265, allocations: 0 / 0.6931 GB, free: 5.105 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.00478/0.8313, allocations: 1.103 MB / 0.6942 GB, free: 4.008 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.01182/0.8432, allocations: 8.382 MB / 0.7023 GB, free: 11.49 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.01585/0.859, allocations: 9.649 MB / 0.7118 GB, free: 1.848 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.014e-05/0.8591, allocations: 4.062 kB / 0.7118 GB, free: 1.844 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.003832/0.8629, allocations: 2.528 MB / 0.7142 GB, free: 15.27 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002707/0.8656, allocations: 392.6 kB / 0.7146 GB, free: 14.91 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3235/1.189, allocations: 62.61 MB / 0.7758 GB, free: 152.1 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002609/1.192, allocations: 3.17 MB / 0.7789 GB, free: 148.9 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004016/1.196, allocations: 2.063 MB / 0.7809 GB, free: 146.9 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0019/1.198, allocations: 1.667 MB / 0.7825 GB, free: 145.3 MB / 0.5137 GB Notification: Performance of SimCode: time 9.62e-07/1.198, allocations: 0 / 0.7825 GB, free: 145.3 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1024/1.3, allocations: 73.91 MB / 0.8547 GB, free: 71.44 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.11/14.41, allocations: 3.938 kB / 0.8547 GB, free: 71.44 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Spherical_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_Spherical_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 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.mat","/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