Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_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_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_ModelicaTest.MultiBody.Joints.Spherical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00133/0.00133, allocations: 202.6 kB / 17.08 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.194/1.194, allocations: 227.2 MB / 245 MB, free: 7.605 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008221/0.0008222, allocations: 104.3 kB / 297.3 MB, free: 6.195 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2946/0.2946, allocations: 45.23 MB / 394.7 MB, free: 31.69 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002468/0.0002468, allocations: 4 kB / 468.4 MB, free: 7.746 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3067/0.3069, allocations: 63.24 MB / 0.5192 GB, free: 43.77 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1155/0.4225, allocations: 104.2 MB / 0.6209 GB, free: 1.43 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002423/0.4228, allocations: 79.97 kB / 0.621 GB, free: 1.352 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4307/0.8535, allocations: 86.96 MB / 0.7059 GB, free: 101.8 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.904e-06/0.8535, allocations: 0 / 0.7059 GB, free: 101.8 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001712/0.8537, allocations: 72.72 kB / 0.706 GB, free: 101.8 MB / 0.4948 GB 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.01449/0.8682, allocations: 4.115 MB / 0.71 GB, free: 100.1 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.196e-05/0.8683, allocations: 8.125 kB / 0.71 GB, free: 100.1 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02066/0.8889, allocations: 6.443 MB / 0.7163 GB, free: 99.86 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01215/0.9011, allocations: 4.56 MB / 0.7208 GB, free: 99.38 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000217/0.9014, allocations: 279.5 kB / 0.721 GB, free: 99.37 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001472/0.9029, allocations: 368.6 kB / 0.7214 GB, free: 99.37 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0189/0.9218, allocations: 10.43 MB / 0.7316 GB, free: 97.93 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000103/0.9219, allocations: 33.67 kB / 0.7316 GB, free: 97.92 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005259/0.9225, allocations: 173.1 kB / 0.7318 GB, free: 97.92 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00144/0.9239, allocations: 1.158 MB / 0.7329 GB, free: 97.91 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01899/0.9429, allocations: 10.11 MB / 0.7428 GB, free: 97.79 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04598/0.9889, allocations: 37.4 MB / 0.7793 GB, free: 74.56 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009771/0.9987, allocations: 5.599 MB / 0.7848 GB, free: 72.21 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001388/1, allocations: 1.877 MB / 0.7866 GB, free: 70.45 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.834e-05/1, allocations: 68.08 kB / 0.7867 GB, free: 70.39 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=224): time 6.623e-06/1, allocations: 0.5625 kB / 0.7867 GB, free: 70.39 MB / 0.4948 GB Notification: Performance of matching and sorting (n=231): time 0.03168/1.032, allocations: 15.45 MB / 0.8018 GB, free: 64.57 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0008606/1.033, allocations: 1.53 MB / 0.8033 GB, free: 62.94 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003796/1.037, allocations: 2.493 MB / 0.8057 GB, free: 60.83 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.000427/1.037, allocations: 55.97 kB / 0.8057 GB, free: 60.77 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001548/1.039, allocations: 2.683 MB / 0.8084 GB, free: 58.38 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001013/1.04, allocations: 0.8521 MB / 0.8092 GB, free: 57.62 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005227/1.04, allocations: 110.2 kB / 0.8093 GB, free: 57.52 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0003632/1.041, allocations: 0.5404 MB / 0.8098 GB, free: 57.04 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003286/1.044, allocations: 2.608 MB / 0.8124 GB, free: 54.81 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004461/1.048, allocations: 5.592 MB / 0.8178 GB, free: 48.22 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004597/1.053, allocations: 3.801 MB / 0.8215 GB, free: 44.83 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000107/1.053, allocations: 32 kB / 0.8216 GB, free: 44.8 MB / 0.4948 GB Notification: Performance of matching and sorting (n=724) (initialization): time 0.05291/1.106, allocations: 17.07 MB / 0.8383 GB, free: 29.8 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001155/1.106, allocations: 48 kB / 0.8383 GB, free: 29.75 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.03701/1.143, allocations: 10.6 MB / 0.8487 GB, free: 19.13 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0397/1.183, allocations: 8.662 MB / 0.8571 GB, free: 10.44 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00411/1.187, allocations: 1.244 MB / 0.8583 GB, free: 9.195 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02458/1.212, allocations: 16.85 MB / 0.8748 GB, free: 8.094 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004878/1.217, allocations: 428.6 kB / 0.8752 GB, free: 7.676 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001378/1.218, allocations: 321.6 kB / 0.8755 GB, free: 7.363 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.004492/1.222, allocations: 2.023 MB / 0.8775 GB, free: 5.332 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006593/1.223, allocations: 272.4 kB / 0.8777 GB, free: 5.062 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009262/1.232, allocations: 5.108 MB / 0.8827 GB, free: 15.92 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007115/1.24, allocations: 4.388 MB / 0.887 GB, free: 11.52 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.005e-05/1.24, allocations: 0 / 0.887 GB, free: 11.52 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.85e-05/1.24, allocations: 15.91 kB / 0.887 GB, free: 11.51 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2623/1.502, allocations: 12.96 MB / 0.8997 GB, free: 121 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-05/1.502, allocations: 7.594 kB / 0.8997 GB, free: 121 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002105/1.504, allocations: 411 kB / 0.9001 GB, free: 121 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002856/1.507, allocations: 0.9397 MB / 0.901 GB, free: 121 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004263/1.507, allocations: 52.11 kB / 0.901 GB, free: 121 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005717/1.513, allocations: 5.551 MB / 0.9065 GB, free: 118.4 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007409/1.514, allocations: 1.48 MB / 0.9079 GB, free: 117.1 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01014/1.524, allocations: 8.336 MB / 0.916 GB, free: 115.8 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008651/1.525, allocations: 334.2 kB / 0.9164 GB, free: 115.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006134/1.526, allocations: 48.56 kB / 0.9164 GB, free: 115.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001807/1.527, allocations: 199.2 kB / 0.9166 GB, free: 115.7 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003796/1.528, allocations: 143.5 kB / 0.9167 GB, free: 115.7 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001901/1.528, allocations: 62.5 kB / 0.9168 GB, free: 115.7 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.003119/1.531, allocations: 1.708 MB / 0.9185 GB, free: 115.6 MB / 0.5261 GB Notification: Performance of sort global known variables: time 2.6e-07/1.531, allocations: 2.5 kB / 0.9185 GB, free: 115.6 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.004633/1.536, allocations: 1.114 MB / 0.9196 GB, free: 115.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.0004422/1.536, allocations: 196.4 kB / 0.9197 GB, free: 115.5 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.009236/1.546, allocations: 6.483 MB / 0.9261 GB, free: 115.1 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.908e-06/1.546, allocations: 8.797 kB / 0.9261 GB, free: 115.1 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.003703/1.549, allocations: 2.518 MB / 0.9285 GB, free: 114.7 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001815/1.551, allocations: 341 kB / 0.9289 GB, free: 114.7 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01798/1.569, allocations: 11.74 MB / 0.9403 GB, free: 110.4 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003947/1.573, allocations: 3.245 MB / 0.9435 GB, free: 109.6 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.005295/1.578, allocations: 2.064 MB / 0.9455 GB, free: 109.6 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000786/1.579, allocations: 213.7 kB / 0.9457 GB, free: 109.5 MB / 0.5261 GB Notification: Performance of SimCode: time 1.422e-06/1.579, allocations: 0 / 0.9457 GB, free: 109.5 MB / 0.5261 GB Notification: Performance of Templates: time 0.05872/1.638, allocations: 43.2 MB / 0.9879 GB, free: 103.6 MB / 0.5261 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.MultiBody.Joints.Spherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches