Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.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) 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(Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body1.frame_a.r_0.1.|body1.frame_a.r_0.2.|body1.frame_a.r_0.3.|body1.v_0.1.|body1.v_0.2.|body1.v_0.3.|body1.w_a.1.|body1.w_a.2.|body1.w_a.3.|body2.frame_a.r_0.1.|body2.frame_a.r_0.2.|body2.frame_a.r_0.3.|body2.v_0.1.|body2.v_0.2.|body2.v_0.3.|body2.w_a.1.|body2.w_a.2.|body2.w_a.3.|body3.frame_a.r_0.1.|body3.frame_a.r_0.2.|body3.frame_a.r_0.3.|body3.v_0.1.|body3.v_0.2.|body3.v_0.3.|body3.w_a.1.|body3.w_a.2.|body3.w_a.3.|springDamperSeries.s_damper",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body1.frame_a.r_0.1.|body1.frame_a.r_0.2.|body1.frame_a.r_0.3.|body1.v_0.1.|body1.v_0.2.|body1.v_0.3.|body1.w_a.1.|body1.w_a.2.|body1.w_a.3.|body2.frame_a.r_0.1.|body2.frame_a.r_0.2.|body2.frame_a.r_0.3.|body2.v_0.1.|body2.v_0.2.|body2.v_0.3.|body2.w_a.1.|body2.w_a.2.|body2.w_a.3.|body3.frame_a.r_0.1.|body3.frame_a.r_0.2.|body3.frame_a.r_0.3.|body3.v_0.1.|body3.v_0.2.|body3.v_0.3.|body3.w_a.1.|body3.w_a.2.|body3.w_a.3.|springDamperSeries.s_damper",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001215/0.001215, allocations: 198.9 kB / 18.07 MB, free: 3.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.496/1.496, allocations: 226.5 MB / 245.4 MB, free: 8.262 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007613/0.0007613, allocations: 105.4 kB / 297.4 MB, free: 6.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002138/0.0002138, allocations: 8 kB / 357.4 MB, free: 10.97 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2471/0.2473, allocations: 51.29 MB / 408.7 MB, free: 27.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.128/0.3754, allocations: 102.8 MB / 0.4995 GB, free: 4.812 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003041/0.3758, allocations: 92.48 kB / 0.4995 GB, free: 4.723 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4861/0.8619, allocations: 120.7 MB / 0.6174 GB, free: 8.871 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.296e-06/0.8619, allocations: 7.938 kB / 0.6174 GB, free: 8.863 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002786/0.8622, allocations: 116 kB / 0.6175 GB, free: 8.75 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2151 * Number of variables: 2151 Notification: Performance of Generate backend data structure: time 0.03347/0.8957, allocations: 7.269 MB / 0.6246 GB, free: 1.398 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.717e-05/0.8958, allocations: 8.031 kB / 0.6246 GB, free: 1.391 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01933/0.9151, allocations: 3.382 MB / 0.6279 GB, free: 14 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01626/0.9315, allocations: 5.779 MB / 0.6336 GB, free: 8.152 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000591/0.9321, allocations: 460.4 kB / 0.634 GB, free: 7.699 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003111/0.9352, allocations: 0.6016 MB / 0.6346 GB, free: 7.098 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04641/0.9816, allocations: 17.55 MB / 0.6517 GB, free: 4.215 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004247/0.9821, allocations: 91.2 kB / 0.6518 GB, free: 4.125 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003135/0.9853, allocations: 291.8 kB / 0.6521 GB, free: 3.84 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003091/0.9884, allocations: 1.641 MB / 0.6537 GB, free: 2.199 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03516/1.024, allocations: 15.15 MB / 0.6685 GB, free: 3.027 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3277/1.351, allocations: 67.4 MB / 0.7343 GB, free: 38.2 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01654/1.368, allocations: 7.017 MB / 0.7412 GB, free: 36.91 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004631/1.373, allocations: 3.173 MB / 0.7443 GB, free: 36.76 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02071/1.393, allocations: 14.41 MB / 0.7583 GB, free: 29.41 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.524e-05/1.393, allocations: 73.42 kB / 0.7584 GB, free: 29.35 MB / 442.7 MB Notification: Performance of pre-optimization done (n=289): time 5.56e-06/1.393, allocations: 3.688 kB / 0.7584 GB, free: 29.35 MB / 442.7 MB Notification: Performance of matching and sorting (n=321): time 0.06252/1.456, allocations: 25.79 MB / 0.7836 GB, free: 20.73 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002267/1.458, allocations: 4.586 MB / 0.7881 GB, free: 16.26 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007683/1.466, allocations: 5.136 MB / 0.7931 GB, free: 12.91 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008105/1.467, allocations: 76.28 kB / 0.7932 GB, free: 12.84 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002227/1.469, allocations: 4.171 MB / 0.7972 GB, free: 9.223 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001708/1.471, allocations: 1.24 MB / 0.7984 GB, free: 8.129 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000683/1.472, allocations: 179.9 kB / 0.7986 GB, free: 7.957 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0004356/1.472, allocations: 0.6781 MB / 0.7993 GB, free: 7.379 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005588/1.478, allocations: 3.568 MB / 0.8028 GB, free: 4.414 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009852/1.487, allocations: 8.535 MB / 0.8111 GB, free: 10.42 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01676/1.504, allocations: 12.83 MB / 0.8236 GB, free: 12.67 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000179/1.504, allocations: 52 kB / 0.8237 GB, free: 12.62 MB / 474.7 MB Notification: Performance of matching and sorting (n=1158) (initialization): time 0.03165/1.536, allocations: 14.15 MB / 0.8375 GB, free: 0.6836 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000115/1.536, allocations: 80 kB / 0.8376 GB, free: 0.6055 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.2618/1.798, allocations: 7.27 MB / 0.8447 GB, free: 103.6 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009152/1.807, allocations: 2.859 MB / 0.8475 GB, free: 103.5 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007244/1.815, allocations: 2.07 MB / 0.8495 GB, free: 103.5 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01167/1.826, allocations: 12.65 MB / 0.8618 GB, free: 95.78 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008667/1.835, allocations: 0.8141 MB / 0.8626 GB, free: 95.78 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002093/1.837, allocations: 0.5203 MB / 0.8631 GB, free: 95.78 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 790 * Number of states: 0 () * Number of discrete variables: 66 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],body3.sphereColor[3],body3.sphereColor[2],body3.sphereColor[1],springDamperSeries.color[3],springDamperSeries.color[2],springDamperSeries.color[1],springDamperSeries.color_b[3],springDamperSeries.color_b[2],springDamperSeries.color_b[1],springDamperSeries.color_a[3],springDamperSeries.color_a[2],springDamperSeries.color_a[1],bar3.color[3],bar3.color[2],bar3.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],springDamper.color[3],springDamper.color[2],springDamper.color[1],springDamper.color_b[3],springDamper.color_b[2],springDamper.color_b[1],springDamper.color_a[3],springDamper.color_a[2],springDamper.color_a[1],damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar2.color[3],bar2.color[2],bar2.color[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1092): * Single equations (assignments): 1071 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 9 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 6 {(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 3 {4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 1,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006181/1.843, allocations: 2.737 MB / 0.8658 GB, free: 95.65 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001025/1.844, allocations: 481.8 kB / 0.8663 GB, free: 95.65 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01402/1.858, allocations: 7.282 MB / 0.8734 GB, free: 95.34 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01242/1.871, allocations: 6.477 MB / 0.8797 GB, free: 95.1 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.081e-05/1.871, allocations: 10.78 kB / 0.8797 GB, free: 95.1 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.471e-05/1.871, allocations: 18.7 kB / 0.8797 GB, free: 95.09 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03448/1.905, allocations: 17.07 MB / 0.8964 GB, free: 92.61 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.372e-05/1.906, allocations: 3.656 kB / 0.8964 GB, free: 92.61 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002858/1.908, allocations: 0.5801 MB / 0.897 GB, free: 92.59 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008031/1.916, allocations: 2.887 MB / 0.8998 GB, free: 92.13 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008437/1.917, allocations: 92.41 kB / 0.8999 GB, free: 92.09 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01294/1.93, allocations: 13.73 MB / 0.9133 GB, free: 83 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002348/1.933, allocations: 4.435 MB / 0.9176 GB, free: 78.75 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01982/1.953, allocations: 11.24 MB / 0.9286 GB, free: 74.69 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001634/1.954, allocations: 0.532 MB / 0.9291 GB, free: 74.36 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001532/1.956, allocations: 93.5 kB / 0.9292 GB, free: 74.28 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003856/1.96, allocations: 359.2 kB / 0.9295 GB, free: 74.07 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009154/1.961, allocations: 247 kB / 0.9298 GB, free: 73.93 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004716/1.961, allocations: 98.44 kB / 0.9299 GB, free: 73.85 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.006948/1.968, allocations: 3.185 MB / 0.933 GB, free: 71.27 MB / 474.7 MB Notification: Performance of sort global known variables: time 5.51e-07/1.968, allocations: 0 / 0.933 GB, free: 71.27 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009194/1.977, allocations: 1.727 MB / 0.9347 GB, free: 69.56 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 37 ($STATESET3.x[3],$STATESET3.x[2],$STATESET3.x[1],$STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3],body2.frame_a.r_0[1],body2.frame_a.r_0[2],body2.frame_a.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body2.w_a[1],body2.w_a[2],body2.w_a[3],springDamperSeries.s_damper,body3.frame_a.r_0[1],body3.frame_a.r_0[2],body3.frame_a.r_0[3],body3.v_0[1],body3.v_0[2],body3.v_0[3],body3.w_a[1],body3.w_a[2],body3.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 (267): * Single equations (assignments): 252 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 9 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 6 {(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 3 {4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 1,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001108/1.978, allocations: 260.9 kB / 0.9349 GB, free: 69.36 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01814/1.997, allocations: 10.38 MB / 0.9451 GB, free: 60.56 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.458e-05/1.997, allocations: 7.844 kB / 0.9451 GB, free: 60.55 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009135/2.006, allocations: 5.085 MB / 0.95 GB, free: 56.13 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008961/2.015, allocations: 0.6164 MB / 0.9506 GB, free: 55.6 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02611/2.041, allocations: 18.67 MB / 0.9689 GB, free: 38.62 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004707/2.046, allocations: 4.28 MB / 0.973 GB, free: 34.32 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001664/2.047, allocations: 427.3 kB / 0.9735 GB, free: 33.9 MB / 474.7 MB Notification: Performance of SimCode: time 1.022e-06/2.047, allocations: 0 / 0.9735 GB, free: 33.9 MB / 474.7 MB Notification: Performance of Templates: time 0.8776/2.925, allocations: 376.9 MB / 1.342 GB, free: 45.84 MB / 0.5105 GB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/HeatLosses/HeatLosses.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches