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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001441/0.001441, allocations: 184 kB / 8.138 MB, free: 2.219 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.233/1.233, allocations: 221.4 MB / 230 MB, free: 3.016 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009373/0.000937, allocations: 103 kB / 280.8 MB, free: 1.312 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.164e-06/7.184e-06, allocations: 0 / 336.5 MB, free: 9.586 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2312/0.2312, allocations: 50.4 MB / 386.9 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1097/0.341, allocations: 101.3 MB / 488.2 MB, free: 1.492 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002005/0.3412, allocations: 92.69 kB / 488.3 MB, free: 1.402 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.4465/0.7878, allocations: 116.6 MB / 0.5908 GB, free: 6.996 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002155/0.788, allocations: 112 kB / 0.5909 GB, free: 6.887 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.02672/0.8148, allocations: 6.412 MB / 0.5971 GB, free: 428 kB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.141e-05/0.8148, allocations: 12.03 kB / 0.5971 GB, free: 416 kB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01562/0.8305, allocations: 2.893 MB / 0.6 GB, free: 13.5 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01873/0.8492, allocations: 7.324 MB / 0.6071 GB, free: 6.168 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003237/0.8496, allocations: 200 kB / 0.6073 GB, free: 5.973 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002509/0.8521, allocations: 371.7 kB / 0.6077 GB, free: 5.609 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01696/0.8691, allocations: 9.564 MB / 0.617 GB, free: 12.04 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02524/0.8943, allocations: 13.56 MB / 0.6302 GB, free: 13.18 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002301/0.8946, allocations: 75.34 kB / 0.6303 GB, free: 13.11 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009465/0.8955, allocations: 40 kB / 0.6304 GB, free: 13.07 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002829/0.8984, allocations: 1.738 MB / 0.632 GB, free: 11.33 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2148/1.113, allocations: 67.82 MB / 0.6983 GB, free: 86.82 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005251/1.119, allocations: 4.3 MB / 0.7025 GB, free: 86.14 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004183/1.123, allocations: 3.482 MB / 0.7059 GB, free: 86.1 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02028/1.143, allocations: 14.8 MB / 0.7203 GB, free: 82.11 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.313e-05/1.143, allocations: 68.25 kB / 0.7204 GB, free: 82.06 MB / 442.7 MB Notification: Performance of pre-optimization done (n=280): time 4.859e-06/1.143, allocations: 0 / 0.7204 GB, free: 82.06 MB / 442.7 MB Notification: Performance of matching and sorting (n=307): time 0.03808/1.181, allocations: 18.85 MB / 0.7388 GB, free: 78.34 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.981e-05/1.181, allocations: 160.2 kB / 0.7389 GB, free: 78.19 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005636/1.187, allocations: 3.914 MB / 0.7428 GB, free: 77.77 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000671/1.188, allocations: 29.23 kB / 0.7428 GB, free: 77.74 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00197/1.19, allocations: 3.952 MB / 0.7467 GB, free: 75.38 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00143/1.191, allocations: 1.162 MB / 0.7478 GB, free: 74.69 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000413/1.191, allocations: 3.938 kB / 0.7478 GB, free: 74.68 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000371/1.192, allocations: 0.6859 MB / 0.7485 GB, free: 74.36 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004155/1.196, allocations: 3.372 MB / 0.7518 GB, free: 74.03 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007978/1.204, allocations: 8.412 MB / 0.76 GB, free: 66.14 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009153/1.213, allocations: 5.218 MB / 0.7651 GB, free: 64.66 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002149/1.213, allocations: 51 kB / 0.7651 GB, free: 64.66 MB / 442.7 MB Notification: Performance of matching and sorting (n=1174) (initialization): time 0.02627/1.24, allocations: 12.76 MB / 0.7776 GB, free: 61.21 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.098e-05/1.24, allocations: 5.438 kB / 0.7776 GB, free: 61.21 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01281/1.253, allocations: 6.457 MB / 0.7839 GB, free: 56.58 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009054/1.262, allocations: 2.69 MB / 0.7865 GB, free: 54.64 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007185/1.269, allocations: 2.062 MB / 0.7885 GB, free: 52.84 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00985/1.279, allocations: 11.98 MB / 0.8002 GB, free: 41.32 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008842/1.288, allocations: 0.5107 MB / 0.8007 GB, free: 40.94 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001843/1.289, allocations: 0.5363 MB / 0.8013 GB, free: 40.43 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 818 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1108): * Single equations (assignments): 1087 * 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.00192/1.291, allocations: 0.5674 MB / 0.8018 GB, free: 39.86 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000886/1.292, allocations: 442.3 kB / 0.8022 GB, free: 39.42 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01307/1.305, allocations: 6.838 MB / 0.8089 GB, free: 34.05 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01244/1.318, allocations: 6.102 MB / 0.8149 GB, free: 29.2 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.11e-05/1.318, allocations: 8.891 kB / 0.8149 GB, free: 29.2 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.969e-05/1.318, allocations: 12.84 kB / 0.8149 GB, free: 29.2 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02917/1.347, allocations: 15.3 MB / 0.8298 GB, free: 17.16 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-05/1.347, allocations: 7.75 kB / 0.8298 GB, free: 17.16 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002744/1.35, allocations: 0.5138 MB / 0.8303 GB, free: 16.74 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008222/1.358, allocations: 2.681 MB / 0.833 GB, free: 14.9 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004266/1.359, allocations: 53.48 kB / 0.833 GB, free: 14.86 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01145/1.37, allocations: 13.12 MB / 0.8458 GB, free: 2.578 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.1327/1.503, allocations: 4.162 MB / 0.8499 GB, free: 108.9 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01713/1.52, allocations: 11.21 MB / 0.8608 GB, free: 107.7 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001327/1.521, allocations: 487.9 kB / 0.8613 GB, free: 107.6 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00138/1.523, allocations: 29.73 kB / 0.8613 GB, free: 107.6 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00335/1.526, allocations: 213.7 kB / 0.8615 GB, free: 107.6 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004901/1.527, allocations: 154.2 kB / 0.8617 GB, free: 107.6 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002718/1.527, allocations: 94.58 kB / 0.8618 GB, free: 107.6 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.003913/1.531, allocations: 2.58 MB / 0.8643 GB, free: 107.4 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.007774/1.539, allocations: 1.551 MB / 0.8658 GB, free: 107.4 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (253): * Single equations (assignments): 238 * 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.0006958/1.539, allocations: 208.6 kB / 0.866 GB, free: 107.3 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01741/1.557, allocations: 9.816 MB / 0.8756 GB, free: 106.1 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.099e-05/1.557, allocations: 3.344 kB / 0.8756 GB, free: 106.1 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008889/1.566, allocations: 4.693 MB / 0.8802 GB, free: 104.8 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003494/1.569, allocations: 440.7 kB / 0.8806 GB, free: 104.8 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02571/1.595, allocations: 13.07 MB / 0.8934 GB, free: 101.9 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005885/1.601, allocations: 4.766 MB / 0.898 GB, free: 101 MB / 442.7 MB Notification: Performance of SimCode: time 8.72e-07/1.601, allocations: 0 / 0.898 GB, free: 101 MB / 442.7 MB Notification: Performance of Templates: time 0.1047/1.706, allocations: 61.73 MB / 0.9583 GB, free: 75.52 MB / 442.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/jenkins/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