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.00123/0.00123, allocations: 106.6 kB / 17.03 MB, free: 6.102 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.001195/0.001195, allocations: 194.9 kB / 17.96 MB, free: 5.195 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.484/1.484, allocations: 205.1 MB / 223.8 MB, free: 12.24 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.2201/0.2201, allocations: 43.52 MB / 314.7 MB, free: 476 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.002848/0.002849, allocations: 70.39 kB / 384.2 MB, free: 56.36 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1479/0.1507, allocations: 57.79 MB / 442 MB, free: 6.125 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.01172/0.1625, allocations: 11.81 MB / 453.8 MB, free: 10.25 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01055/0.1731, allocations: 4.043 MB / 457.8 MB, free: 6.195 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003003/0.1762, allocations: 59.88 kB / 457.9 MB, free: 6.137 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00332/0.1795, allocations: 1.183 MB / 459.1 MB, free: 4.949 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005319/0.1849, allocations: 1.751 MB / 460.8 MB, free: 3.191 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001796/0.1867, allocations: 0.5613 MB / 461.4 MB, free: 2.629 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006552/0.1933, allocations: 3.961 MB / 465.3 MB, free: 14.66 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002499/0.1959, allocations: 1.787 MB / 467.1 MB, free: 12.85 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001819/0.1977, allocations: 1.16 MB / 468.3 MB, free: 11.69 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002187/0.1999, allocations: 1.686 MB / 470 MB, free: 9.996 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005342/0.2005, allocations: 216 kB / 470.2 MB, free: 9.785 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002857/0.2033, allocations: 1.295 MB / 471.5 MB, free: 8.488 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001902/0.2052, allocations: 1.593 MB / 473.1 MB, free: 6.891 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002177/0.2074, allocations: 1.848 MB / 474.9 MB, free: 5.031 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008221/0.2157, allocations: 6.239 MB / 481.2 MB, free: 14.77 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.082e-05/0.2157, allocations: 4 kB / 481.2 MB, free: 14.77 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.245e-06/0.2157, allocations: 7.938 kB / 481.2 MB, free: 14.76 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002199/0.2159, allocations: 0 / 481.2 MB, free: 14.76 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.0115/0.2275, allocations: 4.104 MB / 485.3 MB, free: 10.59 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.721e-05/0.2275, allocations: 8.031 kB / 485.3 MB, free: 10.58 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01822/0.2458, allocations: 5.673 MB / 490.9 MB, free: 4.891 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007396/0.2532, allocations: 2.275 MB / 493.2 MB, free: 2.566 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000236/0.2535, allocations: 180.8 kB / 493.4 MB, free: 2.387 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001814/0.2553, allocations: 307.7 kB / 493.7 MB, free: 2.086 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02016/0.2755, allocations: 10.73 MB / 0.4926 GB, free: 6.898 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.885e-05/0.2756, allocations: 23.81 kB / 0.4926 GB, free: 6.875 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003598/0.276, allocations: 115.8 kB / 0.4927 GB, free: 6.762 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003766/0.2797, allocations: 2.463 MB / 0.4951 GB, free: 4.297 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02271/0.3025, allocations: 10.15 MB / 0.5051 GB, free: 10.13 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4377/0.7402, allocations: 35.5 MB / 0.5397 GB, free: 65.75 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01409/0.7544, allocations: 5.593 MB / 0.5452 GB, free: 64.59 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004445/0.7589, allocations: 2.34 MB / 0.5475 GB, free: 64.57 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001828/0.7607, allocations: 1.877 MB / 0.5493 GB, free: 62.87 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.572e-05/0.7608, allocations: 53.81 kB / 0.5494 GB, free: 62.83 MB / 414.1 MB Notification: Performance of pre-optimization done (n=224): time 1.171e-05/0.7608, allocations: 0 / 0.5494 GB, free: 62.83 MB / 414.1 MB Notification: Performance of matching and sorting (n=231): time 0.03432/0.7952, allocations: 14.98 MB / 0.564 GB, free: 58.89 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001197/0.7964, allocations: 1.605 MB / 0.5656 GB, free: 57.32 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004002/0.8004, allocations: 2.809 MB / 0.5683 GB, free: 56.21 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003958/0.8008, allocations: 56.81 kB / 0.5684 GB, free: 56.16 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00201/0.8029, allocations: 2.684 MB / 0.571 GB, free: 53.82 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009943/0.8039, allocations: 0.8503 MB / 0.5718 GB, free: 53.11 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001541/0.8054, allocations: 1.105 MB / 0.5729 GB, free: 52.49 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 6.874e-05/0.8055, allocations: 305.1 kB / 0.5732 GB, free: 52.19 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003087/0.8086, allocations: 2.637 MB / 0.5757 GB, free: 49.55 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004338/0.8129, allocations: 5.637 MB / 0.5813 GB, free: 42.52 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008809/0.8218, allocations: 8.939 MB / 0.59 GB, free: 32.21 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.302e-05/0.8218, allocations: 35.94 kB / 0.59 GB, free: 32.17 MB / 414.1 MB Notification: Performance of matching and sorting (n=733) (initialization): time 0.05888/0.8807, allocations: 19.03 MB / 0.6086 GB, free: 13.1 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.388e-05/0.8809, allocations: 55.94 kB / 0.6087 GB, free: 13.05 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.03882/0.9197, allocations: 12.01 MB / 0.6204 GB, free: 1.012 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04568/0.9654, allocations: 10.28 MB / 0.6304 GB, free: 6.703 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005366/0.9709, allocations: 1.322 MB / 0.6317 GB, free: 5.379 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03247/1.003, allocations: 18.22 MB / 0.6495 GB, free: 2.895 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00537/1.009, allocations: 431.5 kB / 0.6499 GB, free: 2.473 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008385/1.01, allocations: 316.8 kB / 0.6502 GB, free: 2.164 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.004178/1.014, allocations: 2.033 MB / 0.6522 GB, free: 128 kB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000977/1.015, allocations: 272.5 kB / 0.6525 GB, free: 15.85 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009882/1.025, allocations: 5.11 MB / 0.6575 GB, free: 10.71 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007601/1.032, allocations: 4.401 MB / 0.6618 GB, free: 6.301 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.596e-05/1.032, allocations: 7.938 kB / 0.6618 GB, free: 6.293 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.125e-05/1.032, allocations: 11.97 kB / 0.6618 GB, free: 6.281 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02612/1.059, allocations: 12.92 MB / 0.6744 GB, free: 9.223 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.095e-05/1.059, allocations: 8 kB / 0.6744 GB, free: 9.215 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002091/1.061, allocations: 456.1 kB / 0.6748 GB, free: 8.77 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002922/1.064, allocations: 0.9432 MB / 0.6758 GB, free: 7.816 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002719/1.064, allocations: 55.42 kB / 0.6758 GB, free: 7.766 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007474/1.071, allocations: 5.821 MB / 0.6815 GB, free: 1.672 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001222/1.073, allocations: 1.558 MB / 0.683 GB, free: 15.97 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01296/1.086, allocations: 7.729 MB / 0.6906 GB, free: 8.109 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001409/1.087, allocations: 329.7 kB / 0.6909 GB, free: 7.766 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000441/1.088, allocations: 40.12 kB / 0.6909 GB, free: 7.727 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0015/1.089, allocations: 199.5 kB / 0.6911 GB, free: 7.535 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004529/1.09, allocations: 144.9 kB / 0.6912 GB, free: 7.395 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000195/1.09, allocations: 67.97 kB / 0.6913 GB, free: 7.328 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003643/1.093, allocations: 1.733 MB / 0.693 GB, free: 5.59 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.5e-07/1.093, allocations: 0 / 0.693 GB, free: 5.59 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.006745/1.1, allocations: 1.108 MB / 0.6941 GB, free: 4.488 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.0007313/1.101, allocations: 180.1 kB / 0.6943 GB, free: 4.309 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01211/1.113, allocations: 6.675 MB / 0.7008 GB, free: 13.62 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.369e-05/1.113, allocations: 0 / 0.7008 GB, free: 13.62 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.003958/1.117, allocations: 2.525 MB / 0.7032 GB, free: 11.05 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002476/1.12, allocations: 378.6 kB / 0.7036 GB, free: 10.69 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01783/1.138, allocations: 9.855 MB / 0.7132 GB, free: 0.7344 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003919/1.141, allocations: 3.165 MB / 0.7163 GB, free: 13.55 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004707/1.146, allocations: 2.059 MB / 0.7183 GB, free: 11.5 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007598/1.147, allocations: 215.4 kB / 0.7185 GB, free: 11.29 MB / 0.5137 GB Notification: Performance of SimCode: time 9.32e-07/1.147, allocations: 0 / 0.7185 GB, free: 11.29 MB / 0.5137 GB Notification: Performance of Templates: time 0.3568/1.504, allocations: 42.05 MB / 0.7596 GB, free: 173 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 cvode -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