Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001424/0.001424, allocations: 108.9 kB / 17.03 MB, free: 5.711 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.001441/0.001441, allocations: 194.9 kB / 17.97 MB, free: 5.078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.456/1.456, allocations: 205.1 MB / 223.8 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2161/0.2161, allocations: 43.52 MB / 314.7 MB, free: 484 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002803/0.002803, allocations: 71.64 kB / 384.2 MB, free: 56.38 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1266/0.1294, allocations: 57.78 MB / 442 MB, free: 6.141 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.01139/0.1409, allocations: 11.82 MB / 453.8 MB, free: 10.26 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008635/0.1495, allocations: 4.047 MB / 457.8 MB, free: 6.203 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002272/0.1518, allocations: 59.88 kB / 457.9 MB, free: 6.145 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002867/0.1547, allocations: 1.175 MB / 459.1 MB, free: 4.965 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00471/0.1595, allocations: 1.759 MB / 460.8 MB, free: 3.199 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001554/0.1611, allocations: 0.5574 MB / 461.4 MB, free: 2.641 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005332/0.1665, allocations: 3.954 MB / 465.3 MB, free: 14.68 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002762/0.1692, allocations: 1.791 MB / 467.1 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002063/0.1713, allocations: 1.164 MB / 468.3 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00243/0.1738, allocations: 1.682 MB / 470 MB, free: 10.01 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007659/0.1746, allocations: 216 kB / 470.2 MB, free: 9.797 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00273/0.1773, allocations: 1.295 MB / 471.5 MB, free: 8.5 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00202/0.1793, allocations: 1.593 MB / 473.1 MB, free: 6.902 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003017/0.1824, allocations: 1.848 MB / 474.9 MB, free: 5.043 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008678/0.1911, allocations: 6.243 MB / 481.2 MB, free: 14.78 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.98e-06/0.1911, allocations: 0 / 481.2 MB, free: 14.78 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.1911, allocations: 4 kB / 481.2 MB, free: 14.77 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002063/0.1913, allocations: 0 / 481.2 MB, free: 14.77 MB / 366.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.009214/0.2005, allocations: 4.113 MB / 485.3 MB, free: 10.59 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.107e-05/0.2006, allocations: 8.031 kB / 485.3 MB, free: 10.59 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01701/0.2176, allocations: 5.669 MB / 491 MB, free: 4.902 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006284/0.2239, allocations: 2.271 MB / 493.2 MB, free: 2.582 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001805/0.2242, allocations: 180.8 kB / 493.4 MB, free: 2.402 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001282/0.2255, allocations: 307.7 kB / 493.7 MB, free: 2.102 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0161/0.2416, allocations: 10.73 MB / 0.4926 GB, free: 6.91 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.932e-05/0.2417, allocations: 23.81 kB / 0.4926 GB, free: 6.887 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003377/0.242, allocations: 111.8 kB / 0.4927 GB, free: 6.777 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003541/0.2456, allocations: 2.463 MB / 0.4951 GB, free: 4.312 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02045/0.266, allocations: 10.15 MB / 0.5051 GB, free: 10.14 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2488/0.5149, allocations: 35.5 MB / 0.5397 GB, free: 65.73 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01141/0.5263, allocations: 5.594 MB / 0.5452 GB, free: 64.56 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003078/0.5294, allocations: 2.34 MB / 0.5475 GB, free: 64.55 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001506/0.531, allocations: 1.875 MB / 0.5493 GB, free: 62.85 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.486e-05/0.531, allocations: 51.62 kB / 0.5494 GB, free: 62.8 MB / 414.1 MB Notification: Performance of pre-optimization done (n=224): time 5.53e-06/0.5311, allocations: 2.656 kB / 0.5494 GB, free: 62.8 MB / 414.1 MB Notification: Performance of matching and sorting (n=231): time 0.03045/0.5615, allocations: 14.98 MB / 0.564 GB, free: 58.91 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001007/0.5626, allocations: 1.613 MB / 0.5656 GB, free: 57.34 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004205/0.5668, allocations: 2.803 MB / 0.5683 GB, free: 56.24 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004565/0.5673, allocations: 56.23 kB / 0.5683 GB, free: 56.19 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001824/0.5691, allocations: 2.685 MB / 0.571 GB, free: 53.85 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001182/0.5703, allocations: 0.8416 MB / 0.5718 GB, free: 53.14 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002338/0.5727, allocations: 1.117 MB / 0.5729 GB, free: 52.49 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 5.443e-05/0.5727, allocations: 301.1 kB / 0.5732 GB, free: 52.19 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003484/0.5762, allocations: 2.634 MB / 0.5757 GB, free: 49.55 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004487/0.5807, allocations: 5.635 MB / 0.5812 GB, free: 42.52 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008476/0.5892, allocations: 8.94 MB / 0.59 GB, free: 32.21 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001084/0.5894, allocations: 32 kB / 0.59 GB, free: 32.18 MB / 414.1 MB Notification: Performance of matching and sorting (n=733) (initialization): time 0.05528/0.6447, allocations: 19.04 MB / 0.6086 GB, free: 13.11 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001129/0.6448, allocations: 55.94 kB / 0.6087 GB, free: 13.05 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.03898/0.6838, allocations: 12.01 MB / 0.6204 GB, free: 1.02 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04589/0.7297, allocations: 10.28 MB / 0.6304 GB, free: 6.711 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004909/0.7347, allocations: 1.327 MB / 0.6317 GB, free: 5.383 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02983/0.7645, allocations: 18.22 MB / 0.6495 GB, free: 2.902 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00532/0.7699, allocations: 427.5 kB / 0.6499 GB, free: 2.484 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001264/0.7712, allocations: 322.9 kB / 0.6502 GB, free: 2.172 MB / 446.1 MB 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.004612/0.7758, allocations: 2.027 MB / 0.6522 GB, free: 136 kB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001001/0.7768, allocations: 274.4 kB / 0.6525 GB, free: 15.86 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009706/0.7865, allocations: 5.117 MB / 0.6575 GB, free: 10.71 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007626/0.7942, allocations: 4.405 MB / 0.6618 GB, free: 6.301 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.734e-05/0.7943, allocations: 4 kB / 0.6618 GB, free: 6.297 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.03e-05/0.7943, allocations: 7.969 kB / 0.6618 GB, free: 6.289 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02483/0.8191, allocations: 12.93 MB / 0.6744 GB, free: 9.227 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.925e-05/0.8192, allocations: 8 kB / 0.6744 GB, free: 9.219 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00206/0.8212, allocations: 455.2 kB / 0.6748 GB, free: 8.773 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002974/0.8242, allocations: 0.9392 MB / 0.6758 GB, free: 7.824 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002808/0.8245, allocations: 47.98 kB / 0.6758 GB, free: 7.777 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006687/0.8312, allocations: 5.83 MB / 0.6815 GB, free: 1.676 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001141/0.8324, allocations: 1.56 MB / 0.683 GB, free: 15.97 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01316/0.8456, allocations: 7.732 MB / 0.6906 GB, free: 8.113 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00134/0.847, allocations: 329.7 kB / 0.6909 GB, free: 7.77 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008786/0.8479, allocations: 43.83 kB / 0.6909 GB, free: 7.73 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001977/0.8499, allocations: 195.7 kB / 0.6911 GB, free: 7.539 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004933/0.8504, allocations: 140.9 kB / 0.6913 GB, free: 7.402 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002373/0.8506, allocations: 67.97 kB / 0.6913 GB, free: 7.336 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002792/0.8534, allocations: 1.736 MB / 0.693 GB, free: 5.594 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.8534, allocations: 0 / 0.693 GB, free: 5.594 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004804/0.8583, allocations: 1.104 MB / 0.6941 GB, free: 4.496 MB / 494.1 MB 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.0004703/0.8587, allocations: 177.6 kB / 0.6943 GB, free: 4.316 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0104/0.8692, allocations: 6.672 MB / 0.7008 GB, free: 13.63 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 8.896e-06/0.8692, allocations: 0 / 0.7008 GB, free: 13.63 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.003712/0.8729, allocations: 2.529 MB / 0.7032 GB, free: 11.06 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002193/0.8751, allocations: 377.5 kB / 0.7036 GB, free: 10.7 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01559/0.8907, allocations: 9.839 MB / 0.7132 GB, free: 0.7539 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003491/0.8943, allocations: 3.168 MB / 0.7163 GB, free: 13.57 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004407/0.8987, allocations: 2.062 MB / 0.7183 GB, free: 11.51 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007687/0.8995, allocations: 208.4 kB / 0.7185 GB, free: 11.3 MB / 0.5137 GB Notification: Performance of SimCode: time 5.71e-07/0.8995, allocations: 4 kB / 0.7185 GB, free: 11.3 MB / 0.5137 GB Notification: Performance of Templates: time 0.2706/1.17, allocations: 42.06 MB / 0.7596 GB, free: 173.1 MB / 0.5137 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Spherical.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Spherical.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Spherical.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Spherical.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Spherical.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Spherical -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Spherical.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Spherical_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/Spherical/Spherical.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Spherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches