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.001071/0.001071, allocations: 183 kB / 18.09 MB, free: 3.625 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.334/1.334, allocations: 223.3 MB / 242.1 MB, free: 9.977 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.0007815/0.0007815, allocations: 102.2 kB / 293.3 MB, free: 10.58 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.3324/0.3324, allocations: 44.15 MB / 388.5 MB, free: 38.47 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003954/0.0003956, allocations: 8 kB / 461.1 MB, free: 1.316 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3592/0.3597, allocations: 61.88 MB / 0.5107 GB, free: 37.93 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1267/0.4864, allocations: 103.4 MB / 0.6117 GB, free: 7.66 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002457/0.4867, allocations: 79.95 kB / 0.6118 GB, free: 7.586 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4669/0.9536, allocations: 83.28 MB / 0.6931 GB, free: 98.94 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.615e-06/0.9536, allocations: 0 / 0.6931 GB, free: 98.94 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001613/0.9538, allocations: 70.91 kB / 0.6932 GB, free: 98.94 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.0125/0.9663, allocations: 3.961 MB / 0.697 GB, free: 97.22 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.23e-05/0.9664, allocations: 7.531 kB / 0.697 GB, free: 97.22 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02/0.9864, allocations: 5.753 MB / 0.7027 GB, free: 96.96 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0093/0.9957, allocations: 3.988 MB / 0.7065 GB, free: 96.43 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002948/0.996, allocations: 279.3 kB / 0.7068 GB, free: 96.43 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002285/0.9984, allocations: 371.5 kB / 0.7072 GB, free: 96.42 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02336/1.022, allocations: 10.36 MB / 0.7173 GB, free: 94.98 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001242/1.022, allocations: 36.03 kB / 0.7173 GB, free: 94.98 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006501/1.023, allocations: 169.9 kB / 0.7175 GB, free: 94.98 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001451/1.024, allocations: 1.152 MB / 0.7186 GB, free: 94.88 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01873/1.043, allocations: 10.03 MB / 0.7284 GB, free: 91.96 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0503/1.093, allocations: 37.35 MB / 0.7649 GB, free: 68.64 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009604/1.103, allocations: 5.593 MB / 0.7703 GB, free: 66.29 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002658/1.105, allocations: 2.331 MB / 0.7726 GB, free: 65.39 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001262/1.107, allocations: 1.875 MB / 0.7744 GB, free: 63.64 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.652e-05/1.107, allocations: 45.19 kB / 0.7745 GB, free: 63.59 MB / 490.7 MB Notification: Performance of pre-optimization done (n=224): time 6.954e-06/1.107, allocations: 0 / 0.7745 GB, free: 63.59 MB / 490.7 MB Notification: Performance of matching and sorting (n=231): time 0.03361/1.14, allocations: 14.93 MB / 0.7891 GB, free: 51.92 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001192/1.142, allocations: 1.522 MB / 0.7906 GB, free: 50.29 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005146/1.147, allocations: 2.798 MB / 0.7933 GB, free: 47.95 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006006/1.147, allocations: 49.7 kB / 0.7933 GB, free: 47.89 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00173/1.149, allocations: 2.686 MB / 0.796 GB, free: 45.48 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0011/1.15, allocations: 0.85 MB / 0.7968 GB, free: 44.73 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006934/1.151, allocations: 107.9 kB / 0.7969 GB, free: 44.63 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0004591/1.152, allocations: 0.5427 MB / 0.7974 GB, free: 44.15 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003666/1.155, allocations: 2.605 MB / 0.8 GB, free: 41.93 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004529/1.16, allocations: 5.611 MB / 0.8054 GB, free: 35.32 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008085/1.168, allocations: 8.908 MB / 0.8141 GB, free: 25.25 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.326e-05/1.168, allocations: 35.94 kB / 0.8142 GB, free: 25.22 MB / 490.7 MB Notification: Performance of matching and sorting (n=724) (initialization): time 0.08955/1.258, allocations: 18.99 MB / 0.8327 GB, free: 6.195 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001592/1.258, allocations: 52 kB / 0.8328 GB, free: 6.145 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.07093/1.329, allocations: 12 MB / 0.8445 GB, free: 10.11 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07156/1.4, allocations: 10.29 MB / 0.8545 GB, free: 15.8 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004292/1.405, allocations: 1.252 MB / 0.8558 GB, free: 14.54 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02699/1.432, allocations: 16.01 MB / 0.8714 GB, free: 14.28 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004733/1.436, allocations: 439.5 kB / 0.8718 GB, free: 13.85 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001523/1.438, allocations: 323.6 kB / 0.8721 GB, free: 13.54 MB / 0.5261 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.004409/1.442, allocations: 2.02 MB / 0.8741 GB, free: 11.5 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005877/1.443, allocations: 276.4 kB / 0.8744 GB, free: 11.23 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008379/1.451, allocations: 5.098 MB / 0.8793 GB, free: 6.102 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007054/1.458, allocations: 4.397 MB / 0.8836 GB, free: 1.691 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.257e-06/1.458, allocations: 0 / 0.8836 GB, free: 1.691 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.895e-05/1.458, allocations: 7.969 kB / 0.8836 GB, free: 1.684 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2742/1.733, allocations: 12.97 MB / 0.8963 GB, free: 135.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-05/1.733, allocations: 7.906 kB / 0.8963 GB, free: 135.3 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001542/1.734, allocations: 404.9 kB / 0.8967 GB, free: 135.3 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002519/1.737, allocations: 0.9373 MB / 0.8976 GB, free: 135.3 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001989/1.737, allocations: 56.61 kB / 0.8977 GB, free: 135.3 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005159/1.742, allocations: 5.43 MB / 0.903 GB, free: 132.8 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006615/1.743, allocations: 1.464 MB / 0.9044 GB, free: 131.4 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009965/1.753, allocations: 7.691 MB / 0.9119 GB, free: 130.8 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008253/1.754, allocations: 334.1 kB / 0.9122 GB, free: 130.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003182/1.754, allocations: 45.7 kB / 0.9123 GB, free: 130.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001352/1.755, allocations: 199.2 kB / 0.9125 GB, free: 130.6 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003817/1.756, allocations: 151.3 kB / 0.9126 GB, free: 130.6 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001669/1.756, allocations: 63.91 kB / 0.9127 GB, free: 130.6 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.004922/1.761, allocations: 1.711 MB / 0.9143 GB, free: 130 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.112e-06/1.761, allocations: 0 / 0.9143 GB, free: 130 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01051/1.771, allocations: 1.112 MB / 0.9154 GB, free: 129.9 MB / 0.5261 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.001069/1.773, allocations: 188.7 kB / 0.9156 GB, free: 129.8 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01968/1.792, allocations: 6.556 MB / 0.922 GB, free: 127.8 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.918e-05/1.792, allocations: 1.062 kB / 0.922 GB, free: 127.8 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.006837/1.799, allocations: 2.524 MB / 0.9245 GB, free: 126.7 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008339/1.808, allocations: 370.7 kB / 0.9248 GB, free: 126.6 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03322/1.841, allocations: 11.76 MB / 0.9363 GB, free: 120.9 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007958/1.849, allocations: 3.168 MB / 0.9394 GB, free: 119.7 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.008876/1.858, allocations: 2.063 MB / 0.9414 GB, free: 119.7 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001419/1.859, allocations: 207.4 kB / 0.9416 GB, free: 119.7 MB / 0.5261 GB Notification: Performance of SimCode: time 2.685e-06/1.859, allocations: 0 / 0.9416 GB, free: 119.7 MB / 0.5261 GB Notification: Performance of Templates: time 0.08872/1.948, allocations: 43.3 MB / 0.9839 GB, free: 102.1 MB / 0.5261 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/jenkins1/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