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.0009703/0.0009705, allocations: 185.1 kB / 17.06 MB, free: 5.074 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.281/1.281, allocations: 223.2 MB / 241 MB, free: 11.87 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008521/0.000852, allocations: 94.05 kB / 292.2 MB, free: 10.92 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.3703/0.3703, allocations: 44.22 MB / 387.5 MB, free: 38.74 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003076/0.0003076, allocations: 8 kB / 459.9 MB, free: 1.539 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3618/0.3621, allocations: 61.9 MB / 0.5096 GB, free: 37.96 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1338/0.4959, allocations: 103.3 MB / 0.6104 GB, free: 7.812 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000259/0.4962, allocations: 79.95 kB / 0.6105 GB, free: 7.734 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.445/0.9412, allocations: 84.64 MB / 0.6932 GB, free: 99.32 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.254e-06/0.9413, allocations: 0 / 0.6932 GB, free: 99.32 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001148/0.9414, allocations: 71.84 kB / 0.6932 GB, free: 99.31 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.01066/0.9521, allocations: 4.009 MB / 0.6972 GB, free: 97.6 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.894e-05/0.9521, allocations: 11.12 kB / 0.6972 GB, free: 97.6 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02095/0.9731, allocations: 5.869 MB / 0.7029 GB, free: 97.34 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01353/0.9866, allocations: 5.196 MB / 0.708 GB, free: 96.84 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002748/0.987, allocations: 281.2 kB / 0.7082 GB, free: 96.83 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002161/0.9891, allocations: 379.3 kB / 0.7086 GB, free: 96.82 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02014/1.009, allocations: 10.43 MB / 0.7188 GB, free: 95.19 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001222/1.009, allocations: 32.44 kB / 0.7188 GB, free: 95.17 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006853/1.01, allocations: 172.4 kB / 0.719 GB, free: 95.08 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001773/1.012, allocations: 1.15 MB / 0.7201 GB, free: 94.88 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01714/1.029, allocations: 10.11 MB / 0.73 GB, free: 91.91 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04755/1.077, allocations: 37.41 MB / 0.7665 GB, free: 68.59 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0107/1.087, allocations: 5.608 MB / 0.772 GB, free: 66.22 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001373/1.089, allocations: 1.869 MB / 0.7738 GB, free: 64.47 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.381e-05/1.089, allocations: 51.16 kB / 0.7739 GB, free: 64.42 MB / 490.7 MB Notification: Performance of pre-optimization done (n=224): time 5.851e-06/1.089, allocations: 0 / 0.7739 GB, free: 64.42 MB / 490.7 MB Notification: Performance of matching and sorting (n=231): time 0.03336/1.122, allocations: 15.45 MB / 0.789 GB, free: 51.62 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001033/1.123, allocations: 1.527 MB / 0.7904 GB, free: 50 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004275/1.128, allocations: 2.497 MB / 0.7929 GB, free: 47.89 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005005/1.128, allocations: 57.7 kB / 0.7929 GB, free: 47.82 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001358/1.13, allocations: 2.68 MB / 0.7956 GB, free: 45.43 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008323/1.13, allocations: 0.8512 MB / 0.7964 GB, free: 44.68 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003414/1.131, allocations: 111.8 kB / 0.7965 GB, free: 44.57 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002332/1.131, allocations: 0.5319 MB / 0.797 GB, free: 44.1 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002836/1.134, allocations: 2.607 MB / 0.7996 GB, free: 41.88 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003775/1.138, allocations: 5.597 MB / 0.805 GB, free: 34.93 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00399/1.142, allocations: 3.794 MB / 0.8087 GB, free: 31.14 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.383e-05/1.142, allocations: 32 kB / 0.8088 GB, free: 31.11 MB / 490.7 MB Notification: Performance of matching and sorting (n=724) (initialization): time 0.05236/1.194, allocations: 18.97 MB / 0.8273 GB, free: 12.09 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.402e-05/1.194, allocations: 54.19 kB / 0.8273 GB, free: 12.04 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.03686/1.231, allocations: 12 MB / 0.8391 GB, free: 16 kB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04358/1.275, allocations: 10.31 MB / 0.8491 GB, free: 5.676 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004352/1.279, allocations: 1.252 MB / 0.8504 GB, free: 4.422 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02826/1.307, allocations: 17.25 MB / 0.8672 GB, free: 2.906 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004575/1.312, allocations: 443.5 kB / 0.8676 GB, free: 2.473 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001301/1.313, allocations: 316 kB / 0.8679 GB, free: 2.164 MB / 0.5105 GB 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.005135/1.318, allocations: 2.024 MB / 0.8699 GB, free: 132 kB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.2599/1.578, allocations: 267.3 kB / 0.8702 GB, free: 121.8 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009526/1.588, allocations: 5.1 MB / 0.8751 GB, free: 121.7 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007617/1.596, allocations: 4.392 MB / 0.8794 GB, free: 121.6 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.218e-05/1.596, allocations: 6.969 kB / 0.8794 GB, free: 121.6 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.189e-05/1.596, allocations: 12.91 kB / 0.8795 GB, free: 121.5 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02001/1.616, allocations: 12.96 MB / 0.8921 GB, free: 120.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-05/1.616, allocations: 6.875 kB / 0.8921 GB, free: 120.3 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001733/1.617, allocations: 408.5 kB / 0.8925 GB, free: 120.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002895/1.62, allocations: 0.9388 MB / 0.8934 GB, free: 120.2 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002806/1.621, allocations: 50.45 kB / 0.8935 GB, free: 120.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006005/1.627, allocations: 5.551 MB / 0.8989 GB, free: 116.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0008248/1.628, allocations: 1.472 MB / 0.9003 GB, free: 115.4 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01362/1.641, allocations: 8.341 MB / 0.9085 GB, free: 111.9 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001416/1.643, allocations: 332.2 kB / 0.9088 GB, free: 111.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005889/1.643, allocations: 48.36 kB / 0.9088 GB, free: 111.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0017/1.645, allocations: 196.4 kB / 0.909 GB, free: 111.8 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005021/1.645, allocations: 149.3 kB / 0.9092 GB, free: 111.8 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001977/1.646, allocations: 67.69 kB / 0.9092 GB, free: 111.7 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002881/1.649, allocations: 1.711 MB / 0.9109 GB, free: 111.2 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.7e-07/1.649, allocations: 0 / 0.9109 GB, free: 111.2 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.004468/1.653, allocations: 1.113 MB / 0.912 GB, free: 111 MB / 0.5105 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.0004673/1.654, allocations: 195.4 kB / 0.9122 GB, free: 110.9 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.008589/1.662, allocations: 6.557 MB / 0.9186 GB, free: 108.9 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 7.775e-06/1.662, allocations: 0 / 0.9186 GB, free: 108.9 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.003067/1.665, allocations: 2.518 MB / 0.921 GB, free: 107.8 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00174/1.667, allocations: 345 kB / 0.9214 GB, free: 107.7 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01674/1.684, allocations: 11.72 MB / 0.9328 GB, free: 102.1 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002687/1.686, allocations: 3.242 MB / 0.936 GB, free: 100.8 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.004202/1.691, allocations: 2.065 MB / 0.938 GB, free: 100.8 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006913/1.691, allocations: 210.8 kB / 0.9382 GB, free: 100.8 MB / 0.5105 GB Notification: Performance of SimCode: time 8.52e-07/1.691, allocations: 0 / 0.9382 GB, free: 100.8 MB / 0.5105 GB Notification: Performance of Templates: time 0.06021/1.752, allocations: 43.21 MB / 0.9804 GB, free: 74.04 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