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.001086/0.001086, allocations: 200 kB / 18.11 MB, free: 3.586 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.441/1.441, allocations: 226.5 MB / 245.4 MB, free: 8.164 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007425/0.0007428, allocations: 103.7 kB / 297.5 MB, free: 6.883 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3857/0.3857, allocations: 44.82 MB / 394.3 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002882/0.0002882, allocations: 8 kB / 467.9 MB, free: 12.04 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3712/0.3715, allocations: 62.96 MB / 0.5184 GB, free: 37.35 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1414/0.513, allocations: 104.1 MB / 0.6201 GB, free: 1.133 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002701/0.5133, allocations: 87.94 kB / 0.6202 GB, free: 1.051 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5211/1.034, allocations: 84.53 MB / 0.7027 GB, free: 102 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.322e-06/1.034, allocations: 0 / 0.7027 GB, free: 102 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001123/1.035, allocations: 78.23 kB / 0.7028 GB, free: 102 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.01329/1.048, allocations: 4.06 MB / 0.7068 GB, free: 100.3 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.487e-05/1.048, allocations: 9.062 kB / 0.7068 GB, free: 100.3 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02293/1.071, allocations: 6.324 MB / 0.713 GB, free: 100 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01116/1.082, allocations: 3.811 MB / 0.7167 GB, free: 99.42 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005018/1.083, allocations: 283.2 kB / 0.717 GB, free: 99.41 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002649/1.085, allocations: 369.8 kB / 0.7173 GB, free: 99.41 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02561/1.111, allocations: 10.37 MB / 0.7274 GB, free: 96.43 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002841/1.111, allocations: 38.28 kB / 0.7275 GB, free: 96.41 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001917/1.113, allocations: 173.7 kB / 0.7276 GB, free: 96.32 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001707/1.115, allocations: 1.152 MB / 0.7288 GB, free: 96.11 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02008/1.135, allocations: 10.02 MB / 0.7386 GB, free: 93.16 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05939/1.194, allocations: 37.34 MB / 0.775 GB, free: 67.09 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01051/1.205, allocations: 5.599 MB / 0.7805 GB, free: 61.55 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002875/1.208, allocations: 2.326 MB / 0.7828 GB, free: 59.23 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001277/1.209, allocations: 1.872 MB / 0.7846 GB, free: 57.03 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.926e-05/1.209, allocations: 49.22 kB / 0.7846 GB, free: 56.97 MB / 490.7 MB Notification: Performance of pre-optimization done (n=224): time 7.224e-06/1.209, allocations: 0 / 0.7846 GB, free: 56.97 MB / 490.7 MB Notification: Performance of matching and sorting (n=231): time 0.03393/1.243, allocations: 14.93 MB / 0.7992 GB, free: 41.93 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001043/1.244, allocations: 1.52 MB / 0.8007 GB, free: 40.27 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005266/1.25, allocations: 2.803 MB / 0.8034 GB, free: 37.45 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005573/1.25, allocations: 60.91 kB / 0.8035 GB, free: 37.39 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00166/1.252, allocations: 2.677 MB / 0.8061 GB, free: 34.71 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001184/1.253, allocations: 0.8494 MB / 0.8069 GB, free: 33.86 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006692/1.254, allocations: 110.2 kB / 0.807 GB, free: 33.76 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0004931/1.254, allocations: 0.5337 MB / 0.8076 GB, free: 33.22 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003839/1.258, allocations: 2.611 MB / 0.8101 GB, free: 30.6 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005372/1.263, allocations: 5.612 MB / 0.8156 GB, free: 23.52 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009255/1.273, allocations: 8.91 MB / 0.8243 GB, free: 13.13 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001066/1.273, allocations: 31.94 kB / 0.8243 GB, free: 13.1 MB / 490.7 MB Notification: Performance of matching and sorting (n=724) (initialization): time 0.0561/1.329, allocations: 17.08 MB / 0.841 GB, free: 11.99 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001552/1.329, allocations: 56.92 kB / 0.8411 GB, free: 11.94 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04286/1.372, allocations: 10.61 MB / 0.8514 GB, free: 1.301 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0438/1.416, allocations: 8.632 MB / 0.8599 GB, free: 8.645 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005338/1.421, allocations: 1.252 MB / 0.8611 GB, free: 7.391 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02765/1.449, allocations: 15.6 MB / 0.8763 GB, free: 7.543 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005564/1.455, allocations: 422.1 kB / 0.8767 GB, free: 7.133 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001482/1.456, allocations: 320 kB / 0.877 GB, free: 6.82 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.005979/1.462, allocations: 2.026 MB / 0.879 GB, free: 4.785 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009102/1.463, allocations: 272.4 kB / 0.8792 GB, free: 4.516 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4069/1.87, allocations: 5.094 MB / 0.8842 GB, free: 137.5 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01181/1.882, allocations: 4.393 MB / 0.8885 GB, free: 137.4 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.704e-05/1.882, allocations: 3.906 kB / 0.8885 GB, free: 137.4 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.681e-05/1.882, allocations: 12.88 kB / 0.8885 GB, free: 137.4 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02984/1.912, allocations: 12.97 MB / 0.9012 GB, free: 136.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.875e-05/1.912, allocations: 7.219 kB / 0.9012 GB, free: 136.6 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002098/1.914, allocations: 404 kB / 0.9016 GB, free: 136.6 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003171/1.917, allocations: 0.9349 MB / 0.9025 GB, free: 136.6 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004202/1.918, allocations: 53.98 kB / 0.9026 GB, free: 136.6 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007076/1.925, allocations: 5.438 MB / 0.9079 GB, free: 133.7 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0009298/1.926, allocations: 1.465 MB / 0.9093 GB, free: 132.3 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01506/1.941, allocations: 7.691 MB / 0.9168 GB, free: 129.6 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001176/1.942, allocations: 335.1 kB / 0.9171 GB, free: 129.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009852/1.943, allocations: 45.36 kB / 0.9172 GB, free: 129.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002154/1.945, allocations: 198.5 kB / 0.9174 GB, free: 129.4 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006002/1.946, allocations: 140.6 kB / 0.9175 GB, free: 129.4 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000292/1.946, allocations: 72.06 kB / 0.9176 GB, free: 129.4 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.005777/1.952, allocations: 1.706 MB / 0.9192 GB, free: 128.8 MB / 0.5261 GB Notification: Performance of sort global known variables: time 9.01e-07/1.952, allocations: 3.469 kB / 0.9192 GB, free: 128.8 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.007082/1.959, allocations: 1.12 MB / 0.9203 GB, free: 128.7 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.0008108/1.96, allocations: 188.4 kB / 0.9205 GB, free: 128.6 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0109/1.971, allocations: 6.49 MB / 0.9268 GB, free: 126.5 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.303e-05/1.971, allocations: 3.031 kB / 0.9268 GB, free: 126.5 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.00403/1.975, allocations: 2.521 MB / 0.9293 GB, free: 125.4 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005899/1.981, allocations: 356.2 kB / 0.9296 GB, free: 125.3 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02116/2.002, allocations: 11.77 MB / 0.9411 GB, free: 119.6 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005258/2.007, allocations: 3.164 MB / 0.9442 GB, free: 118.4 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.005304/2.013, allocations: 2.067 MB / 0.9463 GB, free: 118.4 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000701/2.013, allocations: 217.3 kB / 0.9465 GB, free: 118.3 MB / 0.5261 GB Notification: Performance of SimCode: time 9.52e-07/2.013, allocations: 0 / 0.9465 GB, free: 118.3 MB / 0.5261 GB Notification: Performance of Templates: time 0.06566/2.079, allocations: 43.29 MB / 0.9887 GB, free: 90.68 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/jenkins1/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