Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001313/0.001312, allocations: 176.9 kB / 17.4 MB, free: 4.297 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.438/1.438, allocations: 223.3 MB / 241.4 MB, free: 9.949 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007955/0.0007955, allocations: 95.3 kB / 292.6 MB, free: 10.54 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003192/0.0003192, allocations: 8 kB / 352.3 MB, free: 14.78 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2288/0.2291, allocations: 50.41 MB / 402.8 MB, free: 32.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1166/0.3457, allocations: 102.2 MB / 0.4931 GB, free: 10.03 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002662/0.3461, allocations: 95.89 kB / 0.4932 GB, free: 9.934 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4972/0.8433, allocations: 118.5 MB / 0.609 GB, free: 3.805 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.005e-06/0.8433, allocations: 0 / 0.609 GB, free: 3.805 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003497/0.8437, allocations: 120 kB / 0.6091 GB, free: 3.688 MB / 378.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.02959/0.8733, allocations: 6.957 MB / 0.6159 GB, free: 12.65 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.35e-05/0.8734, allocations: 8.031 kB / 0.6159 GB, free: 12.64 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01627/0.8897, allocations: 3.226 MB / 0.6191 GB, free: 9.402 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01741/0.9071, allocations: 6.048 MB / 0.625 GB, free: 3.289 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006366/0.9078, allocations: 460.4 kB / 0.6254 GB, free: 2.836 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003359/0.9112, allocations: 0.5977 MB / 0.626 GB, free: 2.238 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04813/0.9593, allocations: 17.55 MB / 0.6431 GB, free: 15.35 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004955/0.9599, allocations: 83.16 kB / 0.6432 GB, free: 15.27 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003073/0.963, allocations: 295.8 kB / 0.6435 GB, free: 14.98 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003064/0.9661, allocations: 1.641 MB / 0.6451 GB, free: 13.34 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2346/1.201, allocations: 15.14 MB / 0.6599 GB, free: 68.19 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06905/1.27, allocations: 67.42 MB / 0.7257 GB, free: 30.82 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01591/1.286, allocations: 7.008 MB / 0.7326 GB, free: 28.32 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004662/1.29, allocations: 3.174 MB / 0.7357 GB, free: 27.04 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02239/1.313, allocations: 14.42 MB / 0.7497 GB, free: 19.67 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.668e-05/1.313, allocations: 66.25 kB / 0.7498 GB, free: 19.62 MB / 426.7 MB Notification: Performance of pre-optimization done (n=289): time 5.621e-06/1.313, allocations: 0 / 0.7498 GB, free: 19.62 MB / 426.7 MB Notification: Performance of matching and sorting (n=321): time 0.06743/1.38, allocations: 25.8 MB / 0.775 GB, free: 8.824 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002384/1.383, allocations: 4.581 MB / 0.7795 GB, free: 3.984 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009932/1.393, allocations: 5.137 MB / 0.7845 GB, free: 15.78 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008315/1.394, allocations: 73.7 kB / 0.7846 GB, free: 15.7 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003685/1.397, allocations: 4.175 MB / 0.7886 GB, free: 11.96 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00215/1.4, allocations: 1.244 MB / 0.7899 GB, free: 10.86 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001314/1.401, allocations: 175.5 kB / 0.79 GB, free: 10.69 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0009314/1.402, allocations: 0.6797 MB / 0.7907 GB, free: 10.11 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007695/1.41, allocations: 3.572 MB / 0.7942 GB, free: 7.141 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01176/1.421, allocations: 8.527 MB / 0.8025 GB, free: 13.15 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01902/1.44, allocations: 12.83 MB / 0.815 GB, free: 15.25 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002474/1.441, allocations: 52 kB / 0.8151 GB, free: 15.2 MB / 474.7 MB Notification: Performance of matching and sorting (n=1158) (initialization): time 0.03519/1.476, allocations: 14.15 MB / 0.8289 GB, free: 3.129 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002258/1.476, allocations: 84.03 kB / 0.829 GB, free: 3.047 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.2571/1.733, allocations: 6.744 MB / 0.8356 GB, free: 109.4 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008636/1.742, allocations: 2.86 MB / 0.8384 GB, free: 109.3 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00646/1.749, allocations: 2.075 MB / 0.8404 GB, free: 109.3 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01043/1.759, allocations: 12.64 MB / 0.8527 GB, free: 101.6 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008138/1.767, allocations: 0.8231 MB / 0.8535 GB, free: 101.6 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001737/1.769, allocations: 0.5122 MB / 0.854 GB, free: 101.6 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.005575/1.775, allocations: 2.745 MB / 0.8567 GB, free: 101.5 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001232/1.776, allocations: 490.3 kB / 0.8572 GB, free: 101.5 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01421/1.79, allocations: 7.279 MB / 0.8643 GB, free: 101.1 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01132/1.801, allocations: 6.474 MB / 0.8706 GB, free: 100.9 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.649e-05/1.801, allocations: 10.25 kB / 0.8706 GB, free: 100.9 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.886e-05/1.801, allocations: 17.44 kB / 0.8706 GB, free: 100.9 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03233/1.834, allocations: 17.07 MB / 0.8873 GB, free: 98.47 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.209e-05/1.834, allocations: 7.406 kB / 0.8873 GB, free: 98.47 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003059/1.837, allocations: 0.5722 MB / 0.8879 GB, free: 98.45 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007916/1.845, allocations: 2.9 MB / 0.8907 GB, free: 97.99 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00088/1.846, allocations: 93.06 kB / 0.8908 GB, free: 97.95 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01152/1.857, allocations: 13.72 MB / 0.9042 GB, free: 88.86 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002071/1.859, allocations: 4.43 MB / 0.9085 GB, free: 84.61 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01772/1.877, allocations: 11.24 MB / 0.9195 GB, free: 80.68 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00137/1.879, allocations: 0.5367 MB / 0.92 GB, free: 80.41 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001265/1.88, allocations: 77.53 kB / 0.9201 GB, free: 80.34 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003356/1.883, allocations: 370 kB / 0.9204 GB, free: 80.13 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007762/1.884, allocations: 241.1 kB / 0.9207 GB, free: 79.99 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003734/1.884, allocations: 103.9 kB / 0.9208 GB, free: 79.91 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.007688/1.892, allocations: 3.175 MB / 0.9239 GB, free: 77.34 MB / 474.7 MB Notification: Performance of sort global known variables: time 4.4e-07/1.892, allocations: 0 / 0.9239 GB, free: 77.34 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009996/1.902, allocations: 1.734 MB / 0.9256 GB, free: 75.62 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.001235/1.903, allocations: 261.3 kB / 0.9258 GB, free: 75.42 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01747/1.921, allocations: 10.37 MB / 0.9359 GB, free: 66.64 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.14e-05/1.921, allocations: 0 / 0.9359 GB, free: 66.64 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008888/1.93, allocations: 5.086 MB / 0.9409 GB, free: 62.22 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009747/1.94, allocations: 0.6192 MB / 0.9415 GB, free: 61.69 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02758/1.967, allocations: 18.04 MB / 0.9591 GB, free: 45.52 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0077/1.975, allocations: 4.279 MB / 0.9633 GB, free: 41.22 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.007637/1.983, allocations: 2.568 MB / 0.9658 GB, free: 38.66 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00146/1.984, allocations: 363.3 kB / 0.9662 GB, free: 38.31 MB / 474.7 MB Notification: Performance of SimCode: time 8.42e-07/1.984, allocations: 0 / 0.9662 GB, free: 38.31 MB / 474.7 MB Notification: Performance of Templates: time 0.304/2.288, allocations: 60.7 MB / 1.025 GB, free: 90.35 MB / 474.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches