Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.0008274/0.0008275, allocations: 96.92 kB / 17.35 MB, free: 6.367 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.0008267/0.0008267, allocations: 173.2 kB / 18.25 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.388/1.388, allocations: 223.3 MB / 242.3 MB, free: 220 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2373/0.2373, allocations: 44.25 MB / 337.7 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003603/0.0003603, allocations: 10.28 kB / 410.3 MB, free: 27.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1542/0.1545, allocations: 61.92 MB / 472.3 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.02529/0.1799, allocations: 24.84 MB / 497.1 MB, free: 4.406 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01761/0.1976, allocations: 6.326 MB / 0.4916 GB, free: 14.06 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006172/0.2038, allocations: 103.8 kB / 0.4917 GB, free: 13.96 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001662/0.2055, allocations: 426.2 kB / 0.4921 GB, free: 13.54 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005181/0.2107, allocations: 1.651 MB / 0.4937 GB, free: 11.88 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00151/0.2122, allocations: 0.5148 MB / 0.4942 GB, free: 11.37 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.007415/0.2197, allocations: 5.399 MB / 0.4995 GB, free: 5.961 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003805/0.2235, allocations: 2.275 MB / 0.5017 GB, free: 3.629 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002099/0.2256, allocations: 0.9412 MB / 0.5027 GB, free: 2.684 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002793/0.2284, allocations: 1.701 MB / 0.5043 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005316/0.229, allocations: 124 kB / 0.5044 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.3359/0.5649, allocations: 1.293 MB / 0.5057 GB, free: 14.62 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002767/0.5677, allocations: 1.518 MB / 0.5072 GB, free: 14.62 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004705/0.5725, allocations: 1.778 MB / 0.5089 GB, free: 14.09 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01149/0.584, allocations: 5.803 MB / 0.5146 GB, free: 13.25 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.604e-06/0.584, allocations: 1.531 kB / 0.5146 GB, free: 13.25 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.937e-06/0.584, allocations: 1 kB / 0.5146 GB, free: 13.25 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003043/0.5843, allocations: 0 / 0.5146 GB, free: 13.25 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.009985/0.5943, allocations: 3.393 MB / 0.5179 GB, free: 11.51 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.952e-05/0.5944, allocations: 13.52 kB / 0.5179 GB, free: 11.51 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02044/0.6148, allocations: 5.772 MB / 0.5236 GB, free: 10.77 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007417/0.6223, allocations: 2.194 MB / 0.5257 GB, free: 9.977 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002223/0.6226, allocations: 179.4 kB / 0.5259 GB, free: 9.969 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001172/0.6237, allocations: 316.5 kB / 0.5262 GB, free: 9.941 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01872/0.6425, allocations: 10.73 MB / 0.5366 GB, free: 6.727 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.839e-05/0.6426, allocations: 26.88 kB / 0.5367 GB, free: 6.727 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003966/0.643, allocations: 111.7 kB / 0.5368 GB, free: 6.691 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003643/0.6467, allocations: 2.467 MB / 0.5392 GB, free: 5.738 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02111/0.6678, allocations: 10.18 MB / 0.5491 GB, free: 12.79 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05674/0.7246, allocations: 35.68 MB / 0.584 GB, free: 8.75 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0127/0.7373, allocations: 5.608 MB / 0.5895 GB, free: 2.93 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003575/0.7409, allocations: 2.33 MB / 0.5917 GB, free: 0.5938 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001757/0.7427, allocations: 1.875 MB / 0.5936 GB, free: 14.39 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.418e-05/0.7428, allocations: 55.19 kB / 0.5936 GB, free: 14.33 MB / 446.1 MB Notification: Performance of pre-optimization done (n=224): time 4.979e-06/0.7428, allocations: 0 / 0.5936 GB, free: 14.33 MB / 446.1 MB Notification: Performance of matching and sorting (n=231): time 0.04258/0.7854, allocations: 14.96 MB / 0.6082 GB, free: 15.28 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001556/0.787, allocations: 1.519 MB / 0.6097 GB, free: 13.61 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006907/0.7939, allocations: 2.791 MB / 0.6124 GB, free: 10.81 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007118/0.7946, allocations: 61.64 kB / 0.6125 GB, free: 10.74 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002757/0.7974, allocations: 2.684 MB / 0.6151 GB, free: 8.059 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001699/0.7991, allocations: 0.8461 MB / 0.6159 GB, free: 7.219 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001608/0.8008, allocations: 489.9 kB / 0.6164 GB, free: 6.734 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001392/0.8009, allocations: 301.1 kB / 0.6167 GB, free: 6.438 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005212/0.8061, allocations: 2.634 MB / 0.6193 GB, free: 3.797 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008764/0.8149, allocations: 5.638 MB / 0.6248 GB, free: 12.74 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0133/0.8282, allocations: 8.943 MB / 0.6335 GB, free: 2.758 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000124/0.8284, allocations: 28 kB / 0.6335 GB, free: 2.73 MB / 478.1 MB Notification: Performance of matching and sorting (n=733) (initialization): time 0.07459/0.903, allocations: 19.04 MB / 0.6521 GB, free: 296 kB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001616/0.9032, allocations: 48 kB / 0.6522 GB, free: 248 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.05049/0.9537, allocations: 12.02 MB / 0.6639 GB, free: 4.215 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.05135/1.005, allocations: 10.29 MB / 0.674 GB, free: 9.902 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005812/1.011, allocations: 1.31 MB / 0.6752 GB, free: 8.641 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03057/1.042, allocations: 16.05 MB / 0.6909 GB, free: 8.324 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005549/1.047, allocations: 442.6 kB / 0.6913 GB, free: 7.895 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001499/1.049, allocations: 316 kB / 0.6916 GB, free: 7.586 MB / 0.5294 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.006978/1.056, allocations: 2.028 MB / 0.6936 GB, free: 5.547 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001011/1.057, allocations: 272.4 kB / 0.6939 GB, free: 5.277 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01178/1.069, allocations: 5.121 MB / 0.6989 GB, free: 128 kB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.3285/1.397, allocations: 4.393 MB / 0.7032 GB, free: 192.3 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.1e-05/1.397, allocations: 2.844 kB / 0.7032 GB, free: 192.3 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.367e-05/1.397, allocations: 14.86 kB / 0.7032 GB, free: 192.3 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02291/1.42, allocations: 12.92 MB / 0.7158 GB, free: 188.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.571e-05/1.42, allocations: 7.5 kB / 0.7158 GB, free: 188.3 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002054/1.422, allocations: 462.1 kB / 0.7162 GB, free: 188.3 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002834/1.425, allocations: 0.9376 MB / 0.7172 GB, free: 188.2 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002817/1.425, allocations: 52.45 kB / 0.7172 GB, free: 188.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005339/1.431, allocations: 5.456 MB / 0.7225 GB, free: 184.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007458/1.431, allocations: 1.466 MB / 0.724 GB, free: 183.4 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01127/1.443, allocations: 7.732 MB / 0.7315 GB, free: 178.9 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001041/1.444, allocations: 334 kB / 0.7318 GB, free: 178.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005095/1.444, allocations: 50.36 kB / 0.7319 GB, free: 178.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001608/1.446, allocations: 188.9 kB / 0.7321 GB, free: 178.5 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003884/1.446, allocations: 145.9 kB / 0.7322 GB, free: 178.4 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001653/1.446, allocations: 72.75 kB / 0.7323 GB, free: 178.3 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.002555/1.449, allocations: 1.725 MB / 0.734 GB, free: 176.6 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1e-07/1.449, allocations: 0 / 0.734 GB, free: 176.6 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005343/1.454, allocations: 1.109 MB / 0.735 GB, free: 175.5 MB / 0.5294 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.0006118/1.455, allocations: 183.4 kB / 0.7352 GB, free: 175.3 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01071/1.466, allocations: 6.621 MB / 0.7417 GB, free: 168.7 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.098e-05/1.466, allocations: 0 / 0.7417 GB, free: 168.7 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003904/1.47, allocations: 2.53 MB / 0.7442 GB, free: 166.1 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00522/1.475, allocations: 364.6 kB / 0.7445 GB, free: 165.8 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01699/1.492, allocations: 11.97 MB / 0.7562 GB, free: 153.7 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003112/1.495, allocations: 3.168 MB / 0.7593 GB, free: 150.6 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004558/1.5, allocations: 2.06 MB / 0.7613 GB, free: 148.5 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008334/1.501, allocations: 211.4 kB / 0.7615 GB, free: 148.3 MB / 0.5294 GB Notification: Performance of SimCode: time 1.042e-06/1.501, allocations: 4 kB / 0.7615 GB, free: 148.3 MB / 0.5294 GB Notification: Performance of Templates: time 0.06821/1.569, allocations: 44.01 MB / 0.8045 GB, free: 104.4 MB / 0.5294 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches