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.0008365/0.0008365, allocations: 88.19 kB / 15.7 MB, free: 460 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001312/0.001312, allocations: 172.4 kB / 16.58 MB, free: 6.84 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.561/1.561, allocations: 205.4 MB / 222.8 MB, free: 5.645 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4053/0.4053, allocations: 43.58 MB / 314.6 MB, free: 8.742 MB / 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.0005982/0.0005983, allocations: 20 kB / 384 MB, free: 7.992 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1727/0.1733, allocations: 58.86 MB / 442.8 MB, free: 13.02 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.3353/0.5087, allocations: 23.17 MB / 466 MB, free: 35.68 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01665/0.5254, allocations: 5.955 MB / 471.9 MB, free: 34.42 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006157/0.5316, allocations: 102.6 kB / 472 MB, free: 34.41 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003582/0.5352, allocations: 1.099 MB / 473.1 MB, free: 34.04 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01356/0.5488, allocations: 3.504 MB / 476.6 MB, free: 32.71 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002561/0.5514, allocations: 456 kB / 477.1 MB, free: 32.56 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.008074/0.5595, allocations: 4.158 MB / 481.3 MB, free: 31.22 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00612/0.5656, allocations: 2.16 MB / 483.4 MB, free: 30.34 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003318/0.569, allocations: 1.011 MB / 484.4 MB, free: 30.01 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00377/0.5728, allocations: 1.661 MB / 486.1 MB, free: 29.53 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001128/0.574, allocations: 124.7 kB / 486.2 MB, free: 29.53 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00359/0.5776, allocations: 1.056 MB / 487.3 MB, free: 29.3 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003013/0.5806, allocations: 1.488 MB / 488.7 MB, free: 28.86 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002699/0.5833, allocations: 0.7265 MB / 489.5 MB, free: 28.32 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01272/0.5961, allocations: 4.705 MB / 494.2 MB, free: 27.37 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.12e-05/0.5961, allocations: 0 / 494.2 MB, free: 27.37 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.847e-06/0.5962, allocations: 0 / 494.2 MB, free: 27.37 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004175/0.5966, allocations: 4 kB / 494.2 MB, free: 27.37 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.01675/0.6133, allocations: 3.442 MB / 497.6 MB, free: 25.37 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.217e-05/0.6134, allocations: 10.11 kB / 497.6 MB, free: 25.37 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02078/0.6342, allocations: 5.778 MB / 0.4916 GB, free: 23.03 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008285/0.6425, allocations: 2.211 MB / 0.4938 GB, free: 21.67 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004035/0.643, allocations: 182.8 kB / 0.4939 GB, free: 21.58 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002594/0.6456, allocations: 316.2 kB / 0.4943 GB, free: 21.45 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03297/0.6786, allocations: 10.72 MB / 0.5047 GB, free: 15.53 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002718/0.6789, allocations: 22.31 kB / 0.5047 GB, free: 15.52 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002238/0.6812, allocations: 114.5 kB / 0.5048 GB, free: 15.44 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004879/0.6861, allocations: 2.464 MB / 0.5073 GB, free: 13.66 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02346/0.7096, allocations: 10.14 MB / 0.5171 GB, free: 3.512 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07727/0.7869, allocations: 35.67 MB / 0.552 GB, free: 15 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01318/0.8002, allocations: 5.588 MB / 0.5574 GB, free: 9.191 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004342/0.8045, allocations: 2.326 MB / 0.5597 GB, free: 6.859 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002044/0.8066, allocations: 1.88 MB / 0.5616 GB, free: 4.648 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.021e-05/0.8067, allocations: 48.56 kB / 0.5616 GB, free: 4.594 MB / 430.1 MB Notification: Performance of pre-optimization done (n=224): time 5.771e-06/0.8067, allocations: 0 / 0.5616 GB, free: 4.594 MB / 430.1 MB Notification: Performance of matching and sorting (n=231): time 0.04372/0.8505, allocations: 14.95 MB / 0.5762 GB, free: 5.523 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001846/0.8524, allocations: 1.523 MB / 0.5777 GB, free: 3.844 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007054/0.8595, allocations: 2.791 MB / 0.5804 GB, free: 1.039 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008908/0.8604, allocations: 53.7 kB / 0.5805 GB, free: 0.9805 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003194/0.8636, allocations: 2.685 MB / 0.5831 GB, free: 14.25 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002116/0.8657, allocations: 0.8519 MB / 0.5839 GB, free: 13.39 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001329/0.8671, allocations: 107.9 kB / 0.584 GB, free: 13.29 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0008983/0.868, allocations: 0.5455 MB / 0.5846 GB, free: 12.73 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005945/0.874, allocations: 2.615 MB / 0.5871 GB, free: 10.11 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009269/0.8833, allocations: 5.62 MB / 0.5926 GB, free: 3.016 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008035/0.8914, allocations: 3.806 MB / 0.5963 GB, free: 15.21 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001654/0.8916, allocations: 32 kB / 0.5963 GB, free: 15.18 MB / 478.1 MB Notification: Performance of matching and sorting (n=733) (initialization): time 0.06359/0.9552, allocations: 18.99 MB / 0.6149 GB, free: 12.15 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000157/0.9554, allocations: 48 kB / 0.6149 GB, free: 12.11 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04162/0.997, allocations: 12.01 MB / 0.6267 GB, free: 72 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.384/1.381, allocations: 10.29 MB / 0.6367 GB, free: 138.3 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005246/1.386, allocations: 1.316 MB / 0.638 GB, free: 138.3 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02998/1.416, allocations: 16.02 MB / 0.6536 GB, free: 134.6 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005878/1.422, allocations: 437.9 kB / 0.6541 GB, free: 134.6 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001827/1.424, allocations: 320.4 kB / 0.6544 GB, free: 134.5 MB / 494.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 (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 3} * Non-linear torn systems: 1 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.006718/1.431, allocations: 2.023 MB / 0.6563 GB, free: 133.7 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001002/1.432, allocations: 270.3 kB / 0.6566 GB, free: 133.7 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01174/1.444, allocations: 5.101 MB / 0.6616 GB, free: 132 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008829/1.452, allocations: 4.399 MB / 0.6659 GB, free: 130.7 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.174e-05/1.453, allocations: 2.812 kB / 0.6659 GB, free: 130.7 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.294e-05/1.453, allocations: 7.734 kB / 0.6659 GB, free: 130.7 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02413/1.477, allocations: 12.91 MB / 0.6785 GB, free: 124.4 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.159e-05/1.477, allocations: 7.844 kB / 0.6785 GB, free: 124.4 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001877/1.479, allocations: 462.6 kB / 0.6789 GB, free: 124.3 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002981/1.482, allocations: 0.936 MB / 0.6799 GB, free: 123.8 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002512/1.482, allocations: 47.7 kB / 0.6799 GB, free: 123.8 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005848/1.488, allocations: 5.454 MB / 0.6852 GB, free: 119.1 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0008751/1.489, allocations: 1.457 MB / 0.6866 GB, free: 117.5 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01108/1.5, allocations: 7.712 MB / 0.6942 GB, free: 109.8 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001348/1.501, allocations: 340.8 kB / 0.6945 GB, free: 109.6 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009229/1.502, allocations: 49.06 kB / 0.6945 GB, free: 109.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001972/1.504, allocations: 191.7 kB / 0.6947 GB, free: 109.3 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003654/1.505, allocations: 147.9 kB / 0.6949 GB, free: 109.2 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000193/1.505, allocations: 63.92 kB / 0.6949 GB, free: 109.1 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004978/1.51, allocations: 1.701 MB / 0.6966 GB, free: 107.4 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/1.51, allocations: 0 / 0.6966 GB, free: 107.4 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.006857/1.517, allocations: 1.11 MB / 0.6977 GB, free: 106.3 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 (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005222/1.517, allocations: 173.9 kB / 0.6978 GB, free: 106.1 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01014/1.527, allocations: 6.598 MB / 0.7043 GB, free: 99.57 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.456e-06/1.527, allocations: 0 / 0.7043 GB, free: 99.57 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00333/1.531, allocations: 2.525 MB / 0.7068 GB, free: 97 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00344/1.534, allocations: 373.1 kB / 0.7071 GB, free: 96.66 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02329/1.557, allocations: 11.61 MB / 0.7184 GB, free: 84.94 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005886/1.563, allocations: 3.168 MB / 0.7215 GB, free: 81.75 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.005626/1.569, allocations: 2.062 MB / 0.7236 GB, free: 79.68 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001201/1.57, allocations: 211.4 kB / 0.7238 GB, free: 79.47 MB / 494.1 MB Notification: Performance of SimCode: time 1.613e-06/1.57, allocations: 0 / 0.7238 GB, free: 79.47 MB / 494.1 MB Notification: Performance of Templates: time 0.07542/1.646, allocations: 43.18 MB / 0.7659 GB, free: 36.3 MB / 494.1 MB 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/Spherical/Spherical.csv","../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Spherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches