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.001177/0.001177, allocations: 104.7 kB / 16.4 MB, free: 6.484 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.001143/0.001143, allocations: 188.1 kB / 17.34 MB, free: 5.766 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.378/1.378, allocations: 205.1 MB / 223.2 MB, free: 12.23 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.2137/0.2137, allocations: 43.53 MB / 314.1 MB, free: 464 kB / 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.001414/0.001414, allocations: 67.91 kB / 441.3 MB, free: 6.168 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1173/0.1187, allocations: 57.79 MB / 499.1 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.01189/0.1307, allocations: 11.82 MB / 0.4989 GB, free: 440 kB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.009715/0.1405, allocations: 4.055 MB / 0.5029 GB, free: 12.36 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002319/0.1428, allocations: 63.81 kB / 0.503 GB, free: 12.3 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003115/0.146, allocations: 1.171 MB / 0.5041 GB, free: 11.12 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004866/0.151, allocations: 1.759 MB / 0.5058 GB, free: 9.355 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001719/0.1527, allocations: 0.5496 MB / 0.5064 GB, free: 8.805 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005774/0.1585, allocations: 3.965 MB / 0.5102 GB, free: 4.828 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003169/0.1617, allocations: 1.799 MB / 0.512 GB, free: 3 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002365/0.1641, allocations: 1.16 MB / 0.5131 GB, free: 1.836 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002547/0.1667, allocations: 1.682 MB / 0.5148 GB, free: 152 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008765/0.1676, allocations: 220 kB / 0.515 GB, free: 15.93 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002929/0.1705, allocations: 1.291 MB / 0.5162 GB, free: 14.64 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002129/0.1727, allocations: 1.601 MB / 0.5178 GB, free: 13.04 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003505/0.1762, allocations: 1.859 MB / 0.5196 GB, free: 11.16 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008612/0.1848, allocations: 6.255 MB / 0.5257 GB, free: 4.887 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.153e-06/0.1849, allocations: 0 / 0.5257 GB, free: 4.887 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.525e-06/0.1849, allocations: 0 / 0.5257 GB, free: 4.887 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002137/0.1851, allocations: 4 kB / 0.5257 GB, free: 4.883 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.01042/0.1955, allocations: 4.15 MB / 0.5298 GB, free: 0.668 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.336e-05/0.1956, allocations: 19.83 kB / 0.5298 GB, free: 0.6484 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.226/0.4216, allocations: 0.6823 MB / 0.5305 GB, free: 37.05 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01842/0.4401, allocations: 5.688 MB / 0.536 GB, free: 36.85 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006406/0.4465, allocations: 2.965 MB / 0.5389 GB, free: 36.26 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001474/0.4467, allocations: 179.4 kB / 0.5391 GB, free: 36.25 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001056/0.4478, allocations: 315 kB / 0.5394 GB, free: 36.24 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01594/0.4637, allocations: 10.72 MB / 0.5499 GB, free: 31.86 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.927e-05/0.4638, allocations: 26.75 kB / 0.5499 GB, free: 31.84 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000347/0.4642, allocations: 114.7 kB / 0.55 GB, free: 31.8 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003226/0.4674, allocations: 2.463 MB / 0.5524 GB, free: 30.84 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0165/0.4839, allocations: 10.16 MB / 0.5623 GB, free: 22.67 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04151/0.5255, allocations: 35.51 MB / 0.597 GB, free: 2.418 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01073/0.5363, allocations: 5.598 MB / 0.6025 GB, free: 12.59 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002839/0.5391, allocations: 2.33 MB / 0.6047 GB, free: 10.26 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001604/0.5407, allocations: 1.876 MB / 0.6066 GB, free: 8.051 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.596e-05/0.5408, allocations: 57.22 kB / 0.6066 GB, free: 7.984 MB / 446.1 MB Notification: Performance of pre-optimization done (n=224): time 4.278e-06/0.5408, allocations: 0 / 0.6066 GB, free: 7.984 MB / 446.1 MB Notification: Performance of matching and sorting (n=231): time 0.03294/0.5738, allocations: 15 MB / 0.6213 GB, free: 8.863 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001189/0.575, allocations: 1.613 MB / 0.6229 GB, free: 7.094 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003381/0.5784, allocations: 2.827 MB / 0.6256 GB, free: 4.254 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003944/0.5788, allocations: 53.69 kB / 0.6257 GB, free: 4.195 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001633/0.5804, allocations: 2.681 MB / 0.6283 GB, free: 1.473 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008491/0.5813, allocations: 0.8557 MB / 0.6291 GB, free: 0.6055 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001372/0.5827, allocations: 1.095 MB / 0.6302 GB, free: 15.5 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 8.099e-05/0.5828, allocations: 305.2 kB / 0.6305 GB, free: 15.2 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003437/0.5862, allocations: 2.634 MB / 0.6331 GB, free: 12.56 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005419/0.5916, allocations: 5.631 MB / 0.6386 GB, free: 5.457 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01084/0.6025, allocations: 8.933 MB / 0.6473 GB, free: 11.05 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001094/0.6027, allocations: 32.88 kB / 0.6473 GB, free: 11.02 MB / 494.1 MB Notification: Performance of matching and sorting (n=725) (initialization): time 0.05921/0.6619, allocations: 19.02 MB / 0.6659 GB, free: 7.969 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 7.887e-05/0.662, allocations: 51.98 kB / 0.6659 GB, free: 7.918 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.03965/0.7017, allocations: 12.01 MB / 0.6777 GB, free: 11.88 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04265/0.7444, allocations: 10.28 MB / 0.6877 GB, free: 1.57 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004778/0.7492, allocations: 1.301 MB / 0.689 GB, free: 276 kB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03138/0.7806, allocations: 18.23 MB / 0.7068 GB, free: 13.77 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005753/0.7864, allocations: 435.4 kB / 0.7072 GB, free: 13.34 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001315/0.7877, allocations: 320 kB / 0.7075 GB, free: 13.03 MB / 0.545 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.005575/0.7933, allocations: 2.027 MB / 0.7095 GB, free: 10.99 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009984/0.7944, allocations: 272.4 kB / 0.7097 GB, free: 10.72 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01152/0.8059, allocations: 5.107 MB / 0.7147 GB, free: 5.578 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007296/0.8132, allocations: 4.405 MB / 0.719 GB, free: 1.16 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.479e-05/0.8133, allocations: 4 kB / 0.719 GB, free: 1.156 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.842e-05/0.8133, allocations: 7.969 kB / 0.719 GB, free: 1.148 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03008/0.8434, allocations: 12.93 MB / 0.7317 GB, free: 4.023 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.807e-05/0.8435, allocations: 8 kB / 0.7317 GB, free: 4.016 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002951/0.8465, allocations: 459.2 kB / 0.7321 GB, free: 3.566 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00407/0.8505, allocations: 0.9428 MB / 0.733 GB, free: 2.613 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004883/0.8511, allocations: 47.98 kB / 0.7331 GB, free: 2.566 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009942/0.861, allocations: 5.825 MB / 0.7388 GB, free: 12.46 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001434/0.8625, allocations: 1.554 MB / 0.7403 GB, free: 10.75 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01764/0.8802, allocations: 7.73 MB / 0.7478 GB, free: 2.895 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001122/0.8813, allocations: 329.6 kB / 0.7481 GB, free: 2.551 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008863/0.8822, allocations: 43.98 kB / 0.7482 GB, free: 2.508 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002343/0.8846, allocations: 203.6 kB / 0.7484 GB, free: 2.309 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005754/0.8852, allocations: 137 kB / 0.7485 GB, free: 2.172 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002882/0.8855, allocations: 67.98 kB / 0.7486 GB, free: 2.105 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.004521/0.89, allocations: 1.745 MB / 0.7503 GB, free: 364 kB / 0.5762 GB Notification: Performance of sort global known variables: time 4.11e-07/0.89, allocations: 0 / 0.7503 GB, free: 364 kB / 0.5762 GB Notification: Performance of remove unused functions: time 0.2526/1.143, allocations: 1.105 MB / 0.7513 GB, free: 194 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.01287/1.156, allocations: 8.38 MB / 0.7595 GB, free: 193 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.01239/1.168, allocations: 6.636 MB / 0.766 GB, free: 190.8 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.644e-05/1.168, allocations: 1.312 kB / 0.766 GB, free: 190.8 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.004154/1.172, allocations: 2.521 MB / 0.7685 GB, free: 189.8 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002288/1.175, allocations: 378.9 kB / 0.7688 GB, free: 189.6 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.123/1.298, allocations: 59.5 MB / 0.8269 GB, free: 140.2 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002591/1.3, allocations: 3.171 MB / 0.83 GB, free: 137 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003607/1.304, allocations: 2.063 MB / 0.8321 GB, free: 134.9 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00175/1.306, allocations: 1.669 MB / 0.8337 GB, free: 133.3 MB / 0.5762 GB Notification: Performance of SimCode: time 7.01e-07/1.306, allocations: 0 / 0.8337 GB, free: 133.3 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09788/1.403, allocations: 72.22 MB / 0.9042 GB, free: 60.95 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.39/20.79, allocations: 23.75 kB / 0.9042 GB, free: 60.92 MB / 0.5762 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