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: 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_3.2.3_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_3.2.3_ModelicaTest.MultiBody.Joints.Spherical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001404/0.001404, allocations: 102.3 kB / 15.98 MB, free: 6.355 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.001457/0.001457, allocations: 190.5 kB / 16.91 MB, free: 6.191 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.574/1.574, allocations: 205.1 MB / 222.8 MB, free: 4.746 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4524/0.4524, allocations: 43.5 MB / 313.6 MB, free: 8.598 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.001459/0.00146, allocations: 63.91 kB / 382.2 MB, free: 8.605 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1618/0.1632, allocations: 57.79 MB / 440 MB, free: 14.72 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.381/0.5443, allocations: 25.71 MB / 465.7 MB, free: 35.82 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01731/0.5616, allocations: 6.283 MB / 472 MB, free: 33.02 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008152/0.5698, allocations: 104.5 kB / 472.1 MB, free: 33.01 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003214/0.5731, allocations: 1.112 MB / 473.2 MB, free: 32.54 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005733/0.5789, allocations: 1.642 MB / 474.9 MB, free: 31.88 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001882/0.5808, allocations: 0.5202 MB / 475.4 MB, free: 31.7 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006809/0.5877, allocations: 3.957 MB / 479.3 MB, free: 30.32 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003172/0.5909, allocations: 1.873 MB / 481.2 MB, free: 29.6 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002671/0.5936, allocations: 1.168 MB / 482.4 MB, free: 29.12 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002129/0.5957, allocations: 1.861 MB / 484.2 MB, free: 28.5 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005524/0.5963, allocations: 217.9 kB / 484.5 MB, free: 28.5 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00299/0.5993, allocations: 1.308 MB / 485.8 MB, free: 28.18 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002606/0.6019, allocations: 1.623 MB / 487.4 MB, free: 27.63 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004656/0.6066, allocations: 1.869 MB / 489.3 MB, free: 26.28 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0135/0.6201, allocations: 6.012 MB / 495.3 MB, free: 24.17 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.496e-05/0.6202, allocations: 4 kB / 495.3 MB, free: 24.16 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.799e-06/0.6202, allocations: 0 / 495.3 MB, free: 24.16 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003613/0.6206, allocations: 0 / 495.3 MB, free: 24.16 MB / 382.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.02154/0.6421, allocations: 4.12 MB / 499.4 MB, free: 21.75 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.085e-05/0.6422, allocations: 9.812 kB / 499.4 MB, free: 21.75 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02148/0.6637, allocations: 5.671 MB / 0.4932 GB, free: 20.52 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009152/0.6729, allocations: 2.243 MB / 0.4954 GB, free: 19.13 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003309/0.6733, allocations: 181.3 kB / 0.4956 GB, free: 19.04 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002751/0.676, allocations: 316.9 kB / 0.4959 GB, free: 18.91 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02532/0.7014, allocations: 10.71 MB / 0.5064 GB, free: 12.87 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001085/0.7015, allocations: 23.81 kB / 0.5064 GB, free: 12.84 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004644/0.702, allocations: 111.8 kB / 0.5065 GB, free: 12.73 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003259/0.7053, allocations: 2.463 MB / 0.5089 GB, free: 10.27 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02149/0.7268, allocations: 10.17 MB / 0.5188 GB, free: 96 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06283/0.7896, allocations: 35.71 MB / 0.5537 GB, free: 11.56 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01188/0.8016, allocations: 5.593 MB / 0.5592 GB, free: 5.738 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003608/0.8053, allocations: 2.332 MB / 0.5614 GB, free: 3.402 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001927/0.8072, allocations: 1.872 MB / 0.5633 GB, free: 1.199 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.275e-05/0.8073, allocations: 60.5 kB / 0.5633 GB, free: 1.129 MB / 430.1 MB Notification: Performance of pre-optimization done (n=224): time 9.989e-06/0.8073, allocations: 0 / 0.5633 GB, free: 1.129 MB / 430.1 MB Notification: Performance of matching and sorting (n=231): time 0.0364/0.8438, allocations: 14.97 MB / 0.5779 GB, free: 2.039 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001654/0.8455, allocations: 1.606 MB / 0.5795 GB, free: 276 kB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005213/0.8507, allocations: 2.81 MB / 0.5823 GB, free: 13.45 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001111/0.8519, allocations: 57.69 kB / 0.5823 GB, free: 13.38 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002305/0.8542, allocations: 2.674 MB / 0.5849 GB, free: 10.67 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00144/0.8556, allocations: 0.8558 MB / 0.5858 GB, free: 9.801 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001858/0.8575, allocations: 1.103 MB / 0.5868 GB, free: 8.684 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001931/0.8577, allocations: 305.2 kB / 0.5871 GB, free: 8.383 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003705/0.8614, allocations: 2.634 MB / 0.5897 GB, free: 5.742 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006723/0.8681, allocations: 5.643 MB / 0.5952 GB, free: 14.63 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01353/0.8817, allocations: 8.945 MB / 0.6039 GB, free: 4.215 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001569/0.8819, allocations: 31.94 kB / 0.604 GB, free: 4.184 MB / 478.1 MB Notification: Performance of matching and sorting (n=733) (initialization): time 0.0668/0.9487, allocations: 19.03 MB / 0.6226 GB, free: 1.109 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001089/0.9489, allocations: 48 kB / 0.6226 GB, free: 1.062 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.042/0.9909, allocations: 12.02 MB / 0.6343 GB, free: 5.016 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.4362/1.427, allocations: 10.28 MB / 0.6444 GB, free: 156.9 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005579/1.433, allocations: 1.317 MB / 0.6457 GB, free: 156.9 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03199/1.465, allocations: 18.21 MB / 0.6635 GB, free: 151.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007714/1.473, allocations: 443.6 kB / 0.6639 GB, free: 151.3 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002173/1.475, allocations: 323.5 kB / 0.6642 GB, free: 151.2 MB / 0.4981 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 (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.007011/1.482, allocations: 2.023 MB / 0.6662 GB, free: 150.5 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009346/1.483, allocations: 268.5 kB / 0.6664 GB, free: 150.5 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01039/1.493, allocations: 5.115 MB / 0.6714 GB, free: 148.9 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00923/1.502, allocations: 4.403 MB / 0.6757 GB, free: 147.6 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.629e-05/1.502, allocations: 2.156 kB / 0.6757 GB, free: 147.6 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.346e-05/1.502, allocations: 17.2 kB / 0.6757 GB, free: 147.6 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02388/1.526, allocations: 12.93 MB / 0.6884 GB, free: 143.1 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-05/1.526, allocations: 9.469 kB / 0.6884 GB, free: 143.1 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001881/1.528, allocations: 463 kB / 0.6888 GB, free: 143.1 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002566/1.531, allocations: 0.9373 MB / 0.6897 GB, free: 142.7 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002486/1.531, allocations: 45.56 kB / 0.6898 GB, free: 142.7 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005846/1.537, allocations: 5.844 MB / 0.6955 GB, free: 138.4 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0009215/1.538, allocations: 1.545 MB / 0.697 GB, free: 136.8 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01072/1.549, allocations: 7.738 MB / 0.7045 GB, free: 129.4 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001275/1.55, allocations: 330.5 kB / 0.7049 GB, free: 129.1 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004266/1.55, allocations: 43.89 kB / 0.7049 GB, free: 129.1 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001452/1.552, allocations: 197.5 kB / 0.7051 GB, free: 128.9 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004254/1.552, allocations: 144.3 kB / 0.7052 GB, free: 128.8 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001704/1.553, allocations: 67.97 kB / 0.7053 GB, free: 128.7 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.002557/1.555, allocations: 1.728 MB / 0.707 GB, free: 127 MB / 0.4981 GB Notification: Performance of sort global known variables: time 3.91e-07/1.555, allocations: 4 kB / 0.707 GB, free: 127 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.005298/1.56, allocations: 1.116 MB / 0.7081 GB, free: 125.9 MB / 0.4981 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.0004664/1.561, allocations: 185 kB / 0.7082 GB, free: 125.7 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.01542/1.576, allocations: 9.679 MB / 0.7177 GB, free: 116 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-05/1.576, allocations: 4 kB / 0.7177 GB, free: 116 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.003132/1.58, allocations: 2.526 MB / 0.7202 GB, free: 113.5 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002571/1.582, allocations: 392.5 kB / 0.7205 GB, free: 113.1 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01958/1.602, allocations: 11.91 MB / 0.7322 GB, free: 101.1 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002851/1.605, allocations: 3.164 MB / 0.7353 GB, free: 97.91 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.004242/1.609, allocations: 2.058 MB / 0.7373 GB, free: 95.85 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006535/1.61, allocations: 219.4 kB / 0.7375 GB, free: 95.63 MB / 0.4981 GB Notification: Performance of SimCode: time 8.62e-07/1.61, allocations: 0 / 0.7375 GB, free: 95.63 MB / 0.4981 GB Notification: Performance of Templates: time 0.08072/1.69, allocations: 46.41 MB / 0.7828 GB, free: 49.23 MB / 0.4981 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Spherical.makefile (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 & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Spherical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Spherical.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Spherical_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/Spherical/Spherical.csv","../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Spherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches