Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|openTank1.H|openTank1.m|openTank2.H|openTank2.m",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|openTank1.H|openTank1.m|openTank2.H|openTank2.m",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000865/0.0008651, allocations: 97.05 kB / 16.31 MB, free: 6.461 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008798/0.0008799, allocations: 174.6 kB / 17.19 MB, free: 6.348 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.272/1.272, allocations: 223.2 MB / 241.1 MB, free: 5.492 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002388/0.0002389, allocations: 6.562 kB / 300.7 MB, free: 6.074 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09624/0.09649, allocations: 50.43 MB / 351.1 MB, free: 11.82 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.002375/0.0989, allocations: 2.183 MB / 353.3 MB, free: 9.621 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001152/0.1001, allocations: 0.7367 MB / 354.1 MB, free: 8.879 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001077/0.1002, allocations: 3.938 kB / 354.1 MB, free: 8.875 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001556/0.1004, allocations: 51.67 kB / 354.1 MB, free: 8.824 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002705/0.1006, allocations: 155.6 kB / 354.3 MB, free: 8.672 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001628/0.1008, allocations: 63.86 kB / 354.3 MB, free: 8.609 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003687/0.1012, allocations: 303.6 kB / 354.6 MB, free: 8.312 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001853/0.1014, allocations: 86.17 kB / 354.7 MB, free: 8.223 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001427/0.1015, allocations: 135.5 kB / 354.8 MB, free: 8.09 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001908/0.1017, allocations: 151.4 kB / 355 MB, free: 7.941 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.598e-05/0.1018, allocations: 20 kB / 355 MB, free: 7.922 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.646e-05/0.1018, allocations: 16 kB / 355 MB, free: 7.906 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.033e-05/0.1019, allocations: 63.75 kB / 355.1 MB, free: 7.844 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.658e-05/0.102, allocations: 85.58 kB / 355.2 MB, free: 7.754 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002695/0.1023, allocations: 299.2 kB / 355.5 MB, free: 7.461 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.805e-06/0.1023, allocations: 0 / 355.5 MB, free: 7.461 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1023, allocations: 0 / 355.5 MB, free: 7.461 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.101e-06/0.1023, allocations: 0 / 355.5 MB, free: 7.461 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0009103/0.1032, allocations: 0.6248 MB / 356.1 MB, free: 6.781 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.443e-05/0.1032, allocations: 12.03 kB / 356.1 MB, free: 6.77 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.349e-05/0.1033, allocations: 39.62 kB / 356.1 MB, free: 6.73 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003007/0.1036, allocations: 274.3 kB / 356.4 MB, free: 6.426 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.779e-05/0.1037, allocations: 54.06 kB / 356.5 MB, free: 6.367 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.171e-05/0.1038, allocations: 24 kB / 356.5 MB, free: 6.344 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000481/0.1043, allocations: 317.4 kB / 356.8 MB, free: 5.996 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.659e-05/0.1043, allocations: 3.953 kB / 356.8 MB, free: 5.992 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.205e-05/0.1043, allocations: 12 kB / 356.8 MB, free: 5.98 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.616e-06/0.1044, allocations: 4 kB / 356.8 MB, free: 5.977 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004177/0.1048, allocations: 217.6 kB / 357 MB, free: 5.762 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001304/0.1061, allocations: 0.7831 MB / 357.8 MB, free: 4.926 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006906/0.1068, allocations: 303 kB / 358.1 MB, free: 4.621 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.217e-05/0.1068, allocations: 8 kB / 358.1 MB, free: 4.613 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.96e-05/0.1069, allocations: 46.5 kB / 358.1 MB, free: 4.559 MB / 286.1 MB Notification: Performance of pre-optimization done (n=29): time 1.423e-06/0.1069, allocations: 0 / 358.1 MB, free: 4.559 MB / 286.1 MB Notification: Performance of matching and sorting (n=29): time 0.0009975/0.1079, allocations: 491.7 kB / 358.6 MB, free: 4.051 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00012/0.108, allocations: 320.4 kB / 358.9 MB, free: 3.664 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002286/0.1083, allocations: 251 kB / 359.2 MB, free: 3.406 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.04e-05/0.1083, allocations: 33.7 kB / 359.2 MB, free: 3.367 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001078/0.1084, allocations: 172.7 kB / 359.4 MB, free: 3.191 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.012e-05/0.1085, allocations: 106.4 kB / 359.5 MB, free: 3.086 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.846e-05/0.1085, allocations: 12 kB / 359.5 MB, free: 3.074 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001089/0.1086, allocations: 346.8 kB / 359.8 MB, free: 2.727 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001989/0.1088, allocations: 95.95 kB / 359.9 MB, free: 2.633 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002807/0.1091, allocations: 208.2 kB / 360.1 MB, free: 2.383 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002504/0.1094, allocations: 147 kB / 360.3 MB, free: 2.234 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.1094, allocations: 0 / 360.3 MB, free: 2.234 MB / 286.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005916/0.11, allocations: 369.9 kB / 360.6 MB, free: 1.859 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.953e-05/0.11, allocations: 40.14 kB / 360.7 MB, free: 1.816 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/0.1101, allocations: 8.094 kB / 360.7 MB, free: 1.809 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001575/0.1102, allocations: 32.84 kB / 360.7 MB, free: 1.773 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001005/0.1112, allocations: 203.8 kB / 360.9 MB, free: 1.574 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003399/0.1146, allocations: 3.102 MB / 364 MB, free: 14.21 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002761/0.1149, allocations: 35.78 kB / 364.1 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.476e-05/0.115, allocations: 15.94 kB / 364.1 MB, free: 14.16 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 2} Notification: Performance of prepare postOptimizeDAE: time 0.0001669/0.1151, allocations: 157.7 kB / 364.2 MB, free: 14 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.921e-05/0.1152, allocations: 39.58 kB / 364.3 MB, free: 13.96 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.259e-05/0.1153, allocations: 35.08 kB / 364.3 MB, free: 13.92 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.377e-06/0.1153, allocations: 4 kB / 364.3 MB, free: 13.92 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.435e-06/0.1153, allocations: 0 / 364.3 MB, free: 13.92 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006285/0.1159, allocations: 0.6666 MB / 365 MB, free: 13.14 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003727/0.1163, allocations: 369.3 kB / 365.3 MB, free: 12.73 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.065e-06/0.1163, allocations: 3.984 kB / 365.3 MB, free: 12.73 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001333/0.1177, allocations: 251.9 kB / 365.6 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.259e-05/0.1178, allocations: 28.73 kB / 365.6 MB, free: 12.45 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.07e-05/0.1178, allocations: 8 kB / 365.6 MB, free: 12.45 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002844/0.1206, allocations: 2.934 MB / 368.6 MB, free: 9.242 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.1206, allocations: 0 / 368.6 MB, free: 9.242 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007931/0.1214, allocations: 0.5197 MB / 369.1 MB, free: 8.703 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001337/0.1216, allocations: 132.6 kB / 369.2 MB, free: 8.555 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.635e-05/0.1216, allocations: 11.98 kB / 369.2 MB, free: 8.543 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000263/0.1219, allocations: 19.98 kB / 369.2 MB, free: 8.523 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.934e-05/0.122, allocations: 19.97 kB / 369.3 MB, free: 8.504 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.145e-05/0.122, allocations: 12 kB / 369.3 MB, free: 8.492 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001596/0.1222, allocations: 182 kB / 369.4 MB, free: 8.316 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1222, allocations: 0 / 369.4 MB, free: 8.316 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000415/0.1226, allocations: 111.8 kB / 369.6 MB, free: 8.207 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (openTank1.m,openTank1.H,openTank2.m,openTank2.H) * 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 (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001236/0.1227, allocations: 103.7 kB / 369.7 MB, free: 8.098 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001512/0.1243, allocations: 0.5804 MB / 370.2 MB, free: 7.492 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.691e-06/0.1243, allocations: 4 kB / 370.2 MB, free: 7.488 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001411/0.1257, allocations: 450.3 kB / 370.7 MB, free: 7.035 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004082/0.1261, allocations: 76.59 kB / 370.8 MB, free: 6.961 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001651/0.1278, allocations: 1.028 MB / 371.8 MB, free: 5.902 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003108/0.1281, allocations: 0.7834 MB / 372.6 MB, free: 5.09 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001294/0.1282, allocations: 30.28 kB / 372.6 MB, free: 5.062 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.084e-05/0.1283, allocations: 23.44 kB / 372.6 MB, free: 5.039 MB / 302.1 MB Notification: Performance of SimCode: time 1.754e-06/0.1283, allocations: 0 / 372.6 MB, free: 5.039 MB / 302.1 MB Notification: Performance of Templates: time 0.008633/0.1369, allocations: 5.22 MB / 377.8 MB, free: 15.91 MB / 318.1 MB make -j1 -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.makefile (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & ./Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoTanks/TwoTanks.csv","../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches