Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.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.Thermal.FluidHeatFlow.Examples.TestOpenTank,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|openTank.H|openTank.m",fileNamePrefix="Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|openTank.H|openTank.m",fileNamePrefix="Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00137/0.00137, allocations: 200.7 kB / 18.11 MB, free: 3.719 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.296/1.296, allocations: 226.5 MB / 245.4 MB, free: 8.184 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008084/0.0008084, allocations: 91.22 kB / 297.5 MB, free: 6.898 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002036/0.0002037, allocations: 4 kB / 358.1 MB, free: 10.29 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1934/0.1937, allocations: 51.29 MB / 409.4 MB, free: 27.65 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09409/0.2878, allocations: 84.16 MB / 493.5 MB, free: 7.371 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002232/0.2881, allocations: 83.95 kB / 493.6 MB, free: 7.289 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02425/0.3123, allocations: 9.147 MB / 0.491 GB, free: 14.11 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.3124, allocations: 0 / 0.491 GB, free: 14.11 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.995e-05/0.3124, allocations: 11.94 kB / 0.491 GB, free: 14.09 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: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.0009777/0.3134, allocations: 0.6659 MB / 0.4916 GB, free: 13.38 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.589e-05/0.3134, allocations: 12.02 kB / 0.4916 GB, free: 13.36 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001069/0.3135, allocations: 48.38 kB / 0.4917 GB, free: 13.32 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005128/0.3141, allocations: 350.6 kB / 0.492 GB, free: 12.93 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.39e-05/0.3141, allocations: 12.81 kB / 0.492 GB, free: 12.92 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.16e-05/0.3142, allocations: 20.38 kB / 0.4921 GB, free: 12.9 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000449/0.3146, allocations: 307.2 kB / 0.4923 GB, free: 12.56 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.418e-05/0.3146, allocations: 192 / 0.4923 GB, free: 12.56 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.976e-05/0.3147, allocations: 15.94 kB / 0.4924 GB, free: 12.54 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.111e-06/0.3147, allocations: 8 kB / 0.4924 GB, free: 12.54 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002935/0.315, allocations: 153.7 kB / 0.4925 GB, free: 12.39 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001308/0.3163, allocations: 0.8053 MB / 0.4933 GB, free: 11.52 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004036/0.3167, allocations: 192.1 kB / 0.4935 GB, free: 11.33 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001496/0.3169, allocations: 84.84 kB / 0.4936 GB, free: 11.24 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.62e-05/0.3169, allocations: 7.984 kB / 0.4936 GB, free: 11.23 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002462/0.3172, allocations: 136 kB / 0.4937 GB, free: 11.09 MB / 378.7 MB Notification: Performance of pre-optimization done (n=24): time 1.783e-06/0.3172, allocations: 0 / 0.4937 GB, free: 11.09 MB / 378.7 MB Notification: Performance of matching and sorting (n=24): time 0.0008054/0.318, allocations: 418.7 kB / 0.4941 GB, free: 10.65 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001216/0.3181, allocations: 320.4 kB / 0.4944 GB, free: 10.27 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004718/0.3186, allocations: 437.6 kB / 0.4948 GB, free: 9.832 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.519e-05/0.3187, allocations: 33.7 kB / 0.4949 GB, free: 9.793 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001251/0.3188, allocations: 196.3 kB / 0.495 GB, free: 9.598 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.094e-05/0.3189, allocations: 86.73 kB / 0.4951 GB, free: 9.512 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.104e-05/0.3189, allocations: 4 kB / 0.4951 GB, free: 9.508 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001222/0.319, allocations: 358.7 kB / 0.4955 GB, free: 9.148 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001477/0.3192, allocations: 63.97 kB / 0.4955 GB, free: 9.086 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002226/0.3194, allocations: 176.2 kB / 0.4957 GB, free: 8.871 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003089/0.3197, allocations: 184.7 kB / 0.4959 GB, free: 8.68 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.3197, allocations: 0 / 0.4959 GB, free: 8.68 MB / 378.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004739/0.3202, allocations: 280 kB / 0.4961 GB, free: 8.398 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.519e-05/0.3202, allocations: 8 kB / 0.4962 GB, free: 8.391 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.3202, allocations: 0 / 0.4962 GB, free: 8.391 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001255/0.3204, allocations: 32.84 kB / 0.4962 GB, free: 8.355 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002312/0.3206, allocations: 60 kB / 0.4962 GB, free: 8.297 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001266/0.3219, allocations: 1.456 MB / 0.4977 GB, free: 6.707 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001735/0.3221, allocations: 27.78 kB / 0.4977 GB, free: 6.68 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.179e-05/0.3221, allocations: 12 kB / 0.4977 GB, free: 6.668 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEvent,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001799/0.3223, allocations: 176.2 kB / 0.4979 GB, free: 6.492 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.634e-05/0.3224, allocations: 43.53 kB / 0.4979 GB, free: 6.449 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004998/0.3229, allocations: 277.9 kB / 0.4982 GB, free: 6.168 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.3229, allocations: 7.938 kB / 0.4982 GB, free: 6.16 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.573e-06/0.3229, allocations: 4 kB / 0.4982 GB, free: 6.156 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004826/0.3234, allocations: 0.5945 MB / 0.4988 GB, free: 5.457 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009465/0.3243, allocations: 0.7392 MB / 0.4995 GB, free: 4.656 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.3244, allocations: 3.938 kB / 0.4995 GB, free: 4.652 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002272/0.3246, allocations: 51.91 kB / 0.4995 GB, free: 4.602 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.256e-06/0.3246, allocations: 4 kB / 0.4995 GB, free: 4.598 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.891e-05/0.3246, allocations: 4 kB / 0.4996 GB, free: 4.594 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.909e-06/0.3246, allocations: 11.98 kB / 0.4996 GB, free: 4.582 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.103e-06/0.3246, allocations: 0 / 0.4996 GB, free: 4.582 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005891/0.3252, allocations: 431.5 kB / 0.5 GB, free: 4.145 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001635/0.3254, allocations: 148.5 kB / 0.5001 GB, free: 3.98 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.475e-05/0.3255, allocations: 11.98 kB / 0.5001 GB, free: 3.969 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001704/0.3257, allocations: 8 kB / 0.5001 GB, free: 3.961 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.302e-05/0.3257, allocations: 19.92 kB / 0.5002 GB, free: 3.941 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.806e-05/0.3257, allocations: 12.05 kB / 0.5002 GB, free: 3.93 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003313/0.3261, allocations: 315.1 kB / 0.5005 GB, free: 3.625 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.3261, allocations: 0 / 0.5005 GB, free: 3.625 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003981/0.3265, allocations: 115.8 kB / 0.5006 GB, free: 3.512 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (openTank.m,openTank.H) * Number of discrete variables: 3 ($whenCondition1,combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 2 (combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009115/0.3274, allocations: 440.2 kB / 0.501 GB, free: 3.211 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005602/0.328, allocations: 322.5 kB / 0.5013 GB, free: 2.883 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.328, allocations: 0 / 0.5013 GB, free: 2.883 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001677/0.3282, allocations: 87.91 kB / 0.5014 GB, free: 2.797 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005969/0.3288, allocations: 104.9 kB / 0.5015 GB, free: 2.699 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001311/0.3301, allocations: 0.9447 MB / 0.5024 GB, free: 1.73 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000342/0.3304, allocations: 0.796 MB / 0.5032 GB, free: 0.9062 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001776/0.3306, allocations: 46.95 kB / 0.5032 GB, free: 0.8594 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.01e-05/0.3307, allocations: 35.42 kB / 0.5033 GB, free: 0.8242 MB / 378.7 MB Notification: Performance of SimCode: time 3.4e-07/0.3307, allocations: 0 / 0.5033 GB, free: 0.8242 MB / 378.7 MB Notification: Performance of Templates: time 0.1661/0.4969, allocations: 5.906 MB / 0.509 GB, free: 93.71 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.makefile (rm -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe >> ../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.sim & ./Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TestOpenTank/TestOpenTank.csv","../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches