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.00152/0.00152, allocations: 109.5 kB / 16.41 MB, free: 6.426 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.001913/0.001913, allocations: 185.5 kB / 17.34 MB, free: 5.73 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.687/1.687, 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.2624/0.2624, allocations: 43.52 MB / 314.1 MB, free: 468 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.001405/0.001405, allocations: 67.91 kB / 441.8 MB, free: 5.652 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1696/0.171, allocations: 57.79 MB / 499.6 MB, free: 11.79 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.01351/0.1845, allocations: 11.8 MB / 0.4994 GB, free: 15.93 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01053/0.1951, allocations: 4.058 MB / 0.5034 GB, free: 11.86 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00303/0.1982, allocations: 59.88 kB / 0.5034 GB, free: 11.8 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00326/0.2015, allocations: 1.171 MB / 0.5046 GB, free: 10.62 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005942/0.2076, allocations: 1.794 MB / 0.5063 GB, free: 8.82 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001691/0.2093, allocations: 0.5535 MB / 0.5069 GB, free: 8.266 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.006622/0.2159, allocations: 3.973 MB / 0.5108 GB, free: 4.285 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00278/0.2187, allocations: 1.791 MB / 0.5125 GB, free: 2.465 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002421/0.2212, allocations: 1.168 MB / 0.5136 GB, free: 1.293 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002797/0.224, allocations: 1.674 MB / 0.5153 GB, free: 15.61 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007091/0.2247, allocations: 224 kB / 0.5155 GB, free: 15.39 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003054/0.2278, allocations: 1.291 MB / 0.5168 GB, free: 14.1 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001879/0.2297, allocations: 1.597 MB / 0.5183 GB, free: 12.5 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002638/0.2323, allocations: 1.851 MB / 0.5201 GB, free: 10.64 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009821/0.2421, allocations: 6.239 MB / 0.5262 GB, free: 4.375 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.335e-06/0.2422, allocations: 4 kB / 0.5262 GB, free: 4.371 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.737e-06/0.2422, allocations: 0 / 0.5262 GB, free: 4.371 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.000296/0.2425, allocations: 0 / 0.5262 GB, free: 4.371 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.01032/0.2529, allocations: 4.115 MB / 0.5302 GB, free: 196 kB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.254e-05/0.2529, allocations: 8.031 kB / 0.5302 GB, free: 188 kB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3913/0.6442, allocations: 5.67 MB / 0.5358 GB, free: 37.84 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0082/0.6525, allocations: 2.26 MB / 0.538 GB, free: 37.25 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003331/0.6529, allocations: 179.5 kB / 0.5382 GB, free: 37.25 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002261/0.6552, allocations: 319.1 kB / 0.5385 GB, free: 37.24 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02782/0.683, allocations: 10.72 MB / 0.5489 GB, free: 32.8 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001166/0.6832, allocations: 26.72 kB / 0.549 GB, free: 32.79 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004453/0.6836, allocations: 112.4 kB / 0.5491 GB, free: 32.75 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004971/0.6886, allocations: 2.461 MB / 0.5515 GB, free: 31.79 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02131/0.71, allocations: 10.16 MB / 0.5614 GB, free: 23.95 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05472/0.7647, allocations: 35.51 MB / 0.5961 GB, free: 3.738 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01258/0.7773, allocations: 5.599 MB / 0.6015 GB, free: 13.91 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003665/0.781, allocations: 2.334 MB / 0.6038 GB, free: 11.57 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001779/0.7828, allocations: 1.884 MB / 0.6057 GB, free: 9.363 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.828e-05/0.7829, allocations: 52.56 kB / 0.6057 GB, free: 9.301 MB / 446.1 MB Notification: Performance of pre-optimization done (n=224): time 4.809e-06/0.7829, allocations: 0 / 0.6057 GB, free: 9.301 MB / 446.1 MB Notification: Performance of matching and sorting (n=231): time 0.04181/0.8247, allocations: 14.97 MB / 0.6203 GB, free: 10.21 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001622/0.8264, allocations: 1.61 MB / 0.6219 GB, free: 8.441 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005925/0.8323, allocations: 2.806 MB / 0.6246 GB, free: 5.621 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006412/0.833, allocations: 53.7 kB / 0.6247 GB, free: 5.562 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0022/0.8352, allocations: 2.681 MB / 0.6273 GB, free: 2.84 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001367/0.8366, allocations: 0.8518 MB / 0.6281 GB, free: 1.977 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001746/0.8383, allocations: 1.103 MB / 0.6292 GB, free: 0.8594 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001323/0.8385, allocations: 305.1 kB / 0.6295 GB, free: 0.5586 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003875/0.8424, allocations: 2.634 MB / 0.6321 GB, free: 13.91 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006543/0.8489, allocations: 5.64 MB / 0.6376 GB, free: 6.805 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01307/0.862, allocations: 8.937 MB / 0.6463 GB, free: 12.4 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001516/0.8622, allocations: 32 kB / 0.6464 GB, free: 12.37 MB / 494.1 MB Notification: Performance of matching and sorting (n=733) (initialization): time 0.07318/0.9354, allocations: 19.04 MB / 0.665 GB, free: 9.289 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001189/0.9356, allocations: 52 kB / 0.665 GB, free: 9.238 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04834/0.9839, allocations: 12.02 MB / 0.6767 GB, free: 13.2 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0517/1.036, allocations: 10.28 MB / 0.6868 GB, free: 2.887 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005888/1.042, allocations: 1.314 MB / 0.6881 GB, free: 1.57 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03389/1.076, allocations: 18.23 MB / 0.7059 GB, free: 15.07 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005506/1.081, allocations: 439.5 kB / 0.7063 GB, free: 14.64 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00153/1.083, allocations: 320 kB / 0.7066 GB, free: 14.33 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.004623/1.087, allocations: 2.024 MB / 0.7086 GB, free: 12.3 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007703/1.088, allocations: 272.5 kB / 0.7088 GB, free: 12.03 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009513/1.098, allocations: 5.11 MB / 0.7138 GB, free: 6.879 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008031/1.106, allocations: 4.405 MB / 0.7181 GB, free: 2.461 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.494e-05/1.106, allocations: 4 kB / 0.7181 GB, free: 2.457 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.008e-05/1.106, allocations: 11.95 kB / 0.7181 GB, free: 2.445 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02641/1.132, allocations: 12.92 MB / 0.7307 GB, free: 5.332 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.737e-05/1.132, allocations: 8 kB / 0.7307 GB, free: 5.324 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002142/1.134, allocations: 459.2 kB / 0.7312 GB, free: 4.875 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003109/1.138, allocations: 0.9426 MB / 0.7321 GB, free: 3.922 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002122/1.138, allocations: 51.91 kB / 0.7322 GB, free: 3.871 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007184/1.145, allocations: 5.829 MB / 0.7378 GB, free: 13.76 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001157/1.146, allocations: 1.554 MB / 0.7394 GB, free: 12.05 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01276/1.159, allocations: 7.726 MB / 0.7469 GB, free: 4.199 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001223/1.16, allocations: 329.6 kB / 0.7472 GB, free: 3.855 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008687/1.161, allocations: 43.97 kB / 0.7473 GB, free: 3.812 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00222/1.163, allocations: 195.7 kB / 0.7475 GB, free: 3.621 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004959/1.164, allocations: 148.9 kB / 0.7476 GB, free: 3.473 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000206/1.164, allocations: 63.98 kB / 0.7477 GB, free: 3.41 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.00398/1.168, allocations: 1.729 MB / 0.7493 GB, free: 1.676 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2e-07/1.168, allocations: 4 kB / 0.7493 GB, free: 1.672 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.006014/1.174, allocations: 1.104 MB / 0.7504 GB, free: 0.5703 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.0006728/1.175, allocations: 185.5 kB / 0.7506 GB, free: 392 kB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.3045/1.479, allocations: 6.668 MB / 0.7571 GB, free: 198.8 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.157e-05/1.479, allocations: 1 kB / 0.7571 GB, free: 198.8 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.004073/1.483, allocations: 2.518 MB / 0.7596 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.002523/1.486, allocations: 383 kB / 0.7599 GB, free: 198 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01936/1.505, allocations: 9.847 MB / 0.7696 GB, free: 194 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004162/1.51, allocations: 3.158 MB / 0.7726 GB, free: 192.8 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.005429/1.515, allocations: 2.063 MB / 0.7747 GB, free: 192.7 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000761/1.516, allocations: 217.9 kB / 0.7749 GB, free: 192.7 MB / 0.5762 GB Notification: Performance of SimCode: time 1.282e-06/1.516, allocations: 0 / 0.7749 GB, free: 192.7 MB / 0.5762 GB Notification: Performance of Templates: time 0.06322/1.579, allocations: 43.91 MB / 0.8177 GB, free: 155.5 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