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.001572/0.001573, allocations: 107.7 kB / 16.41 MB, free: 6.453 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.001882/0.001883, allocations: 189.5 kB / 17.34 MB, free: 5.738 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.463/1.463, allocations: 205.1 MB / 223.2 MB, free: 12.24 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.2175/0.2175, allocations: 43.53 MB / 314.1 MB, free: 460 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.001554/0.001554, allocations: 67.89 kB / 441.8 MB, free: 5.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1576/0.1591, allocations: 57.79 MB / 499.6 MB, free: 11.8 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.01328/0.1725, allocations: 11.82 MB / 0.4994 GB, free: 15.92 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01166/0.1842, allocations: 4.051 MB / 0.5034 GB, free: 11.86 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003197/0.1874, allocations: 67.75 kB / 0.5035 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00336/0.1908, allocations: 1.171 MB / 0.5046 GB, free: 10.62 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006779/0.1977, allocations: 1.751 MB / 0.5063 GB, free: 8.859 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001961/0.1997, allocations: 0.5496 MB / 0.5068 GB, free: 8.309 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00695/0.2067, allocations: 3.973 MB / 0.5107 GB, free: 4.324 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00405/0.2108, allocations: 1.787 MB / 0.5125 GB, free: 2.508 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003324/0.2141, allocations: 1.164 MB / 0.5136 GB, free: 1.34 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003323/0.2175, allocations: 1.674 MB / 0.5152 GB, free: 15.66 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006693/0.2182, allocations: 220 kB / 0.5155 GB, free: 15.44 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002967/0.2211, allocations: 1.291 MB / 0.5167 GB, free: 14.15 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001745/0.2229, allocations: 1.593 MB / 0.5183 GB, free: 12.55 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001989/0.2249, allocations: 1.855 MB / 0.5201 GB, free: 10.68 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008029/0.2329, allocations: 6.266 MB / 0.5262 GB, free: 4.391 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.007e-06/0.233, allocations: 0 / 0.5262 GB, free: 4.391 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.387e-06/0.233, allocations: 4 kB / 0.5262 GB, free: 4.387 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001742/0.2332, allocations: 0 / 0.5262 GB, free: 4.387 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.008975/0.2422, allocations: 4.228 MB / 0.5303 GB, free: 88 kB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.351e-05/0.2422, allocations: 15.95 kB / 0.5303 GB, free: 72 kB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.422/0.6643, allocations: 5.692 MB / 0.5359 GB, free: 37.61 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007141/0.6715, allocations: 2.27 MB / 0.5381 GB, free: 37.23 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002642/0.6718, allocations: 182.2 kB / 0.5383 GB, free: 37.22 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001595/0.6734, allocations: 317.6 kB / 0.5386 GB, free: 37.21 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02264/0.6961, allocations: 10.71 MB / 0.5491 GB, free: 32.79 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001015/0.6962, allocations: 38.75 kB / 0.5491 GB, free: 32.76 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003887/0.6966, allocations: 112.2 kB / 0.5492 GB, free: 32.72 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004626/0.7013, allocations: 2.462 MB / 0.5516 GB, free: 31.76 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01996/0.7212, allocations: 10.16 MB / 0.5615 GB, free: 23.91 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05227/0.7736, allocations: 35.58 MB / 0.5963 GB, free: 3.805 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01228/0.7859, allocations: 5.592 MB / 0.6017 GB, free: 13.99 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003454/0.7894, allocations: 2.334 MB / 0.604 GB, free: 11.65 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002161/0.7916, allocations: 1.872 MB / 0.6058 GB, free: 9.445 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.691e-05/0.7917, allocations: 64.5 kB / 0.6059 GB, free: 9.371 MB / 446.1 MB Notification: Performance of pre-optimization done (n=224): time 6.813e-06/0.7917, allocations: 0 / 0.6059 GB, free: 9.371 MB / 446.1 MB Notification: Performance of matching and sorting (n=231): time 0.03817/0.8299, allocations: 15.03 MB / 0.6206 GB, free: 10.32 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001673/0.8316, allocations: 1.616 MB / 0.6222 GB, free: 8.547 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004593/0.8362, allocations: 2.807 MB / 0.6249 GB, free: 5.727 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006234/0.8369, allocations: 61.62 kB / 0.625 GB, free: 5.66 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002217/0.8391, allocations: 2.795 MB / 0.6277 GB, free: 2.836 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00142/0.8405, allocations: 0.8875 MB / 0.6286 GB, free: 1.941 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001786/0.8423, allocations: 1.116 MB / 0.6296 GB, free: 0.8125 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001153/0.8425, allocations: 301.1 kB / 0.6299 GB, free: 0.5156 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003711/0.8462, allocations: 2.638 MB / 0.6325 GB, free: 13.87 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005935/0.8521, allocations: 5.632 MB / 0.638 GB, free: 6.77 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01173/0.8639, allocations: 8.941 MB / 0.6467 GB, free: 12.36 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.185e-05/0.864, allocations: 32 kB / 0.6468 GB, free: 12.33 MB / 494.1 MB Notification: Performance of matching and sorting (n=733) (initialization): time 0.06741/0.9314, allocations: 19.06 MB / 0.6654 GB, free: 9.23 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 8.931e-05/0.9316, allocations: 48 kB / 0.6654 GB, free: 9.184 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04485/0.9764, allocations: 12.01 MB / 0.6772 GB, free: 13.14 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04979/1.026, allocations: 10.29 MB / 0.6872 GB, free: 2.824 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005637/1.032, allocations: 1.31 MB / 0.6885 GB, free: 1.512 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03491/1.067, allocations: 18.23 MB / 0.7063 GB, free: 15 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006308/1.073, allocations: 431.7 kB / 0.7067 GB, free: 14.57 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007061/1.074, allocations: 324 kB / 0.707 GB, free: 14.26 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 (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.004592/1.079, allocations: 2.027 MB / 0.709 GB, free: 12.22 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006448/1.079, allocations: 290.1 kB / 0.7093 GB, free: 11.93 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009752/1.089, allocations: 5.103 MB / 0.7143 GB, free: 6.793 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007787/1.097, allocations: 4.409 MB / 0.7186 GB, free: 2.371 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.588e-06/1.097, allocations: 0 / 0.7186 GB, free: 2.371 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.816e-05/1.097, allocations: 11.91 kB / 0.7186 GB, free: 2.359 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02216/1.119, allocations: 12.92 MB / 0.7312 GB, free: 5.238 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.458e-05/1.119, allocations: 8 kB / 0.7312 GB, free: 5.23 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002104/1.121, allocations: 459.2 kB / 0.7316 GB, free: 4.781 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003051/1.124, allocations: 0.9466 MB / 0.7326 GB, free: 3.824 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002072/1.124, allocations: 47.98 kB / 0.7326 GB, free: 3.777 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00753/1.132, allocations: 5.835 MB / 0.7383 GB, free: 13.66 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001286/1.133, allocations: 1.55 MB / 0.7398 GB, free: 11.96 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0132/1.147, allocations: 7.751 MB / 0.7474 GB, free: 4.082 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001142/1.148, allocations: 351.2 kB / 0.7477 GB, free: 3.719 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003769/1.148, allocations: 36 kB / 0.7478 GB, free: 3.684 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001555/1.15, allocations: 199.6 kB / 0.7479 GB, free: 3.488 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004117/1.15, allocations: 140.9 kB / 0.7481 GB, free: 3.348 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001809/1.15, allocations: 76.27 kB / 0.7482 GB, free: 3.273 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.002821/1.153, allocations: 1.725 MB / 0.7498 GB, free: 1.543 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.11e-07/1.153, allocations: 0 / 0.7498 GB, free: 1.543 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.005126/1.158, allocations: 1.102 MB / 0.7509 GB, free: 452 kB / 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.0005311/1.159, allocations: 190.8 kB / 0.7511 GB, free: 252 kB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.3468/1.506, allocations: 6.655 MB / 0.7576 GB, free: 198.9 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.232e-05/1.506, allocations: 1.719 kB / 0.7576 GB, free: 198.9 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.003963/1.51, allocations: 2.529 MB / 0.7601 GB, free: 198.2 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002625/1.512, allocations: 383.6 kB / 0.7604 GB, free: 198 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02162/1.534, allocations: 9.979 MB / 0.7702 GB, free: 193.8 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005236/1.539, allocations: 3.165 MB / 0.7733 GB, free: 192.6 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.005694/1.545, allocations: 2.067 MB / 0.7753 GB, free: 192.5 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007682/1.546, allocations: 208.5 kB / 0.7755 GB, free: 192.5 MB / 0.5762 GB Notification: Performance of SimCode: time 1.553e-06/1.546, allocations: 0 / 0.7755 GB, free: 192.5 MB / 0.5762 GB Notification: Performance of Templates: time 0.06218/1.608, allocations: 43.91 MB / 0.8184 GB, free: 155.2 MB / 0.5762 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","/var/lib/jenkins/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