Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.MultiBody.Joints.Spherical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001236/0.001235, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002026/0.002026, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.384/1.384, allocations: 227.4 MB / 246.8 MB, free: 10.53 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2318/0.2318, allocations: 46.1 MB / 344.1 MB, free: 11.56 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001537/0.001537, allocations: 72.17 kB / 417.6 MB, free: 19.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1417/0.1432, allocations: 62.45 MB / 480 MB, free: 5.25 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.01285/0.1561, allocations: 11.75 MB / 491.8 MB, free: 9.434 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01018/0.1664, allocations: 4.057 MB / 495.8 MB, free: 5.363 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002849/0.1693, allocations: 59.88 kB / 495.9 MB, free: 5.305 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003255/0.1726, allocations: 1.187 MB / 497.1 MB, free: 4.113 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005369/0.178, allocations: 1.72 MB / 498.8 MB, free: 2.387 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001753/0.1798, allocations: 0.5535 MB / 499.3 MB, free: 1.832 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006799/0.1866, allocations: 4.027 MB / 0.4916 GB, free: 13.8 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003604/0.1902, allocations: 1.787 MB / 0.4933 GB, free: 11.99 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002681/0.1929, allocations: 1.148 MB / 0.4944 GB, free: 10.84 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003159/0.1961, allocations: 1.678 MB / 0.4961 GB, free: 9.152 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001071/0.1972, allocations: 220 kB / 0.4963 GB, free: 8.938 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003246/0.2005, allocations: 1.271 MB / 0.4975 GB, free: 7.664 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002471/0.203, allocations: 1.566 MB / 0.4991 GB, free: 6.094 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003648/0.2066, allocations: 1.828 MB / 0.5008 GB, free: 4.254 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.3044/0.511, allocations: 5.891 MB / 0.5066 GB, free: 18.71 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.226e-06/0.5111, allocations: 0 / 0.5066 GB, free: 18.71 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.5111, allocations: 0 / 0.5066 GB, free: 18.71 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002713/0.5114, allocations: 1.312 kB / 0.5066 GB, free: 18.71 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.01165/0.523, allocations: 4.075 MB / 0.5106 GB, free: 17.04 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.346e-05/0.5231, allocations: 11.97 kB / 0.5106 GB, free: 17.04 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02283/0.5459, allocations: 6.133 MB / 0.5166 GB, free: 16.78 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007112/0.5531, allocations: 2.163 MB / 0.5187 GB, free: 16.28 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001716/0.5533, allocations: 178.3 kB / 0.5189 GB, free: 16.27 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001182/0.5545, allocations: 316 kB / 0.5192 GB, free: 16.27 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0201/0.5746, allocations: 10.72 MB / 0.5296 GB, free: 12.82 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.725e-05/0.5747, allocations: 20.41 kB / 0.5297 GB, free: 12.82 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003763/0.5751, allocations: 118.6 kB / 0.5298 GB, free: 12.78 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00363/0.5787, allocations: 2.459 MB / 0.5322 GB, free: 11.84 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01642/0.5951, allocations: 10.16 MB / 0.5421 GB, free: 4.352 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05561/0.6508, allocations: 35.69 MB / 0.5769 GB, free: 368 kB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01227/0.6631, allocations: 5.595 MB / 0.5824 GB, free: 10.55 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003553/0.6667, allocations: 2.334 MB / 0.5847 GB, free: 8.219 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002051/0.6688, allocations: 1.875 MB / 0.5865 GB, free: 6.02 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.822e-05/0.6689, allocations: 56.56 kB / 0.5866 GB, free: 5.957 MB / 430.1 MB Notification: Performance of pre-optimization done (n=224): time 8.937e-06/0.6689, allocations: 3.656 kB / 0.5866 GB, free: 5.957 MB / 430.1 MB Notification: Performance of matching and sorting (n=231): time 0.04033/0.7092, allocations: 14.96 MB / 0.6012 GB, free: 6.922 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001573/0.7108, allocations: 1.618 MB / 0.6028 GB, free: 5.156 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006253/0.7171, allocations: 2.787 MB / 0.6055 GB, free: 2.355 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003547/0.7175, allocations: 57.69 kB / 0.6055 GB, free: 2.293 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002521/0.7201, allocations: 2.671 MB / 0.6081 GB, free: 15.63 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001373/0.7214, allocations: 0.8468 MB / 0.609 GB, free: 14.79 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002607/0.7241, allocations: 1.113 MB / 0.6101 GB, free: 13.67 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001013/0.7242, allocations: 301.1 kB / 0.6103 GB, free: 13.37 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004349/0.7285, allocations: 2.636 MB / 0.6129 GB, free: 10.73 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006592/0.7352, allocations: 5.63 MB / 0.6184 GB, free: 3.68 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01143/0.7466, allocations: 8.947 MB / 0.6272 GB, free: 9.695 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001152/0.7468, allocations: 28 kB / 0.6272 GB, free: 9.668 MB / 478.1 MB Notification: Performance of matching and sorting (n=733) (initialization): time 0.06673/0.8135, allocations: 17.15 MB / 0.6439 GB, free: 8.84 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000142/0.8137, allocations: 52.19 kB / 0.644 GB, free: 8.789 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04657/0.8603, allocations: 10.63 MB / 0.6544 GB, free: 14.13 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04832/0.9086, allocations: 8.648 MB / 0.6628 GB, free: 5.461 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005179/0.9139, allocations: 1.314 MB / 0.6641 GB, free: 4.145 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03164/0.9456, allocations: 17.81 MB / 0.6815 GB, free: 2.059 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005611/0.9512, allocations: 427.6 kB / 0.6819 GB, free: 1.641 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001893/0.9531, allocations: 327.6 kB / 0.6822 GB, free: 1.324 MB / 0.5137 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.005479/0.9586, allocations: 2.018 MB / 0.6842 GB, free: 15.29 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008864/0.9595, allocations: 272.4 kB / 0.6844 GB, free: 15.02 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01078/0.9703, allocations: 5.108 MB / 0.6894 GB, free: 9.887 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00782/0.9782, allocations: 4.403 MB / 0.6937 GB, free: 5.465 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.398e-05/0.9782, allocations: 3.938 kB / 0.6937 GB, free: 5.461 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.153e-05/0.9783, allocations: 16 kB / 0.6937 GB, free: 5.445 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02777/1.006, allocations: 12.95 MB / 0.7064 GB, free: 8.352 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.221e-05/1.006, allocations: 8 kB / 0.7064 GB, free: 8.344 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002149/1.008, allocations: 455.2 kB / 0.7068 GB, free: 7.898 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003091/1.011, allocations: 0.9468 MB / 0.7078 GB, free: 6.941 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003453/1.012, allocations: 43.98 kB / 0.7078 GB, free: 6.898 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008238/1.02, allocations: 5.836 MB / 0.7135 GB, free: 0.7812 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.3414/1.361, allocations: 1.544 MB / 0.715 GB, free: 197.2 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02658/1.388, allocations: 7.734 MB / 0.7226 GB, free: 195.6 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001596/1.39, allocations: 325.7 kB / 0.7229 GB, free: 195.4 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001903/1.392, allocations: 42.27 kB / 0.7229 GB, free: 195.4 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004659/1.396, allocations: 199.8 kB / 0.7231 GB, free: 195.4 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00113/1.398, allocations: 142.5 kB / 0.7232 GB, free: 195.4 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000612/1.398, allocations: 67.98 kB / 0.7233 GB, free: 195.4 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.007139/1.405, allocations: 1.719 MB / 0.725 GB, free: 194.8 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.577e-06/1.405, allocations: 0 / 0.725 GB, free: 194.8 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01099/1.416, allocations: 1.09 MB / 0.726 GB, free: 194.7 MB / 0.545 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.001391/1.418, allocations: 191.5 kB / 0.7262 GB, free: 194.6 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.02898/1.447, allocations: 9.615 MB / 0.7356 GB, free: 192.2 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.619e-05/1.447, allocations: 0 / 0.7356 GB, free: 192.2 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.006929/1.454, allocations: 2.531 MB / 0.7381 GB, free: 191.2 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005306/1.459, allocations: 367.8 kB / 0.7384 GB, free: 191 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02683/1.486, allocations: 9.937 MB / 0.7481 GB, free: 183.8 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005867/1.492, allocations: 3.156 MB / 0.7512 GB, free: 181.3 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.007247/1.499, allocations: 2.06 MB / 0.7532 GB, free: 179.9 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001221/1.501, allocations: 209.6 kB / 0.7534 GB, free: 179.7 MB / 0.545 GB Notification: Performance of SimCode: time 7.52e-07/1.501, allocations: 0 / 0.7534 GB, free: 179.7 MB / 0.545 GB Notification: Performance of Templates: time 0.1178/1.618, allocations: 45.97 MB / 0.7983 GB, free: 134.2 MB / 0.545 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.MultiBody.Joints.Spherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches