Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.conf.json 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 4.0.0+maint.om/package.mo", uses=false) 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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) 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_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Joints.Spherical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001626/0.001626, allocations: 174.4 kB / 8.74 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.534/1.534, allocations: 221.5 MB / 230.7 MB, free: 7.562 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008785/0.0008786, allocations: 89.86 kB / 281.6 MB, free: 5.324 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.191/0.191, allocations: 44.15 MB / 376.5 MB, free: 3.051 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.404e-05/2.406e-05, allocations: 4.219 kB / 444.6 MB, free: 15.24 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1351/0.1351, allocations: 61.92 MB / 0.4947 GB, free: 1.262 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4236/0.5588, allocations: 102.6 MB / 0.5948 GB, free: 9.949 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002436/0.5591, allocations: 76.81 kB / 0.5949 GB, free: 9.875 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2091/0.7682, allocations: 83.29 MB / 0.6762 GB, free: 5.902 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.7682, allocations: 0 / 0.6762 GB, free: 5.902 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001571/0.7684, allocations: 71.98 kB / 0.6763 GB, free: 5.832 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.01544/0.7838, allocations: 3.848 MB / 0.6801 GB, free: 1.922 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.134e-05/0.7839, allocations: 11.98 kB / 0.6801 GB, free: 1.91 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0233/0.8072, allocations: 5.875 MB / 0.6858 GB, free: 12.02 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01463/0.8219, allocations: 5.17 MB / 0.6909 GB, free: 6.797 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002243/0.8222, allocations: 120 kB / 0.691 GB, free: 6.68 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002688/0.8249, allocations: 211.9 kB / 0.6912 GB, free: 6.473 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.3323/1.157, allocations: 6.891 MB / 0.6979 GB, free: 121.2 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02416/1.181, allocations: 9.201 MB / 0.7069 GB, free: 119.8 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001423/1.182, allocations: 33.31 kB / 0.7069 GB, free: 119.8 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005113/1.182, allocations: 15.03 kB / 0.7069 GB, free: 119.8 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002031/1.184, allocations: 1.156 MB / 0.7081 GB, free: 119.8 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05231/1.236, allocations: 35.11 MB / 0.7424 GB, free: 103.1 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004229/1.241, allocations: 4.082 MB / 0.7463 GB, free: 100.9 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002593/1.243, allocations: 2.267 MB / 0.7486 GB, free: 100 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00135/1.245, allocations: 1.876 MB / 0.7504 GB, free: 98.25 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.856e-05/1.245, allocations: 51.44 kB / 0.7504 GB, free: 98.2 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=226): time 5.971e-06/1.245, allocations: 0 / 0.7504 GB, free: 98.2 MB / 0.4948 GB Notification: Performance of matching and sorting (n=233): time 0.02205/1.267, allocations: 11.75 MB / 0.7619 GB, free: 94.85 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.657e-05/1.267, allocations: 74.64 kB / 0.762 GB, free: 94.78 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003198/1.27, allocations: 2.391 MB / 0.7643 GB, free: 93.9 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0002775/1.27, allocations: 25.7 kB / 0.7643 GB, free: 93.87 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001209/1.272, allocations: 2.767 MB / 0.767 GB, free: 91.86 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006911/1.272, allocations: 0.8401 MB / 0.7679 GB, free: 91.23 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002259/1.273, allocations: 0 / 0.7679 GB, free: 91.23 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002782/1.273, allocations: 0.5611 MB / 0.7684 GB, free: 90.82 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002793/1.276, allocations: 2.53 MB / 0.7709 GB, free: 89.97 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004075/1.28, allocations: 5.741 MB / 0.7765 GB, free: 84.8 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004781/1.285, allocations: 3.811 MB / 0.7802 GB, free: 83.61 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.259e-05/1.285, allocations: 32.09 kB / 0.7802 GB, free: 83.61 MB / 0.4948 GB Notification: Performance of matching and sorting (n=768) (initialization): time 0.05942/1.344, allocations: 18.5 MB / 0.7983 GB, free: 74.89 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 7.407e-05/1.344, allocations: 53.41 kB / 0.7984 GB, free: 74.84 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04193/1.386, allocations: 11.89 MB / 0.81 GB, free: 64.52 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04504/1.431, allocations: 10.31 MB / 0.82 GB, free: 54.19 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004807/1.436, allocations: 1.326 MB / 0.8213 GB, free: 52.86 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02177/1.458, allocations: 15.1 MB / 0.8361 GB, free: 37.54 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005084/1.463, allocations: 343.5 kB / 0.8364 GB, free: 37.21 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001111/1.464, allocations: 340 kB / 0.8367 GB, free: 36.88 MB / 0.4948 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.0008946/1.465, allocations: 397.5 kB / 0.8371 GB, free: 36.48 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004849/1.466, allocations: 276.4 kB / 0.8374 GB, free: 36.21 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007193/1.473, allocations: 4.954 MB / 0.8422 GB, free: 31.22 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005751/1.479, allocations: 4.272 MB / 0.8464 GB, free: 26.93 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.235e-06/1.479, allocations: 4 kB / 0.8464 GB, free: 26.93 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.661e-05/1.479, allocations: 8.812 kB / 0.8464 GB, free: 26.92 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01692/1.496, allocations: 11.93 MB / 0.858 GB, free: 14.86 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.451e-05/1.496, allocations: 11.98 kB / 0.858 GB, free: 14.84 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001646/1.497, allocations: 403.3 kB / 0.8584 GB, free: 14.45 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002639/1.5, allocations: 0.9312 MB / 0.8593 GB, free: 13.51 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002032/1.5, allocations: 27.97 kB / 0.8594 GB, free: 13.48 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004836/1.505, allocations: 5.286 MB / 0.8645 GB, free: 7.973 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006992/1.506, allocations: 1.409 MB / 0.8659 GB, free: 6.445 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01001/1.516, allocations: 8.252 MB / 0.874 GB, free: 13.88 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009125/1.517, allocations: 329.6 kB / 0.8743 GB, free: 13.53 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003487/1.517, allocations: 15.98 kB / 0.8743 GB, free: 13.52 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001499/1.519, allocations: 171.6 kB / 0.8745 GB, free: 13.35 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003024/1.519, allocations: 145 kB / 0.8746 GB, free: 13.21 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001784/1.519, allocations: 72.91 kB / 0.8747 GB, free: 13.14 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.00246/1.521, allocations: 1.573 MB / 0.8762 GB, free: 11.56 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.815e-06/1.522, allocations: 0 / 0.8762 GB, free: 11.56 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.004658/1.526, allocations: 1.008 MB / 0.8772 GB, free: 10.55 MB / 0.5105 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.0004875/1.527, allocations: 162.6 kB / 0.8773 GB, free: 10.39 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0105/1.537, allocations: 6.329 MB / 0.8835 GB, free: 4.055 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.284e-05/1.537, allocations: 6.562 kB / 0.8835 GB, free: 4.051 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.003855/1.541, allocations: 2.454 MB / 0.8859 GB, free: 1.551 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002096/1.543, allocations: 252.1 kB / 0.8862 GB, free: 1.305 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.287/1.83, allocations: 8.498 MB / 0.8945 GB, free: 124.9 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004121/1.834, allocations: 3.245 MB / 0.8976 GB, free: 124.1 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.006436/1.841, allocations: 2.176 MB / 0.8998 GB, free: 124.1 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008128/1.842, allocations: 214.5 kB / 0.9 GB, free: 124.1 MB / 0.5105 GB Notification: Performance of SimCode: time 9.21e-07/1.842, allocations: 0 / 0.9 GB, free: 124.1 MB / 0.5105 GB Notification: Performance of Templates: time 0.06529/1.907, allocations: 40.02 MB / 0.9391 GB, free: 122.2 MB / 0.5105 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches