Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001039/0.001039, allocations: 178.4 kB / 8.698 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.521/1.521, allocations: 205.3 MB / 214.4 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001327/0.001326, allocations: 78.72 kB / 262.4 MB, free: 1.691 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.688e-05/2.686e-05, allocations: 4 kB / 315.5 MB, free: 22.74 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1303/0.1304, allocations: 47.59 MB / 363.1 MB, free: 7.09 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3983/0.5287, allocations: 79.51 MB / 442.6 MB, free: 132 kB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002651/0.5291, allocations: 74.2 kB / 442.7 MB, free: 92 kB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01643/0.5455, allocations: 6.06 MB / 448.7 MB, free: 11.12 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.815e-06/0.5455, allocations: 0 / 448.7 MB, free: 11.12 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.564e-05/0.5456, allocations: 4.766 kB / 448.7 MB, free: 11.12 MB / 330.7 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.0008708/0.5465, allocations: 0.5787 MB / 449.3 MB, free: 10.51 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.274e-05/0.5465, allocations: 8.031 kB / 449.3 MB, free: 10.5 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000106/0.5466, allocations: 47.53 kB / 449.3 MB, free: 10.45 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004143/0.547, allocations: 284.6 kB / 449.6 MB, free: 10.16 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.631e-05/0.5471, allocations: 52.2 kB / 449.7 MB, free: 10.11 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.89e-05/0.5472, allocations: 15.95 kB / 449.7 MB, free: 10.09 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003134/0.5475, allocations: 169.1 kB / 449.9 MB, free: 9.984 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003835/0.5479, allocations: 264.9 kB / 450.1 MB, free: 9.738 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.469e-05/0.5479, allocations: 0 / 450.1 MB, free: 9.738 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.747e-05/0.548, allocations: 0 / 450.1 MB, free: 9.738 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.037e-05/0.548, allocations: 15.92 kB / 450.1 MB, free: 9.723 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00129/0.5493, allocations: 0.7518 MB / 450.9 MB, free: 9.109 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005104/0.5498, allocations: 256.7 kB / 451.1 MB, free: 8.93 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001497/0.55, allocations: 96.05 kB / 451.2 MB, free: 8.871 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.391e-05/0.55, allocations: 4 kB / 451.2 MB, free: 8.867 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.977e-05/0.5501, allocations: 46.05 kB / 451.3 MB, free: 8.816 MB / 330.7 MB Notification: Performance of pre-optimization done (n=29): time 1.473e-06/0.5501, allocations: 3.938 kB / 451.3 MB, free: 8.812 MB / 330.7 MB Notification: Performance of matching and sorting (n=29): time 0.0006022/0.5507, allocations: 265.7 kB / 451.5 MB, free: 8.605 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001471/0.5508, allocations: 320 kB / 451.9 MB, free: 8.223 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002448/0.5511, allocations: 234.1 kB / 452.1 MB, free: 8.035 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.266e-05/0.5511, allocations: 29.7 kB / 452.1 MB, free: 8 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001071/0.5513, allocations: 162.3 kB / 452.3 MB, free: 7.879 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.622e-05/0.5513, allocations: 103.9 kB / 452.4 MB, free: 7.789 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.378e-05/0.5514, allocations: 4 kB / 452.4 MB, free: 7.785 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001488/0.5515, allocations: 344.4 kB / 452.7 MB, free: 7.453 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001193/0.5516, allocations: 74.94 kB / 452.8 MB, free: 7.41 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002143/0.5519, allocations: 183.5 kB / 453 MB, free: 7.227 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001585/0.552, allocations: 93.98 kB / 453.1 MB, free: 7.168 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.552, allocations: 0 / 453.1 MB, free: 7.168 MB / 330.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005128/0.5526, allocations: 311.2 kB / 453.4 MB, free: 6.926 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.311e-05/0.5526, allocations: 29.7 kB / 453.4 MB, free: 6.891 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/0.5526, allocations: 4 kB / 453.4 MB, free: 6.887 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000203/0.5528, allocations: 41.53 kB / 453.4 MB, free: 6.855 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001/0.5538, allocations: 203.9 kB / 453.6 MB, free: 6.656 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002954/0.5568, allocations: 2.847 MB / 456.5 MB, free: 3.754 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002695/0.5571, allocations: 31.78 kB / 456.5 MB, free: 3.723 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.744e-05/0.5571, allocations: 8 kB / 456.5 MB, free: 3.715 MB / 330.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: openTank1.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real openTank2.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real 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 () * 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.000221/0.5574, allocations: 120.9 kB / 456.6 MB, free: 3.59 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.459e-05/0.5574, allocations: 35.58 kB / 456.7 MB, free: 3.555 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.086e-05/0.5575, allocations: 36.45 kB / 456.7 MB, free: 3.539 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.5575, allocations: 4 kB / 456.7 MB, free: 3.535 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.5575, allocations: 4 kB / 456.7 MB, free: 3.531 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006273/0.5582, allocations: 0.6225 MB / 457.3 MB, free: 2.859 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004472/0.5586, allocations: 336.8 kB / 457.7 MB, free: 2.559 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.5587, allocations: 0 / 457.7 MB, free: 2.559 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001292/0.5599, allocations: 255.1 kB / 457.9 MB, free: 2.312 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.921e-05/0.5601, allocations: 28.28 kB / 457.9 MB, free: 2.285 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.085e-05/0.5601, allocations: 0 / 457.9 MB, free: 2.285 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002497/0.5626, allocations: 2.685 MB / 460.6 MB, free: 15.48 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.444e-06/0.5626, allocations: 0 / 460.6 MB, free: 15.48 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000631/0.5633, allocations: 476.7 kB / 461.1 MB, free: 15.11 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001625/0.5634, allocations: 134.9 kB / 461.2 MB, free: 14.97 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.196e-05/0.5635, allocations: 3.984 kB / 461.2 MB, free: 14.96 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001981/0.5637, allocations: 12.06 kB / 461.2 MB, free: 14.95 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.617e-05/0.5638, allocations: 31.33 kB / 461.3 MB, free: 14.93 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.79e-05/0.5638, allocations: 7.438 kB / 461.3 MB, free: 14.92 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001874/0.564, allocations: 181.9 kB / 461.5 MB, free: 14.78 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.564, allocations: 0 / 461.5 MB, free: 14.78 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004245/0.5644, allocations: 95.94 kB / 461.6 MB, free: 14.69 MB / 346.7 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 () * 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.0002338/0.5647, allocations: 115.2 kB / 461.7 MB, free: 14.57 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001291/0.566, allocations: 0.5032 MB / 462.2 MB, free: 14.12 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.658e-06/0.566, allocations: 4 kB / 462.2 MB, free: 14.11 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001195/0.5672, allocations: 395.7 kB / 462.6 MB, free: 13.75 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004333/0.5676, allocations: 74.12 kB / 462.6 MB, free: 13.7 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001469/0.5691, allocations: 0.6569 MB / 463.3 MB, free: 13.06 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003858/0.5695, allocations: 0.7801 MB / 464.1 MB, free: 12.25 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001443/0.5697, allocations: 39.2 kB / 464.1 MB, free: 12.22 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.828e-05/0.5697, allocations: 27.44 kB / 464.1 MB, free: 12.2 MB / 346.7 MB Notification: Performance of SimCode: time 2e-07/0.5697, allocations: 0 / 464.1 MB, free: 12.2 MB / 346.7 MB Notification: Performance of Templates: time 0.009425/0.5792, allocations: 5.064 MB / 469.2 MB, free: 7.145 MB / 346.7 MB make -j1 -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.makefile (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & ./Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/FluidHeatFlow/Examples/TwoTanks/TwoTanks.csv","../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches