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.001178/0.001178, allocations: 106.5 kB / 17.2 MB, free: 6.289 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.001456/0.001456, allocations: 194 kB / 18.12 MB, free: 5.383 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.433/1.433, allocations: 222.9 MB / 241.8 MB, free: 15.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2353/0.2353, allocations: 44.18 MB / 336.1 MB, free: 3.031 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001343/0.001344, allocations: 75.81 kB / 407.7 MB, free: 27.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1414/0.1428, allocations: 60.82 MB / 468.5 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.02586/0.1687, allocations: 25.7 MB / 494.2 MB, free: 5.051 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01543/0.1842, allocations: 6.392 MB / 0.4889 GB, free: 14.64 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005223/0.1895, allocations: 103.8 kB / 0.489 GB, free: 14.54 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00309/0.1926, allocations: 1.141 MB / 0.4901 GB, free: 13.39 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005269/0.1979, allocations: 1.639 MB / 0.4917 GB, free: 11.75 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001541/0.1995, allocations: 0.5147 MB / 0.4922 GB, free: 11.23 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.007335/0.2068, allocations: 5.407 MB / 0.4975 GB, free: 5.816 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003293/0.2102, allocations: 1.756 MB / 0.4992 GB, free: 4.035 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002633/0.2128, allocations: 1.004 MB / 0.5002 GB, free: 3.027 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003079/0.2159, allocations: 1.775 MB / 0.5019 GB, free: 1.246 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009015/0.2169, allocations: 152 kB / 0.5021 GB, free: 1.098 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2757/0.4925, allocations: 1.328 MB / 0.5033 GB, free: 14.88 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002989/0.4956, allocations: 1.545 MB / 0.5049 GB, free: 14.88 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002726/0.4983, allocations: 1.805 MB / 0.5066 GB, free: 14.34 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008673/0.507, allocations: 5.922 MB / 0.5124 GB, free: 13.5 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.513e-06/0.5071, allocations: 0.5938 kB / 0.5124 GB, free: 13.5 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.5071, allocations: 1.719 kB / 0.5124 GB, free: 13.5 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002153/0.5073, allocations: 0 / 0.5124 GB, free: 13.5 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.01172/0.519, allocations: 4.106 MB / 0.5164 GB, free: 11.74 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.072e-05/0.5191, allocations: 14.31 kB / 0.5164 GB, free: 11.73 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01798/0.5371, allocations: 5.673 MB / 0.522 GB, free: 11.47 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006503/0.5436, allocations: 2.198 MB / 0.5241 GB, free: 10.82 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002174/0.5439, allocations: 184.7 kB / 0.5243 GB, free: 10.82 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001652/0.5455, allocations: 316 kB / 0.5246 GB, free: 10.79 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01969/0.5652, allocations: 10.72 MB / 0.5351 GB, free: 6.414 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001155/0.5654, allocations: 26.31 kB / 0.5351 GB, free: 6.41 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005088/0.5659, allocations: 117.5 kB / 0.5352 GB, free: 6.371 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003966/0.5699, allocations: 2.463 MB / 0.5376 GB, free: 5.422 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02128/0.5912, allocations: 10.16 MB / 0.5475 GB, free: 12.55 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06322/0.6545, allocations: 35.69 MB / 0.5824 GB, free: 8.516 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01234/0.6669, allocations: 5.605 MB / 0.5879 GB, free: 2.695 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003303/0.6702, allocations: 2.332 MB / 0.5901 GB, free: 368 kB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001682/0.6719, allocations: 1.877 MB / 0.592 GB, free: 14.16 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.687e-05/0.672, allocations: 48.56 kB / 0.592 GB, free: 14.1 MB / 446.1 MB Notification: Performance of pre-optimization done (n=224): time 5.17e-06/0.672, allocations: 0 / 0.592 GB, free: 14.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=231): time 0.03625/0.7083, allocations: 14.97 MB / 0.6066 GB, free: 15.05 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001322/0.7096, allocations: 1.524 MB / 0.6081 GB, free: 13.38 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00517/0.7148, allocations: 2.8 MB / 0.6108 GB, free: 10.57 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001145/0.716, allocations: 53.7 kB / 0.6109 GB, free: 10.51 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002718/0.7187, allocations: 2.679 MB / 0.6135 GB, free: 7.828 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0016/0.7203, allocations: 0.8557 MB / 0.6143 GB, free: 6.98 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002186/0.7225, allocations: 1.109 MB / 0.6154 GB, free: 5.863 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001368/0.7227, allocations: 301.1 kB / 0.6157 GB, free: 5.566 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004259/0.727, allocations: 2.63 MB / 0.6183 GB, free: 2.93 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006602/0.7336, allocations: 5.641 MB / 0.6238 GB, free: 11.87 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01167/0.7453, allocations: 8.942 MB / 0.6325 GB, free: 1.891 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001039/0.7454, allocations: 35.69 kB / 0.6326 GB, free: 1.859 MB / 478.1 MB Notification: Performance of matching and sorting (n=733) (initialization): time 0.06343/0.8089, allocations: 19.04 MB / 0.6512 GB, free: 15.43 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001138/0.8091, allocations: 52 kB / 0.6512 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04182/0.8509, allocations: 12.02 MB / 0.6629 GB, free: 3.348 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04343/0.8944, allocations: 10.28 MB / 0.673 GB, free: 9.043 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006144/0.9006, allocations: 1.317 MB / 0.6743 GB, free: 7.828 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02755/0.9281, allocations: 16.05 MB / 0.6899 GB, free: 7.574 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005465/0.9336, allocations: 439.5 kB / 0.6904 GB, free: 7.145 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001633/0.9353, allocations: 323.9 kB / 0.6907 GB, free: 6.828 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.005559/0.9409, allocations: 2.027 MB / 0.6926 GB, free: 4.805 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006537/0.9416, allocations: 268.4 kB / 0.6929 GB, free: 4.539 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3191/1.261, allocations: 5.105 MB / 0.6979 GB, free: 192.2 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009105/1.27, allocations: 4.417 MB / 0.7022 GB, free: 192.1 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.074e-05/1.27, allocations: 2.094 kB / 0.7022 GB, free: 192.1 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.058e-05/1.27, allocations: 7.094 kB / 0.7022 GB, free: 192.1 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02382/1.294, allocations: 12.92 MB / 0.7148 GB, free: 187.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.597e-05/1.294, allocations: 7.781 kB / 0.7148 GB, free: 187.9 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001915/1.296, allocations: 452.4 kB / 0.7153 GB, free: 187.9 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002773/1.299, allocations: 0.9438 MB / 0.7162 GB, free: 187.8 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002547/1.299, allocations: 54.67 kB / 0.7162 GB, free: 187.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006152/1.305, allocations: 5.451 MB / 0.7216 GB, free: 184.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001283/1.306, allocations: 1.462 MB / 0.723 GB, free: 183 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01226/1.319, allocations: 7.731 MB / 0.7305 GB, free: 178.7 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001141/1.32, allocations: 328.8 kB / 0.7309 GB, free: 178.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005127/1.32, allocations: 40 kB / 0.7309 GB, free: 178.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00142/1.322, allocations: 197.6 kB / 0.7311 GB, free: 178.2 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004005/1.322, allocations: 140.8 kB / 0.7312 GB, free: 178.1 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001732/1.322, allocations: 71.97 kB / 0.7313 GB, free: 178 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.002801/1.325, allocations: 1.721 MB / 0.733 GB, free: 176.3 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.91e-07/1.325, allocations: 2.953 kB / 0.733 GB, free: 176.3 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006024/1.331, allocations: 1.109 MB / 0.7341 GB, free: 175.2 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.0006984/1.332, allocations: 185.2 kB / 0.7342 GB, free: 175 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.009877/1.342, allocations: 6.622 MB / 0.7407 GB, free: 168.4 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.1e-05/1.342, allocations: 0 / 0.7407 GB, free: 168.4 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003552/1.345, allocations: 2.524 MB / 0.7432 GB, free: 165.9 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002642/1.348, allocations: 360.7 kB / 0.7435 GB, free: 165.5 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01827/1.366, allocations: 11.9 MB / 0.7551 GB, free: 153.6 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003087/1.369, allocations: 3.156 MB / 0.7582 GB, free: 150.4 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.00448/1.374, allocations: 2.07 MB / 0.7602 GB, free: 148.3 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000771/1.375, allocations: 203.4 kB / 0.7604 GB, free: 148.1 MB / 0.5294 GB Notification: Performance of SimCode: time 8.61e-07/1.375, allocations: 4 kB / 0.7604 GB, free: 148.1 MB / 0.5294 GB Notification: Performance of Templates: time 0.06853/1.443, allocations: 44.7 MB / 0.8041 GB, free: 103.5 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