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.001018/0.001018, allocations: 177.3 kB / 17.41 MB, free: 4.418 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.414/1.414, allocations: 205.4 MB / 223.6 MB, free: 9.043 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.0007377/0.0007377, allocations: 91.91 kB / 271.9 MB, free: 8.281 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.3082/0.3082, allocations: 43.56 MB / 363.8 MB, free: 51.89 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004174/0.0004179, allocations: 16 kB / 432.6 MB, free: 5.676 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1209/0.1213, allocations: 58.84 MB / 491.4 MB, free: 10.75 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3361/0.4575, allocations: 101.8 MB / 0.5794 GB, free: 492 kB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002672/0.4578, allocations: 79.95 kB / 0.5794 GB, free: 412 kB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.201/0.6588, allocations: 82.21 MB / 0.6597 GB, free: 13.58 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.604e-06/0.6589, allocations: 0 / 0.6597 GB, free: 13.58 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001401/0.659, allocations: 64 kB / 0.6598 GB, free: 13.52 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.0149/0.6739, allocations: 3.974 MB / 0.6637 GB, free: 9.477 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.883e-05/0.674, allocations: 12.03 kB / 0.6637 GB, free: 9.465 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02128/0.6953, allocations: 5.751 MB / 0.6693 GB, free: 3.699 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.44/1.135, allocations: 4.132 MB / 0.6733 GB, free: 97.57 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009571/1.136, allocations: 278.3 kB / 0.6736 GB, free: 97.57 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005112/1.142, allocations: 368.5 kB / 0.6739 GB, free: 97.57 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04816/1.19, allocations: 10.38 MB / 0.6841 GB, free: 96.12 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004197/1.19, allocations: 27.03 kB / 0.6841 GB, free: 96.12 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003211/1.194, allocations: 174.3 kB / 0.6843 GB, free: 96.12 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003538/1.197, allocations: 1.155 MB / 0.6854 GB, free: 96.12 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03306/1.23, allocations: 10.02 MB / 0.6952 GB, free: 96.09 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1009/1.331, allocations: 37.36 MB / 0.7317 GB, free: 75.51 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01874/1.35, allocations: 5.585 MB / 0.7371 GB, free: 73.18 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005343/1.355, allocations: 2.331 MB / 0.7394 GB, free: 72.29 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002284/1.358, allocations: 1.878 MB / 0.7412 GB, free: 70.54 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.621e-05/1.358, allocations: 52.22 kB / 0.7413 GB, free: 70.48 MB / 490.7 MB Notification: Performance of pre-optimization done (n=224): time 9.037e-06/1.358, allocations: 0 / 0.7413 GB, free: 70.48 MB / 490.7 MB Notification: Performance of matching and sorting (n=231): time 0.05758/1.415, allocations: 14.98 MB / 0.7559 GB, free: 66.1 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001801/1.417, allocations: 1.52 MB / 0.7574 GB, free: 64.6 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006828/1.424, allocations: 2.811 MB / 0.7601 GB, free: 63.62 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009144/1.425, allocations: 53.58 kB / 0.7602 GB, free: 63.57 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002077/1.427, allocations: 2.687 MB / 0.7628 GB, free: 61.67 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00155/1.429, allocations: 0.8423 MB / 0.7636 GB, free: 61.05 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004349/1.429, allocations: 110.5 kB / 0.7638 GB, free: 60.97 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003391/1.43, allocations: 0.5463 MB / 0.7643 GB, free: 60.57 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004348/1.434, allocations: 2.602 MB / 0.7668 GB, free: 59.75 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006904/1.441, allocations: 5.616 MB / 0.7723 GB, free: 54.9 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01694/1.458, allocations: 8.912 MB / 0.781 GB, free: 48.43 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002782/1.458, allocations: 35.72 kB / 0.781 GB, free: 48.43 MB / 490.7 MB Notification: Performance of matching and sorting (n=724) (initialization): time 0.08374/1.542, allocations: 18.97 MB / 0.7996 GB, free: 39.41 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003783/1.543, allocations: 52 kB / 0.7996 GB, free: 39.36 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.06367/1.606, allocations: 12.01 MB / 0.8114 GB, free: 30.11 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.06596/1.672, allocations: 10.3 MB / 0.8214 GB, free: 19.78 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008016/1.68, allocations: 1.248 MB / 0.8226 GB, free: 18.53 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03373/1.714, allocations: 16 MB / 0.8382 GB, free: 2.281 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007579/1.722, allocations: 439.5 kB / 0.8387 GB, free: 1.852 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002128/1.724, allocations: 318.7 kB / 0.839 GB, free: 1.543 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.009369/1.734, allocations: 2.029 MB / 0.841 GB, free: 15.5 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002009/1.736, allocations: 274.6 kB / 0.8412 GB, free: 15.23 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01736/1.753, allocations: 5.108 MB / 0.8462 GB, free: 10.1 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01467/1.768, allocations: 4.39 MB / 0.8505 GB, free: 5.688 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.382e-05/1.768, allocations: 3.938 kB / 0.8505 GB, free: 5.684 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.331e-05/1.768, allocations: 11.97 kB / 0.8505 GB, free: 5.672 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04496/1.813, allocations: 12.98 MB / 0.8632 GB, free: 8.539 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.407e-05/1.813, allocations: 8 kB / 0.8632 GB, free: 8.531 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003452/1.817, allocations: 407.4 kB / 0.8636 GB, free: 8.133 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004756/1.821, allocations: 0.9313 MB / 0.8645 GB, free: 7.191 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009108/1.822, allocations: 61.92 kB / 0.8645 GB, free: 7.137 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01185/1.834, allocations: 5.432 MB / 0.8699 GB, free: 1.445 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.5514/2.386, allocations: 1.458 MB / 0.8713 GB, free: 118.5 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02576/2.412, allocations: 7.699 MB / 0.8788 GB, free: 118 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001903/2.414, allocations: 332.2 kB / 0.8791 GB, free: 117.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001763/2.415, allocations: 45.45 kB / 0.8792 GB, free: 117.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003712/2.419, allocations: 197 kB / 0.8793 GB, free: 117.9 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009533/2.42, allocations: 139.9 kB / 0.8795 GB, free: 117.9 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003238/2.42, allocations: 70.72 kB / 0.8795 GB, free: 117.9 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.005368/2.426, allocations: 1.718 MB / 0.8812 GB, free: 117.8 MB / 0.5105 GB Notification: Performance of sort global known variables: time 5.91e-07/2.426, allocations: 1.969 kB / 0.8812 GB, free: 117.8 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01235/2.438, allocations: 1.106 MB / 0.8823 GB, free: 117.8 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.001721/2.44, allocations: 190.3 kB / 0.8825 GB, free: 117.7 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02059/2.461, allocations: 6.559 MB / 0.8889 GB, free: 117.3 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.089e-05/2.461, allocations: 0 / 0.8889 GB, free: 117.3 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.007688/2.468, allocations: 2.527 MB / 0.8914 GB, free: 117 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008657/2.477, allocations: 367.2 kB / 0.8917 GB, free: 116.9 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03818/2.515, allocations: 12.25 MB / 0.9037 GB, free: 112.6 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009754/2.525, allocations: 3.169 MB / 0.9068 GB, free: 111.8 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002084/2.527, allocations: 262 kB / 0.907 GB, free: 111.8 MB / 0.5105 GB Notification: Performance of SimCode: time 1.653e-06/2.527, allocations: 0 / 0.907 GB, free: 111.8 MB / 0.5105 GB Notification: Performance of Templates: time 0.2911/2.818, allocations: 111.6 MB / 1.016 GB, free: 50.55 MB / 0.5105 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