Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Joints.Spherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body.Q.1.|body.Q.2.|body.Q.3.|body.Q.4.|body.w_a.1.|body.w_a.2.|body.w_a.3.",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical") translateModel(ModelicaTest.MultiBody.Joints.Spherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body.Q.1.|body.Q.2.|body.Q.3.|body.Q.4.|body.w_a.1.|body.w_a.2.|body.w_a.3.",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001016/0.001016, allocations: 196.2 kB / 17.43 MB, free: 4.273 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.289/1.289, allocations: 229.5 MB / 247.7 MB, free: 6.293 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000775/0.0007751, allocations: 94.84 kB / 299.9 MB, free: 5.316 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2976/0.2976, allocations: 45.01 MB / 397 MB, free: 31.44 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003101/0.00031, allocations: 8 kB / 470.8 MB, free: 7.078 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3036/0.304, allocations: 63.11 MB / 0.5214 GB, free: 38.4 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.01666/0.3207, allocations: 23.25 MB / 0.5441 GB, free: 21.96 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01541/0.3361, allocations: 9.524 MB / 0.5534 GB, free: 13.85 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004703/0.3409, allocations: 107.6 kB / 0.5535 GB, free: 13.83 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001082/0.342, allocations: 429.5 kB / 0.5539 GB, free: 13.68 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004338/0.3463, allocations: 1.636 MB / 0.5555 GB, free: 13.03 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00148/0.3478, allocations: 0.5084 MB / 0.556 GB, free: 12.86 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.007006/0.3548, allocations: 5.527 MB / 0.5614 GB, free: 11.02 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003128/0.358, allocations: 2.569 MB / 0.5639 GB, free: 9.188 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001623/0.3597, allocations: 1.03 MB / 0.5649 GB, free: 8.648 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002142/0.3618, allocations: 1.684 MB / 0.5665 GB, free: 7.746 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003858/0.3622, allocations: 124.7 kB / 0.5667 GB, free: 7.711 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002117/0.3643, allocations: 1.256 MB / 0.5679 GB, free: 6.453 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009868/0.3653, allocations: 1.503 MB / 0.5694 GB, free: 4.945 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001123/0.3665, allocations: 1.775 MB / 0.5711 GB, free: 3.152 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004841/0.3713, allocations: 5.794 MB / 0.5767 GB, free: 13.34 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.154e-06/0.3713, allocations: 3.938 kB / 0.5768 GB, free: 13.33 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.3714, allocations: 0 / 0.5768 GB, free: 13.33 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000144/0.3715, allocations: 0 / 0.5768 GB, free: 13.33 MB / 394.7 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.005568/0.3771, allocations: 3.386 MB / 0.5801 GB, free: 9.883 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.128e-05/0.3771, allocations: 8.031 kB / 0.5801 GB, free: 9.875 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01756/0.3947, allocations: 6.242 MB / 0.5862 GB, free: 3.617 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004881/0.3996, allocations: 2.17 MB / 0.5883 GB, free: 1.402 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001315/0.3998, allocations: 180.8 kB / 0.5885 GB, free: 1.223 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007492/0.4005, allocations: 311.6 kB / 0.5888 GB, free: 0.918 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01513/0.4157, allocations: 10.71 MB / 0.5992 GB, free: 5.75 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.29e-05/0.4158, allocations: 31.66 kB / 0.5992 GB, free: 5.719 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003076/0.4161, allocations: 115.8 kB / 0.5993 GB, free: 5.605 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003413/0.4195, allocations: 2.467 MB / 0.6018 GB, free: 3.137 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0184/0.4379, allocations: 10.13 MB / 0.6116 GB, free: 9 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04804/0.486, allocations: 35.69 MB / 0.6465 GB, free: 4.445 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01055/0.4966, allocations: 5.588 MB / 0.652 GB, free: 14.63 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00346/0.5001, allocations: 2.336 MB / 0.6542 GB, free: 12.29 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001925/0.5021, allocations: 1.884 MB / 0.6561 GB, free: 10.08 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.369e-05/0.5022, allocations: 56.44 kB / 0.6561 GB, free: 10.02 MB / 474.7 MB Notification: Performance of pre-optimization done (n=224): time 5.4e-06/0.5022, allocations: 0 / 0.6561 GB, free: 10.02 MB / 474.7 MB Notification: Performance of matching and sorting (n=231): time 0.03466/0.5369, allocations: 14.93 MB / 0.6707 GB, free: 10.97 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001274/0.5382, allocations: 1.523 MB / 0.6722 GB, free: 9.289 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005007/0.5432, allocations: 2.779 MB / 0.6749 GB, free: 6.496 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004383/0.5437, allocations: 53.69 kB / 0.675 GB, free: 6.438 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002196/0.5459, allocations: 2.67 MB / 0.6776 GB, free: 3.727 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001092/0.547, allocations: 0.8596 MB / 0.6784 GB, free: 2.855 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004766/0.5475, allocations: 112 kB / 0.6785 GB, free: 2.746 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0004292/0.5479, allocations: 0.5416 MB / 0.679 GB, free: 2.195 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2412/0.7891, allocations: 2.61 MB / 0.6816 GB, free: 129.5 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006891/0.7961, allocations: 5.62 MB / 0.6871 GB, free: 125.2 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009197/0.8053, allocations: 8.912 MB / 0.6958 GB, free: 118.7 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001419/0.8055, allocations: 35.5 kB / 0.6958 GB, free: 118.7 MB / 490.7 MB Notification: Performance of matching and sorting (n=733) (initialization): time 0.05611/0.8616, allocations: 17.1 MB / 0.7125 GB, free: 115.5 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.613e-05/0.8617, allocations: 49.28 kB / 0.7126 GB, free: 115.5 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.03608/0.8978, allocations: 10.62 MB / 0.7229 GB, free: 111.3 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03817/0.936, allocations: 8.644 MB / 0.7314 GB, free: 104.8 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004003/0.9401, allocations: 1.306 MB / 0.7326 GB, free: 103.5 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.021/0.9611, allocations: 15.61 MB / 0.7479 GB, free: 87.65 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004339/0.9655, allocations: 420.8 kB / 0.7483 GB, free: 87.24 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006232/0.9661, allocations: 328.9 kB / 0.7486 GB, free: 86.93 MB / 490.7 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 (661): * Single equations (assignments): 650 * 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.003038/0.9692, allocations: 2.023 MB / 0.7506 GB, free: 84.96 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000405/0.9696, allocations: 274.1 kB / 0.7508 GB, free: 84.84 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006737/0.9763, allocations: 5.099 MB / 0.7558 GB, free: 79.71 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005771/0.9821, allocations: 4.393 MB / 0.7601 GB, free: 75.3 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.457e-06/0.9821, allocations: 4 kB / 0.7601 GB, free: 75.3 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.763e-05/0.9822, allocations: 11.95 kB / 0.7601 GB, free: 75.29 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01689/0.9991, allocations: 12.92 MB / 0.7727 GB, free: 62.28 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-05/0.9991, allocations: 4 kB / 0.7727 GB, free: 62.28 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001773/1.001, allocations: 464.6 kB / 0.7732 GB, free: 61.82 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002506/1.003, allocations: 0.9347 MB / 0.7741 GB, free: 60.88 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001832/1.004, allocations: 55.88 kB / 0.7742 GB, free: 60.83 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004747/1.008, allocations: 5.459 MB / 0.7795 GB, free: 55.13 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006787/1.009, allocations: 1.451 MB / 0.7809 GB, free: 53.54 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009957/1.019, allocations: 7.722 MB / 0.7884 GB, free: 45.83 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006881/1.02, allocations: 333.5 kB / 0.7888 GB, free: 45.48 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003245/1.02, allocations: 51.55 kB / 0.7888 GB, free: 45.44 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001275/1.021, allocations: 195.7 kB / 0.789 GB, free: 45.25 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000357/1.022, allocations: 137 kB / 0.7891 GB, free: 45.11 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000138/1.022, allocations: 66.39 kB / 0.7892 GB, free: 45.05 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001853/1.024, allocations: 1.705 MB / 0.7909 GB, free: 43.34 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.51e-07/1.024, allocations: 3.938 kB / 0.7909 GB, free: 43.33 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.003811/1.028, allocations: 1.116 MB / 0.7919 GB, free: 42.22 MB / 490.7 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.000402/1.028, allocations: 188.4 kB / 0.7921 GB, free: 42.04 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.009098/1.037, allocations: 6.519 MB / 0.7985 GB, free: 35.5 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.135e-05/1.037, allocations: 0 / 0.7985 GB, free: 35.5 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002934/1.04, allocations: 2.532 MB / 0.801 GB, free: 32.93 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004081/1.044, allocations: 369.3 kB / 0.8013 GB, free: 32.57 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01346/1.058, allocations: 11.97 MB / 0.813 GB, free: 20.48 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002647/1.06, allocations: 3.169 MB / 0.8161 GB, free: 17.28 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.004078/1.064, allocations: 2.056 MB / 0.8181 GB, free: 15.22 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006738/1.065, allocations: 215.4 kB / 0.8183 GB, free: 15.01 MB / 490.7 MB Notification: Performance of SimCode: time 1.332e-06/1.065, allocations: 0 / 0.8183 GB, free: 15.01 MB / 490.7 MB Notification: Performance of Templates: time 0.06693/1.132, allocations: 44.02 MB / 0.8613 GB, free: 3.145 MB / 0.5105 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Spherical/Spherical.csv","../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches