Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_ModelicaTest.MultiBody.Joints.Spherical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001494/0.001494, allocations: 185.7 kB / 16.4 MB, free: 5.746 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.934/1.934, allocations: 205.4 MB / 222.5 MB, free: 9.117 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001184/0.001184, allocations: 96.36 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5114/0.5114, allocations: 43.55 MB / 362.7 MB, free: 51.85 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005319/0.0005321, allocations: 15.94 kB / 431.4 MB, free: 5.934 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1281/0.1286, allocations: 58.85 MB / 490.2 MB, free: 11 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4813/0.61, allocations: 101.7 MB / 0.578 GB, free: 0.8125 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002977/0.6103, allocations: 83.94 kB / 0.5781 GB, free: 0.7305 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.361/0.9714, allocations: 83.59 MB / 0.6598 GB, free: 12.53 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.765e-06/0.9715, allocations: 0 / 0.6598 GB, free: 12.53 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002384/0.9717, allocations: 67.98 kB / 0.6598 GB, free: 12.46 MB / 490.7 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.02245/0.9942, allocations: 4.021 MB / 0.6637 GB, free: 8.379 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.158e-05/0.9943, allocations: 12.03 kB / 0.6638 GB, free: 8.367 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04259/1.037, allocations: 5.875 MB / 0.6695 GB, free: 2.477 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3515/1.388, allocations: 5.33 MB / 0.6747 GB, free: 97.49 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004392/1.389, allocations: 277.3 kB / 0.675 GB, free: 97.48 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002708/1.392, allocations: 369.6 kB / 0.6753 GB, free: 97.48 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03273/1.424, allocations: 10.43 MB / 0.6855 GB, free: 96.05 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002111/1.425, allocations: 32.06 kB / 0.6855 GB, free: 96.05 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001763/1.426, allocations: 172.9 kB / 0.6857 GB, free: 96.05 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002464/1.429, allocations: 1.153 MB / 0.6868 GB, free: 96.04 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02873/1.458, allocations: 10.11 MB / 0.6967 GB, free: 96 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0763/1.534, allocations: 37.43 MB / 0.7333 GB, free: 74.77 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01835/1.553, allocations: 5.595 MB / 0.7387 GB, free: 72.45 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002127/1.555, allocations: 1.876 MB / 0.7405 GB, free: 70.69 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.919e-05/1.555, allocations: 51.34 kB / 0.7406 GB, free: 70.64 MB / 490.7 MB Notification: Performance of pre-optimization done (n=224): time 6.262e-06/1.555, allocations: 0 / 0.7406 GB, free: 70.64 MB / 490.7 MB Notification: Performance of matching and sorting (n=231): time 0.05925/1.614, allocations: 15.5 MB / 0.7557 GB, free: 65.67 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001357/1.615, allocations: 1.526 MB / 0.7572 GB, free: 64.18 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005291/1.621, allocations: 2.511 MB / 0.7597 GB, free: 63.25 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006457/1.621, allocations: 52.33 kB / 0.7597 GB, free: 63.2 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002086/1.624, allocations: 2.686 MB / 0.7624 GB, free: 61.1 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001307/1.625, allocations: 0.8443 MB / 0.7632 GB, free: 60.48 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000772/1.626, allocations: 108.1 kB / 0.7633 GB, free: 60.4 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003762/1.626, allocations: 0.5467 MB / 0.7638 GB, free: 59.99 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005902/1.632, allocations: 2.601 MB / 0.7664 GB, free: 59.16 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007956/1.64, allocations: 5.594 MB / 0.7718 GB, free: 54.32 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008164/1.648, allocations: 3.802 MB / 0.7755 GB, free: 52.91 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.844e-05/1.648, allocations: 26.59 kB / 0.7756 GB, free: 52.91 MB / 490.7 MB Notification: Performance of matching and sorting (n=724) (initialization): time 0.1185/1.767, allocations: 18.91 MB / 0.794 GB, free: 45.2 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.308e-05/1.767, allocations: 55.94 kB / 0.7941 GB, free: 45.14 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.08553/1.853, allocations: 12 MB / 0.8058 GB, free: 36.12 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.09419/1.947, allocations: 10.31 MB / 0.8159 GB, free: 25.79 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007864/1.955, allocations: 1.248 MB / 0.8171 GB, free: 24.54 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04825/2.003, allocations: 17.26 MB / 0.8339 GB, free: 7.031 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006897/2.01, allocations: 446.8 kB / 0.8344 GB, free: 6.598 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001482/2.011, allocations: 320 kB / 0.8347 GB, free: 6.285 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 477 * 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 (652): * Single equations (assignments): 641 * 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.005599/2.017, allocations: 2.03 MB / 0.8367 GB, free: 4.246 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007134/2.018, allocations: 272.3 kB / 0.8369 GB, free: 3.977 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01556/2.033, allocations: 5.11 MB / 0.8419 GB, free: 14.83 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01504/2.048, allocations: 4.387 MB / 0.8462 GB, free: 10.43 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.045e-05/2.049, allocations: 4 kB / 0.8462 GB, free: 10.43 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.058e-05/2.049, allocations: 7.969 kB / 0.8462 GB, free: 10.42 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4046/2.453, allocations: 12.99 MB / 0.8589 GB, free: 102.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.764e-05/2.453, allocations: 7.625 kB / 0.8589 GB, free: 102.8 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003845/2.457, allocations: 402.4 kB / 0.8593 GB, free: 102.8 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005844/2.463, allocations: 0.9403 MB / 0.8602 GB, free: 102.7 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006886/2.464, allocations: 51.78 kB / 0.8602 GB, free: 102.7 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01067/2.474, allocations: 5.546 MB / 0.8657 GB, free: 100.2 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00127/2.476, allocations: 1.475 MB / 0.8671 GB, free: 98.83 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02/2.496, allocations: 8.342 MB / 0.8752 GB, free: 97.54 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009262/2.497, allocations: 332.2 kB / 0.8756 GB, free: 97.44 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009493/2.498, allocations: 50.42 kB / 0.8756 GB, free: 97.44 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002918/2.501, allocations: 199.4 kB / 0.8758 GB, free: 97.44 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006345/2.501, allocations: 140.1 kB / 0.8759 GB, free: 97.43 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002579/2.502, allocations: 77.11 kB / 0.876 GB, free: 97.43 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.004099/2.506, allocations: 1.715 MB / 0.8777 GB, free: 97.29 MB / 0.4948 GB Notification: Performance of sort global known variables: time 7.71e-07/2.506, allocations: 0 / 0.8777 GB, free: 97.29 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.006783/2.513, allocations: 1.11 MB / 0.8788 GB, free: 97.29 MB / 0.4948 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 (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.0009398/2.514, allocations: 182 kB / 0.8789 GB, free: 97.2 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01675/2.53, allocations: 6.555 MB / 0.8853 GB, free: 96.84 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.233e-05/2.53, allocations: 2.938 kB / 0.8853 GB, free: 96.84 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.006492/2.537, allocations: 2.525 MB / 0.8878 GB, free: 96.47 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002924/2.54, allocations: 346.8 kB / 0.8881 GB, free: 96.45 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.029/2.569, allocations: 12.19 MB / 0.9 GB, free: 92.11 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008244/2.577, allocations: 3.255 MB / 0.9032 GB, free: 91.32 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002008/2.579, allocations: 257.6 kB / 0.9035 GB, free: 91.32 MB / 0.4948 GB Notification: Performance of SimCode: time 1.302e-06/2.579, allocations: 0 / 0.9035 GB, free: 91.32 MB / 0.4948 GB Notification: Performance of Templates: time 0.1854/2.765, allocations: 107 MB / 1.008 GB, free: 28.88 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_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","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches