Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_ModelicaTest.MultiBody.Joints.Spherical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001723/0.001723, allocations: 198.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.362/1.362, allocations: 225.6 MB / 234.8 MB, free: 3.242 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00109/0.00109, allocations: 94.75 kB / 286.7 MB, free: 5.301 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2104/0.2104, allocations: 45.15 MB / 383.8 MB, free: 256 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.638e-05/1.639e-05, allocations: 4 kB / 453.2 MB, free: 75.87 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1148/0.1148, allocations: 63.25 MB / 0.5044 GB, free: 12.67 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4196/0.5345, allocations: 103.5 MB / 0.6054 GB, free: 15.43 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000236/0.5348, allocations: 77.06 kB / 0.6055 GB, free: 15.39 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2123/0.7471, allocations: 85.66 MB / 0.6891 GB, free: 1.773 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.7472, allocations: 0 / 0.6891 GB, free: 1.773 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0001665/0.7473, allocations: 67.94 kB / 0.6892 GB, free: 1.707 MB / 474.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.01581/0.7632, allocations: 3.954 MB / 0.6931 GB, free: 13.69 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.426e-05/0.7632, allocations: 8.031 kB / 0.6931 GB, free: 13.68 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02419/0.7874, allocations: 6.449 MB / 0.6994 GB, free: 7.219 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01184/0.7993, allocations: 4.533 MB / 0.7038 GB, free: 2.633 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002844/0.7996, allocations: 120 kB / 0.7039 GB, free: 2.516 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002305/0.8019, allocations: 215.9 kB / 0.7041 GB, free: 2.305 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01181/0.8138, allocations: 6.899 MB / 0.7108 GB, free: 11.4 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01659/0.8304, allocations: 9.211 MB / 0.7198 GB, free: 1.684 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001078/0.8305, allocations: 35.66 kB / 0.7199 GB, free: 1.648 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005315/0.8311, allocations: 16 kB / 0.7199 GB, free: 1.633 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001436/0.8325, allocations: 1.152 MB / 0.721 GB, free: 492 kB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3432/1.176, allocations: 35.09 MB / 0.7553 GB, free: 129.8 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005096/1.181, allocations: 4.082 MB / 0.7593 GB, free: 128.6 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002928/1.184, allocations: 2.269 MB / 0.7615 GB, free: 128.6 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001407/1.185, allocations: 1.88 MB / 0.7633 GB, free: 126.9 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.64e-05/1.185, allocations: 49.77 kB / 0.7634 GB, free: 126.9 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=226): time 4.418e-06/1.185, allocations: 0.9688 kB / 0.7634 GB, free: 126.9 MB / 0.5261 GB Notification: Performance of matching and sorting (n=233): time 0.02496/1.21, allocations: 11.74 MB / 0.7748 GB, free: 126 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.512e-05/1.21, allocations: 72.88 kB / 0.7749 GB, free: 125.9 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003243/1.214, allocations: 2.397 MB / 0.7772 GB, free: 125.6 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0003265/1.214, allocations: 25.7 kB / 0.7773 GB, free: 125.6 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001203/1.215, allocations: 2.76 MB / 0.78 GB, free: 124.2 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006465/1.216, allocations: 0.8387 MB / 0.7808 GB, free: 123.7 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002201/1.216, allocations: 0 / 0.7808 GB, free: 123.7 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002484/1.216, allocations: 0.5597 MB / 0.7813 GB, free: 123.3 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002666/1.219, allocations: 2.533 MB / 0.7838 GB, free: 123.3 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004003/1.223, allocations: 5.74 MB / 0.7894 GB, free: 119.2 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004261/1.227, allocations: 3.816 MB / 0.7931 GB, free: 118.8 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.36e-05/1.227, allocations: 32.31 kB / 0.7932 GB, free: 118.8 MB / 0.5261 GB Notification: Performance of matching and sorting (n=768) (initialization): time 0.05783/1.285, allocations: 16.59 MB / 0.8094 GB, free: 116.3 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 8.009e-05/1.285, allocations: 54.91 kB / 0.8094 GB, free: 116.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04074/1.326, allocations: 10.48 MB / 0.8197 GB, free: 115 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04422/1.37, allocations: 8.66 MB / 0.8281 GB, free: 113.7 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004868/1.375, allocations: 1.326 MB / 0.8294 GB, free: 112.6 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02147/1.397, allocations: 14.69 MB / 0.8438 GB, free: 99.04 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005058/1.402, allocations: 335.5 kB / 0.8441 GB, free: 98.71 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001339/1.403, allocations: 341.9 kB / 0.8444 GB, free: 98.38 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 519 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (696): * Single equations (assignments): 685 * 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.001786/1.405, allocations: 399.5 kB / 0.8448 GB, free: 97.98 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006368/1.406, allocations: 268.4 kB / 0.845 GB, free: 97.72 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007779/1.413, allocations: 4.961 MB / 0.8499 GB, free: 92.73 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005869/1.419, allocations: 4.269 MB / 0.854 GB, free: 88.46 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.281e-05/1.419, allocations: 0.625 kB / 0.854 GB, free: 88.46 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.92e-05/1.419, allocations: 7.969 kB / 0.8541 GB, free: 88.45 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01853/1.438, allocations: 11.94 MB / 0.8657 GB, free: 76.42 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.308e-05/1.438, allocations: 8 kB / 0.8657 GB, free: 76.41 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001616/1.44, allocations: 411.3 kB / 0.8661 GB, free: 76.01 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002549/1.442, allocations: 0.9274 MB / 0.867 GB, free: 75.08 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002142/1.442, allocations: 27.97 kB / 0.8671 GB, free: 75.05 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004804/1.447, allocations: 5.278 MB / 0.8722 GB, free: 69.56 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006446/1.448, allocations: 1.41 MB / 0.8736 GB, free: 68.04 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00896/1.457, allocations: 8.255 MB / 0.8816 GB, free: 59.51 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006847/1.458, allocations: 325.6 kB / 0.882 GB, free: 59.17 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003251/1.458, allocations: 15.98 kB / 0.882 GB, free: 59.15 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001404/1.459, allocations: 167.7 kB / 0.8821 GB, free: 58.99 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002881/1.46, allocations: 149 kB / 0.8823 GB, free: 58.84 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001453/1.46, allocations: 71.92 kB / 0.8823 GB, free: 58.77 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.001827/1.462, allocations: 1.57 MB / 0.8839 GB, free: 57.2 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.5e-07/1.462, allocations: 1.469 kB / 0.8839 GB, free: 57.2 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.004278/1.466, allocations: 1.009 MB / 0.8849 GB, free: 56.2 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 35 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (172): * Single equations (assignments): 163 * 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.000407/1.466, allocations: 167.3 kB / 0.885 GB, free: 56.03 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.008206/1.475, allocations: 6.276 MB / 0.8912 GB, free: 49.74 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.658e-06/1.475, allocations: 3.828 kB / 0.8912 GB, free: 49.74 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.002832/1.477, allocations: 2.454 MB / 0.8936 GB, free: 47.25 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001493/1.479, allocations: 241.4 kB / 0.8938 GB, free: 47.01 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01285/1.492, allocations: 8.508 MB / 0.9021 GB, free: 38.37 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002644/1.494, allocations: 3.243 MB / 0.9053 GB, free: 35.11 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.004369/1.499, allocations: 2.17 MB / 0.9074 GB, free: 32.94 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006435/1.499, allocations: 215.4 kB / 0.9076 GB, free: 32.73 MB / 0.5261 GB Notification: Performance of SimCode: time 7.11e-07/1.499, allocations: 0 / 0.9076 GB, free: 32.73 MB / 0.5261 GB Notification: Performance of Templates: time 0.05727/1.557, allocations: 40.04 MB / 0.9467 GB, free: 9.156 MB / 0.5417 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Spherical/Spherical.csv","../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches