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.001635/0.001635, allocations: 110 kB / 17.86 MB, free: 5.504 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.001848/0.001848, allocations: 201.9 kB / 18.78 MB, free: 4.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.183/2.183, allocations: 222.9 MB / 242.5 MB, free: 13.65 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.3767/0.3767, allocations: 44.16 MB / 336.8 MB, free: 2.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002001/0.002001, allocations: 62.28 kB / 408.4 MB, free: 27.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1361/0.1382, allocations: 60.83 MB / 469.2 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.02681/0.165, allocations: 25.7 MB / 494.9 MB, free: 5.004 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01456/0.1797, allocations: 6.392 MB / 0.4895 GB, free: 14.59 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004898/0.1846, allocations: 103.8 kB / 0.4896 GB, free: 14.49 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003122/0.1878, allocations: 1.133 MB / 0.4907 GB, free: 13.35 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006868/0.1947, allocations: 1.643 MB / 0.4923 GB, free: 11.7 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002382/0.1971, allocations: 0.5226 MB / 0.4928 GB, free: 11.18 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.007834/0.205, allocations: 5.412 MB / 0.4981 GB, free: 5.758 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002919/0.2079, allocations: 1.74 MB / 0.4998 GB, free: 3.992 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002275/0.2102, allocations: 1.008 MB / 0.5008 GB, free: 2.98 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003235/0.2135, allocations: 1.779 MB / 0.5026 GB, free: 1.195 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009018/0.2144, allocations: 152 kB / 0.5027 GB, free: 1.047 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.22/0.4345, allocations: 1.331 MB / 0.504 GB, free: 14.9 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003298/0.4378, allocations: 1.547 MB / 0.5055 GB, free: 14.9 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004302/0.4421, allocations: 1.796 MB / 0.5073 GB, free: 14.36 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007831/0.45, allocations: 4.814 MB / 0.512 GB, free: 14.06 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.45, allocations: 1.062 kB / 0.512 GB, free: 14.06 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.45, allocations: 0 / 0.512 GB, free: 14.06 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002606/0.4503, allocations: 0 / 0.512 GB, free: 14.06 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.01277/0.4631, allocations: 4.108 MB / 0.516 GB, free: 12.3 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.231e-05/0.4631, allocations: 12.22 kB / 0.516 GB, free: 12.3 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01866/0.4818, allocations: 5.668 MB / 0.5215 GB, free: 12.04 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005794/0.4876, allocations: 2.209 MB / 0.5237 GB, free: 11.5 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00013/0.4878, allocations: 179.3 kB / 0.5239 GB, free: 11.49 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001197/0.489, allocations: 308.9 kB / 0.5241 GB, free: 11.47 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01766/0.5067, allocations: 10.71 MB / 0.5346 GB, free: 7.238 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.292e-05/0.5068, allocations: 37.8 kB / 0.5346 GB, free: 7.227 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004138/0.5072, allocations: 112.4 kB / 0.5348 GB, free: 7.191 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003327/0.5106, allocations: 2.458 MB / 0.5372 GB, free: 6.242 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01826/0.5288, allocations: 10.16 MB / 0.5471 GB, free: 13.61 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05636/0.5852, allocations: 35.68 MB / 0.5819 GB, free: 9.582 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01191/0.5972, allocations: 5.603 MB / 0.5874 GB, free: 3.766 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003326/0.6005, allocations: 2.333 MB / 0.5897 GB, free: 1.43 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0018/0.6024, allocations: 1.879 MB / 0.5915 GB, free: 15.23 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.758e-05/0.6024, allocations: 56.55 kB / 0.5916 GB, free: 15.16 MB / 446.1 MB Notification: Performance of pre-optimization done (n=224): time 5.891e-06/0.6025, allocations: 0 / 0.5916 GB, free: 15.16 MB / 446.1 MB Notification: Performance of matching and sorting (n=231): time 0.03852/0.641, allocations: 14.97 MB / 0.6062 GB, free: 108 kB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001448/0.6425, allocations: 1.519 MB / 0.6077 GB, free: 14.44 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005203/0.6477, allocations: 2.791 MB / 0.6104 GB, free: 11.64 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005252/0.6482, allocations: 56.05 kB / 0.6104 GB, free: 11.58 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002108/0.6504, allocations: 2.681 MB / 0.6131 GB, free: 8.895 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001323/0.6517, allocations: 0.8502 MB / 0.6139 GB, free: 8.051 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002831/0.6545, allocations: 1.108 MB / 0.615 GB, free: 6.934 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001024/0.6547, allocations: 301.1 kB / 0.6153 GB, free: 6.637 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004438/0.6591, allocations: 2.634 MB / 0.6178 GB, free: 3.996 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006696/0.6658, allocations: 5.642 MB / 0.6233 GB, free: 12.93 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01183/0.6777, allocations: 8.94 MB / 0.6321 GB, free: 2.961 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.694e-05/0.6778, allocations: 28 kB / 0.6321 GB, free: 2.934 MB / 478.1 MB Notification: Performance of matching and sorting (n=733) (initialization): time 0.06296/0.7408, allocations: 19.05 MB / 0.6507 GB, free: 500 kB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001513/0.741, allocations: 48 kB / 0.6507 GB, free: 452 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04374/0.7847, allocations: 12.02 MB / 0.6625 GB, free: 4.418 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04796/0.8328, allocations: 10.29 MB / 0.6725 GB, free: 10.11 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005007/0.8378, allocations: 1.316 MB / 0.6738 GB, free: 8.895 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02855/0.8664, allocations: 16.06 MB / 0.6895 GB, free: 8.637 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004851/0.8713, allocations: 445.7 kB / 0.6899 GB, free: 8.203 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001207/0.8725, allocations: 316 kB / 0.6902 GB, free: 7.895 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.00501/0.8775, allocations: 2.024 MB / 0.6922 GB, free: 5.867 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007327/0.8783, allocations: 268.4 kB / 0.6925 GB, free: 5.602 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009766/0.8881, allocations: 5.116 MB / 0.6974 GB, free: 468 kB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.2493/1.137, allocations: 4.395 MB / 0.7017 GB, free: 193.4 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.45e-05/1.138, allocations: 2 kB / 0.7017 GB, free: 193.4 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.914e-05/1.138, allocations: 19.06 kB / 0.7018 GB, free: 193.4 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02064/1.158, allocations: 12.92 MB / 0.7144 GB, free: 189.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.649e-05/1.158, allocations: 9.781 kB / 0.7144 GB, free: 189.4 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001754/1.16, allocations: 455.1 kB / 0.7148 GB, free: 189.4 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002612/1.163, allocations: 0.9478 MB / 0.7157 GB, free: 189.2 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001902/1.163, allocations: 52.92 kB / 0.7158 GB, free: 189.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00507/1.168, allocations: 5.441 MB / 0.7211 GB, free: 185.9 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007275/1.169, allocations: 1.471 MB / 0.7225 GB, free: 184.5 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009715/1.178, allocations: 7.726 MB / 0.7301 GB, free: 179.8 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008201/1.179, allocations: 332.7 kB / 0.7304 GB, free: 179.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004331/1.18, allocations: 50.02 kB / 0.7305 GB, free: 179.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001387/1.181, allocations: 195.7 kB / 0.7306 GB, free: 179.4 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003808/1.181, allocations: 142.6 kB / 0.7308 GB, free: 179.2 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001717/1.182, allocations: 59.98 kB / 0.7308 GB, free: 179.2 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.00236/1.184, allocations: 1.725 MB / 0.7325 GB, free: 177.4 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.333e-06/1.184, allocations: 0 / 0.7325 GB, free: 177.4 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004502/1.189, allocations: 1.113 MB / 0.7336 GB, free: 176.3 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.0004549/1.189, allocations: 179.6 kB / 0.7338 GB, free: 176.2 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.009222/1.198, allocations: 6.621 MB / 0.7402 GB, free: 169.6 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.167e-05/1.198, allocations: 4 kB / 0.7402 GB, free: 169.6 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002977/1.201, allocations: 2.525 MB / 0.7427 GB, free: 167 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002323/1.204, allocations: 362.2 kB / 0.7431 GB, free: 166.7 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01708/1.221, allocations: 12.32 MB / 0.7551 GB, free: 154.3 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00286/1.224, allocations: 3.166 MB / 0.7582 GB, free: 151.1 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001268/1.225, allocations: 255.4 kB / 0.7584 GB, free: 150.9 MB / 0.5294 GB Notification: Performance of SimCode: time 9.52e-07/1.225, allocations: 4 kB / 0.7584 GB, free: 150.9 MB / 0.5294 GB Notification: Performance of Templates: time 0.1041/1.329, allocations: 112.1 MB / 0.8679 GB, free: 38.81 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/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