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.001202/0.001202, allocations: 108.1 kB / 16.41 MB, free: 6.488 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.001168/0.001169, allocations: 185.5 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.707/1.707, 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.2709/0.2709, allocations: 43.53 MB / 314.1 MB, free: 452 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.001446/0.001446, allocations: 60.23 kB / 441.8 MB, free: 5.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1658/0.1673, allocations: 57.81 MB / 499.6 MB, free: 11.79 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.01333/0.1807, allocations: 11.81 MB / 0.4994 GB, free: 15.92 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01006/0.1908, allocations: 4.055 MB / 0.5034 GB, free: 11.85 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002815/0.1937, allocations: 63.81 kB / 0.5034 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002981/0.1967, allocations: 1.171 MB / 0.5046 GB, free: 10.61 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005712/0.2025, allocations: 1.802 MB / 0.5064 GB, free: 8.805 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001838/0.2043, allocations: 0.5496 MB / 0.5069 GB, free: 8.254 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.006971/0.2113, allocations: 3.965 MB / 0.5108 GB, free: 4.277 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003396/0.2147, allocations: 1.783 MB / 0.5125 GB, free: 2.465 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002737/0.2175, allocations: 1.175 MB / 0.5137 GB, free: 1.285 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002401/0.2199, allocations: 1.678 MB / 0.5153 GB, free: 15.6 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005811/0.2205, allocations: 220 kB / 0.5155 GB, free: 15.39 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002583/0.2231, allocations: 1.287 MB / 0.5168 GB, free: 14.1 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001759/0.2249, allocations: 1.601 MB / 0.5183 GB, free: 12.49 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002173/0.2271, allocations: 1.848 MB / 0.5201 GB, free: 10.63 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007984/0.2351, allocations: 6.235 MB / 0.5262 GB, free: 4.375 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.907e-06/0.2351, allocations: 4 kB / 0.5262 GB, free: 4.371 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.394e-06/0.2351, allocations: 0 / 0.5262 GB, free: 4.371 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001964/0.2353, allocations: 4 kB / 0.5262 GB, free: 4.367 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.00949/0.2448, allocations: 4.115 MB / 0.5302 GB, free: 188 kB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.906e-05/0.2449, allocations: 11.97 kB / 0.5303 GB, free: 176 kB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.401/0.646, allocations: 5.665 MB / 0.5358 GB, free: 37.84 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007289/0.6533, allocations: 2.264 MB / 0.538 GB, free: 37.27 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002301/0.6536, allocations: 179.1 kB / 0.5382 GB, free: 37.26 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001581/0.6552, allocations: 315.6 kB / 0.5385 GB, free: 37.25 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02146/0.6766, allocations: 10.72 MB / 0.5489 GB, free: 32.83 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.446e-05/0.6768, allocations: 30.81 kB / 0.549 GB, free: 32.81 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003681/0.6771, allocations: 112 kB / 0.5491 GB, free: 32.77 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004376/0.6815, allocations: 2.462 MB / 0.5515 GB, free: 31.81 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01971/0.7012, allocations: 10.16 MB / 0.5614 GB, free: 23.96 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06434/0.7656, allocations: 35.51 MB / 0.5961 GB, free: 3.746 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01303/0.7787, allocations: 5.598 MB / 0.6015 GB, free: 13.93 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004097/0.7829, allocations: 2.338 MB / 0.6038 GB, free: 11.58 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001951/0.7849, allocations: 1.876 MB / 0.6057 GB, free: 9.375 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.998e-05/0.785, allocations: 61.22 kB / 0.6057 GB, free: 9.305 MB / 446.1 MB Notification: Performance of pre-optimization done (n=224): time 1.051e-05/0.785, allocations: 0 / 0.6057 GB, free: 9.305 MB / 446.1 MB Notification: Performance of matching and sorting (n=231): time 0.04325/0.8283, allocations: 14.97 MB / 0.6203 GB, free: 10.22 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002085/0.8304, allocations: 1.612 MB / 0.6219 GB, free: 8.453 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007594/0.838, allocations: 2.81 MB / 0.6246 GB, free: 5.629 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009217/0.839, allocations: 49.7 kB / 0.6247 GB, free: 5.574 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002651/0.8417, allocations: 2.681 MB / 0.6273 GB, free: 2.852 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001819/0.8435, allocations: 0.8557 MB / 0.6281 GB, free: 1.984 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004103/0.8477, allocations: 1.103 MB / 0.6292 GB, free: 0.8672 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001102/0.8478, allocations: 301.1 kB / 0.6295 GB, free: 0.5703 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00485/0.8526, allocations: 2.638 MB / 0.6321 GB, free: 13.92 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008646/0.8613, allocations: 5.644 MB / 0.6376 GB, free: 6.809 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0124/0.8737, allocations: 8.937 MB / 0.6463 GB, free: 12.41 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001303/0.8739, allocations: 32 kB / 0.6464 GB, free: 12.38 MB / 494.1 MB Notification: Performance of matching and sorting (n=733) (initialization): time 0.06528/0.9392, allocations: 19.04 MB / 0.6649 GB, free: 9.297 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001442/0.9394, allocations: 52 kB / 0.665 GB, free: 9.246 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04189/0.9813, allocations: 12.01 MB / 0.6767 GB, free: 13.21 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04434/1.026, allocations: 10.29 MB / 0.6868 GB, free: 2.895 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00525/1.031, allocations: 1.306 MB / 0.6881 GB, free: 1.586 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03084/1.062, allocations: 18.23 MB / 0.7059 GB, free: 15.07 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005276/1.067, allocations: 435.4 kB / 0.7063 GB, free: 14.65 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001539/1.069, allocations: 320 kB / 0.7066 GB, free: 14.34 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.006191/1.075, allocations: 2.024 MB / 0.7086 GB, free: 12.3 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009499/1.076, allocations: 276.5 kB / 0.7088 GB, free: 12.03 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01146/1.087, allocations: 5.102 MB / 0.7138 GB, free: 6.887 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009011/1.096, allocations: 4.405 MB / 0.7181 GB, free: 2.469 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.812e-05/1.096, allocations: 4 kB / 0.7181 GB, free: 2.465 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.386e-05/1.097, allocations: 11.95 kB / 0.7181 GB, free: 2.453 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0277/1.124, allocations: 12.92 MB / 0.7307 GB, free: 5.34 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-05/1.124, allocations: 8 kB / 0.7307 GB, free: 5.332 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002169/1.126, allocations: 463.2 kB / 0.7312 GB, free: 4.879 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002894/1.129, allocations: 0.9465 MB / 0.7321 GB, free: 3.922 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003741/1.13, allocations: 47.97 kB / 0.7322 GB, free: 3.875 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00712/1.137, allocations: 5.829 MB / 0.7378 GB, free: 13.77 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001158/1.138, allocations: 1.55 MB / 0.7394 GB, free: 12.06 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01242/1.151, allocations: 7.726 MB / 0.7469 GB, free: 4.207 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001015/1.152, allocations: 329.6 kB / 0.7472 GB, free: 3.863 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008067/1.152, allocations: 47.98 kB / 0.7473 GB, free: 3.816 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001946/1.154, allocations: 196 kB / 0.7475 GB, free: 3.625 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000458/1.155, allocations: 144.9 kB / 0.7476 GB, free: 3.48 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000219/1.155, allocations: 67.98 kB / 0.7477 GB, free: 3.414 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.003912/1.159, allocations: 1.733 MB / 0.7493 GB, free: 1.676 MB / 0.5762 GB Notification: Performance of sort global known variables: time 6.92e-07/1.159, allocations: 0 / 0.7493 GB, free: 1.676 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.007316/1.166, allocations: 1.108 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.0008385/1.167, allocations: 177.4 kB / 0.7506 GB, free: 400 kB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.3125/1.48, allocations: 6.666 MB / 0.7571 GB, free: 198.9 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.75e-05/1.48, allocations: 1.562 kB / 0.7571 GB, free: 198.9 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.004458/1.484, allocations: 2.523 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.003061/1.487, allocations: 381.4 kB / 0.7599 GB, free: 198.1 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02447/1.512, allocations: 9.844 MB / 0.7696 GB, free: 194 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007009/1.519, allocations: 3.169 MB / 0.7726 GB, free: 192.8 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.005895/1.525, allocations: 2.061 MB / 0.7747 GB, free: 192.7 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001228/1.526, allocations: 212 kB / 0.7749 GB, free: 192.7 MB / 0.5762 GB Notification: Performance of SimCode: time 1.402e-06/1.526, allocations: 0 / 0.7749 GB, free: 192.7 MB / 0.5762 GB Notification: Performance of Templates: time 0.06999/1.596, 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