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.001057/0.001057, allocations: 106.1 kB / 18.3 MB, free: 4.887 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.0009975/0.0009976, allocations: 195.3 kB / 19.23 MB, free: 3.961 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.393/1.393, allocations: 222.9 MB / 242.9 MB, free: 15.22 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.2176/0.2176, allocations: 44.19 MB / 337.3 MB, free: 2.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001225/0.001225, allocations: 68.92 kB / 409.1 MB, free: 27.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.1154, allocations: 60.83 MB / 469.9 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.01302/0.1285, allocations: 11.79 MB / 481.7 MB, free: 2.508 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008065/0.1366, allocations: 4.058 MB / 485.8 MB, free: 14.44 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001694/0.1383, allocations: 59.88 kB / 485.8 MB, free: 14.38 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002643/0.141, allocations: 1.175 MB / 487 MB, free: 13.2 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00439/0.1455, allocations: 1.755 MB / 488.8 MB, free: 11.44 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001576/0.1471, allocations: 0.5574 MB / 489.3 MB, free: 10.88 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005194/0.1523, allocations: 3.959 MB / 493.3 MB, free: 6.918 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002878/0.1552, allocations: 1.784 MB / 495.1 MB, free: 5.109 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002211/0.1574, allocations: 1.16 MB / 496.2 MB, free: 3.945 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002598/0.16, allocations: 1.678 MB / 497.9 MB, free: 2.262 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008108/0.1609, allocations: 220 kB / 498.1 MB, free: 2.047 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002876/0.1638, allocations: 1.307 MB / 499.4 MB, free: 0.7383 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001988/0.1658, allocations: 1.585 MB / 0.4893 GB, free: 15.15 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003118/0.1689, allocations: 1.851 MB / 0.4911 GB, free: 13.29 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008462/0.1774, allocations: 5.961 MB / 0.4969 GB, free: 7.305 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.013e-05/0.1774, allocations: 0 / 0.4969 GB, free: 7.305 MB / 382.1 MB Notification: Performance of FrontEnd: time 5.58e-06/0.1775, allocations: 3.984 kB / 0.4969 GB, free: 7.301 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002787/0.1778, allocations: 0 / 0.4969 GB, free: 7.301 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.01046/0.1882, allocations: 4.119 MB / 0.5009 GB, free: 3.113 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.861e-05/0.1883, allocations: 8.031 kB / 0.5009 GB, free: 3.105 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2311/0.4194, allocations: 5.661 MB / 0.5065 GB, free: 45.82 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006126/0.4256, allocations: 2.199 MB / 0.5086 GB, free: 45.29 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000174/0.4258, allocations: 178.5 kB / 0.5088 GB, free: 45.24 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001207/0.4271, allocations: 315.5 kB / 0.5091 GB, free: 45.19 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01785/0.4449, allocations: 10.72 MB / 0.5195 GB, free: 40.96 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.108e-05/0.4451, allocations: 35.19 kB / 0.5196 GB, free: 40.94 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003787/0.4454, allocations: 118.1 kB / 0.5197 GB, free: 40.9 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003354/0.4488, allocations: 2.458 MB / 0.5221 GB, free: 39.92 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01669/0.4655, allocations: 10.16 MB / 0.532 GB, free: 31.25 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04266/0.5082, allocations: 35.71 MB / 0.5669 GB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01189/0.5202, allocations: 5.598 MB / 0.5723 GB, free: 4.945 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003453/0.5237, allocations: 2.333 MB / 0.5746 GB, free: 2.609 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001789/0.5255, allocations: 1.876 MB / 0.5765 GB, free: 408 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.311e-05/0.5256, allocations: 49.12 kB / 0.5765 GB, free: 352 kB / 398.1 MB Notification: Performance of pre-optimization done (n=224): time 5.42e-06/0.5256, allocations: 0 / 0.5765 GB, free: 352 kB / 398.1 MB Notification: Performance of matching and sorting (n=231): time 0.03544/0.561, allocations: 14.96 MB / 0.5911 GB, free: 1.262 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001418/0.5625, allocations: 1.61 MB / 0.5927 GB, free: 15.49 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003915/0.5664, allocations: 2.794 MB / 0.5954 GB, free: 12.68 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006015/0.567, allocations: 53.69 kB / 0.5955 GB, free: 12.62 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00187/0.5689, allocations: 2.681 MB / 0.5981 GB, free: 9.902 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001165/0.5701, allocations: 0.848 MB / 0.5989 GB, free: 9.043 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001596/0.5717, allocations: 1.107 MB / 0.6 GB, free: 7.922 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.267e-05/0.5718, allocations: 301.1 kB / 0.6003 GB, free: 7.625 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003672/0.5755, allocations: 2.634 MB / 0.6029 GB, free: 4.984 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005825/0.5813, allocations: 5.647 MB / 0.6084 GB, free: 13.86 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01105/0.5924, allocations: 8.937 MB / 0.6171 GB, free: 3.457 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.209e-05/0.5925, allocations: 28 kB / 0.6171 GB, free: 3.43 MB / 446.1 MB Notification: Performance of matching and sorting (n=733) (initialization): time 0.06731/0.6599, allocations: 19.05 MB / 0.6357 GB, free: 348 kB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.959e-05/0.66, allocations: 52 kB / 0.6358 GB, free: 296 kB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04694/0.7069, allocations: 12.02 MB / 0.6475 GB, free: 4.246 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.05087/0.7578, allocations: 10.29 MB / 0.6576 GB, free: 9.926 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004646/0.7625, allocations: 1.306 MB / 0.6588 GB, free: 8.617 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03106/0.7936, allocations: 18.22 MB / 0.6766 GB, free: 6.121 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004804/0.7984, allocations: 431.5 kB / 0.677 GB, free: 5.699 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00141/0.7999, allocations: 328 kB / 0.6774 GB, free: 5.379 MB / 0.4981 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.004475/0.8044, allocations: 2.023 MB / 0.6793 GB, free: 3.348 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007244/0.8051, allocations: 272.4 kB / 0.6796 GB, free: 3.078 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009551/0.8147, allocations: 5.114 MB / 0.6846 GB, free: 13.93 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007803/0.8225, allocations: 4.401 MB / 0.6889 GB, free: 9.512 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.331e-05/0.8226, allocations: 8 kB / 0.6889 GB, free: 9.504 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-05/0.8226, allocations: 11.91 kB / 0.6889 GB, free: 9.492 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3059/1.128, allocations: 12.93 MB / 0.7015 GB, free: 171.4 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.815e-05/1.129, allocations: 7.734 kB / 0.7015 GB, free: 171.4 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002224/1.131, allocations: 464.4 kB / 0.702 GB, free: 171.4 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00318/1.134, allocations: 0.936 MB / 0.7029 GB, free: 171.4 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003493/1.134, allocations: 51.97 kB / 0.7029 GB, free: 171.4 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006829/1.141, allocations: 5.843 MB / 0.7086 GB, free: 168.2 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0008833/1.142, allocations: 1.551 MB / 0.7102 GB, free: 166.6 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01268/1.155, allocations: 7.728 MB / 0.7177 GB, free: 163.9 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00091/1.156, allocations: 330.2 kB / 0.718 GB, free: 163.8 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005739/1.156, allocations: 39.53 kB / 0.7181 GB, free: 163.8 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001573/1.158, allocations: 203.1 kB / 0.7183 GB, free: 163.8 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004164/1.158, allocations: 142.9 kB / 0.7184 GB, free: 163.7 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001667/1.159, allocations: 68.12 kB / 0.7185 GB, free: 163.7 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.002139/1.161, allocations: 1.723 MB / 0.7201 GB, free: 163.1 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.71e-07/1.161, allocations: 0 / 0.7201 GB, free: 163.1 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.004599/1.165, allocations: 1.107 MB / 0.7212 GB, free: 163 MB / 0.5137 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.0005002/1.166, allocations: 181.7 kB / 0.7214 GB, free: 162.9 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.01444/1.18, allocations: 9.686 MB / 0.7309 GB, free: 160.1 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.354e-05/1.18, allocations: 0 / 0.7309 GB, free: 160.1 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.00352/1.184, allocations: 2.533 MB / 0.7333 GB, free: 157.8 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002257/1.186, allocations: 373.3 kB / 0.7337 GB, free: 157.5 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01469/1.201, allocations: 10.35 MB / 0.7438 GB, free: 148.2 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002787/1.204, allocations: 3.166 MB / 0.7469 GB, free: 145.6 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001151/1.205, allocations: 259.3 kB / 0.7471 GB, free: 145.3 MB / 0.5137 GB Notification: Performance of SimCode: time 1.113e-06/1.205, allocations: 0 / 0.7471 GB, free: 145.3 MB / 0.5137 GB Notification: Performance of Templates: time 0.1116/1.316, allocations: 112.1 MB / 0.8566 GB, free: 33.26 MB / 0.5137 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Spherical/Spherical.csv","/var/lib/jenkins1/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