Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_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_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_trunk_cpp_ModelicaTest.MultiBody.Joints.Spherical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00153/0.00153, allocations: 203.4 kB / 16.79 MB, free: 4.914 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.276/1.276, allocations: 226.5 MB / 244.1 MB, free: 8.227 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007859/0.0007859, allocations: 95.05 kB / 296.1 MB, free: 6.895 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3145/0.3145, allocations: 44.82 MB / 392.9 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003593/0.0003593, allocations: 11.98 kB / 465.9 MB, free: 12.71 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3052/0.3056, allocations: 62.95 MB / 0.5165 GB, free: 37.07 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1277/0.4334, allocations: 104.1 MB / 0.6182 GB, free: 1.219 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002523/0.4337, allocations: 75.97 kB / 0.6182 GB, free: 1.145 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4142/0.8479, allocations: 84.54 MB / 0.7008 GB, free: 101.8 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.284e-06/0.8479, allocations: 4.484 kB / 0.7008 GB, free: 101.8 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001341/0.8481, allocations: 69.62 kB / 0.7009 GB, free: 101.8 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.01662/0.8647, allocations: 4.058 MB / 0.7048 GB, free: 100.1 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.751e-05/0.8647, allocations: 9 kB / 0.7048 GB, free: 100.1 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02149/0.8862, allocations: 6.321 MB / 0.711 GB, free: 99.8 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01041/0.8967, allocations: 3.817 MB / 0.7147 GB, free: 99.21 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004092/0.8972, allocations: 279.8 kB / 0.715 GB, free: 99.21 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002439/0.8996, allocations: 373.7 kB / 0.7154 GB, free: 99.2 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02238/0.922, allocations: 10.37 MB / 0.7255 GB, free: 96.23 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001334/0.9222, allocations: 41.77 kB / 0.7255 GB, free: 96.2 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007967/0.923, allocations: 171 kB / 0.7257 GB, free: 96.11 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001238/0.9242, allocations: 1.155 MB / 0.7268 GB, free: 95.9 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01799/0.9422, allocations: 10.02 MB / 0.7366 GB, free: 92.95 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05401/0.9963, allocations: 37.34 MB / 0.7731 GB, free: 67.13 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01587/1.012, allocations: 5.583 MB / 0.7785 GB, free: 61.63 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00426/1.017, allocations: 2.327 MB / 0.7808 GB, free: 59.3 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001903/1.018, allocations: 1.882 MB / 0.7826 GB, free: 57.1 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.093e-05/1.019, allocations: 60.5 kB / 0.7827 GB, free: 57.03 MB / 490.7 MB Notification: Performance of pre-optimization done (n=224): time 8.586e-06/1.019, allocations: 0 / 0.7827 GB, free: 57.03 MB / 490.7 MB Notification: Performance of matching and sorting (n=231): time 0.04022/1.059, allocations: 14.92 MB / 0.7973 GB, free: 42 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001075/1.06, allocations: 1.524 MB / 0.7988 GB, free: 40.33 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004426/1.064, allocations: 2.795 MB / 0.8015 GB, free: 37.52 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003506/1.065, allocations: 57.64 kB / 0.8015 GB, free: 37.46 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001161/1.066, allocations: 2.68 MB / 0.8042 GB, free: 34.77 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000744/1.067, allocations: 0.8524 MB / 0.805 GB, free: 33.93 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000262/1.067, allocations: 108 kB / 0.8051 GB, free: 33.82 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002582/1.067, allocations: 0.5415 MB / 0.8056 GB, free: 33.28 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003157/1.07, allocations: 2.607 MB / 0.8082 GB, free: 30.66 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004245/1.075, allocations: 5.605 MB / 0.8136 GB, free: 23.59 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008231/1.083, allocations: 8.91 MB / 0.8223 GB, free: 13.2 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.12e-05/1.083, allocations: 35.94 kB / 0.8224 GB, free: 13.17 MB / 490.7 MB Notification: Performance of matching and sorting (n=724) (initialization): time 0.05329/1.136, allocations: 17.08 MB / 0.8391 GB, free: 12.05 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001321/1.136, allocations: 48 kB / 0.8391 GB, free: 12.01 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0394/1.176, allocations: 10.61 MB / 0.8495 GB, free: 1.375 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04159/1.218, allocations: 8.643 MB / 0.8579 GB, free: 8.711 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00482/1.222, allocations: 1.248 MB / 0.8591 GB, free: 7.461 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02746/1.25, allocations: 15.58 MB / 0.8743 GB, free: 7.625 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005428/1.255, allocations: 431.5 kB / 0.8748 GB, free: 7.203 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001529/1.257, allocations: 320 kB / 0.8751 GB, free: 6.891 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.005642/1.263, allocations: 2.019 MB / 0.877 GB, free: 4.859 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008011/1.263, allocations: 268.4 kB / 0.8773 GB, free: 4.594 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2557/1.519, allocations: 5.099 MB / 0.8823 GB, free: 137.4 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007522/1.527, allocations: 4.397 MB / 0.8866 GB, free: 137.3 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.618e-06/1.527, allocations: 0 / 0.8866 GB, free: 137.3 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.77e-05/1.527, allocations: 10.16 kB / 0.8866 GB, free: 137.3 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02018/1.547, allocations: 12.97 MB / 0.8992 GB, free: 136.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.85e-05/1.547, allocations: 11 kB / 0.8993 GB, free: 136.5 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00172/1.549, allocations: 405.8 kB / 0.8996 GB, free: 136.5 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002919/1.552, allocations: 0.9378 MB / 0.9006 GB, free: 136.5 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002966/1.552, allocations: 52.41 kB / 0.9006 GB, free: 136.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006195/1.558, allocations: 5.434 MB / 0.9059 GB, free: 133.6 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007591/1.559, allocations: 1.466 MB / 0.9073 GB, free: 132.2 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01151/1.57, allocations: 7.695 MB / 0.9149 GB, free: 129.5 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008401/1.571, allocations: 331.4 kB / 0.9152 GB, free: 129.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006655/1.572, allocations: 41.61 kB / 0.9152 GB, free: 129.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001735/1.574, allocations: 202.3 kB / 0.9154 GB, free: 129.3 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004304/1.574, allocations: 144.7 kB / 0.9155 GB, free: 129.3 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002071/1.574, allocations: 69.14 kB / 0.9156 GB, free: 129.3 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.003612/1.578, allocations: 1.709 MB / 0.9173 GB, free: 128.7 MB / 0.5261 GB Notification: Performance of sort global known variables: time 2e-07/1.578, allocations: 0 / 0.9173 GB, free: 128.7 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.005252/1.583, allocations: 1.113 MB / 0.9184 GB, free: 128.6 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.0006479/1.584, allocations: 192.2 kB / 0.9185 GB, free: 128.5 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.009795/1.594, allocations: 6.487 MB / 0.9249 GB, free: 126.4 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.277e-05/1.594, allocations: 6.812 kB / 0.9249 GB, free: 126.4 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.003427/1.597, allocations: 2.522 MB / 0.9274 GB, free: 125.3 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004788/1.602, allocations: 368.8 kB / 0.9277 GB, free: 125.2 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01782/1.62, allocations: 12.23 MB / 0.9396 GB, free: 119.3 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003337/1.623, allocations: 3.172 MB / 0.9427 GB, free: 118.1 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001152/1.624, allocations: 259.8 kB / 0.943 GB, free: 118 MB / 0.5261 GB Notification: Performance of SimCode: time 8.42e-07/1.624, allocations: 0 / 0.943 GB, free: 118 MB / 0.5261 GB Notification: Performance of Templates: time 0.104/1.728, allocations: 111.5 MB / 1.052 GB, free: 24.07 MB / 0.5261 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Spherical.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Spherical.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Spherical.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Spherical.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Spherical.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Spherical --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Spherical.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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_trunk_cpp_ModelicaTest.MultiBody.Joints.Spherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches