Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.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.TestOpenTank,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|openTank.H|openTank.m",fileNamePrefix="Modelica_3.2.3_cpp_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_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00153/0.001534, allocations: 178.4 kB / 8.362 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.109/2.109, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00105/0.00105, allocations: 84.86 kB / 262.1 MB, free: 13.89 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 1.831e-05/1.833e-05, allocations: 3.984 kB / 314.8 MB, free: 9.172 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3254/0.3255, allocations: 47.56 MB / 362.3 MB, free: 45.83 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1318/0.4574, allocations: 82.47 MB / 444.8 MB, free: 3.828 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003015/0.4577, allocations: 73 kB / 444.9 MB, free: 3.758 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.03642/0.4942, allocations: 8.206 MB / 453.1 MB, free: 11.59 MB / 347.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.4942, allocations: 0 / 453.1 MB, free: 11.59 MB / 347.1 MB Notification: Performance of Transformations before backend: time 4.554e-05/0.4943, allocations: 12 kB / 453.1 MB, free: 11.58 MB / 347.1 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.001177/0.4955, allocations: 0.5903 MB / 453.7 MB, free: 10.95 MB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.891e-05/0.4955, allocations: 8.031 kB / 453.7 MB, free: 10.94 MB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001478/0.4957, allocations: 43.53 kB / 453.7 MB, free: 10.89 MB / 347.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007728/0.4965, allocations: 332.8 kB / 454.1 MB, free: 10.53 MB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.996e-05/0.4965, allocations: 4 kB / 454.1 MB, free: 10.52 MB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.214e-05/0.4966, allocations: 12 kB / 454.1 MB, free: 10.51 MB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004421/0.4971, allocations: 140.8 kB / 454.2 MB, free: 10.38 MB / 347.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000552/0.4976, allocations: 256.6 kB / 454.5 MB, free: 10.08 MB / 347.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.754e-05/0.4977, allocations: 0 / 454.5 MB, free: 10.08 MB / 347.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.125e-05/0.4977, allocations: 7.984 kB / 454.5 MB, free: 10.07 MB / 347.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.185e-05/0.4977, allocations: 7.984 kB / 454.5 MB, free: 10.07 MB / 347.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002041/0.4998, allocations: 0.7492 MB / 455.2 MB, free: 9.27 MB / 347.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006654/0.5005, allocations: 191.3 kB / 455.4 MB, free: 9.074 MB / 347.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001881/0.5007, allocations: 68.86 kB / 455.5 MB, free: 9.004 MB / 347.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.213e-05/0.5008, allocations: 7.984 kB / 455.5 MB, free: 8.996 MB / 347.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003416/0.5011, allocations: 127.7 kB / 455.6 MB, free: 8.859 MB / 347.1 MB Notification: Performance of pre-optimization done (n=24): time 3.637e-06/0.5011, allocations: 0 / 455.6 MB, free: 8.859 MB / 347.1 MB Notification: Performance of matching and sorting (n=24): time 0.000881/0.502, allocations: 243.7 kB / 455.8 MB, free: 8.613 MB / 347.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001526/0.5022, allocations: 316.4 kB / 456.2 MB, free: 8.23 MB / 347.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006646/0.5029, allocations: 358.2 kB / 456.5 MB, free: 7.883 MB / 347.1 MB Notification: Performance of collectPreVariables (initialization): time 6.065e-05/0.503, allocations: 29.7 kB / 456.5 MB, free: 7.848 MB / 347.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001952/0.5032, allocations: 238.9 kB / 456.8 MB, free: 7.609 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001058/0.5033, allocations: 79.59 kB / 456.8 MB, free: 7.531 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.506e-05/0.5033, allocations: 0 / 456.8 MB, free: 7.531 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.0001295/0.5035, allocations: 326.8 kB / 457.2 MB, free: 7.203 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001688/0.5036, allocations: 55.98 kB / 457.2 MB, free: 7.148 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000282/0.5039, allocations: 164.9 kB / 457.4 MB, free: 6.941 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002289/0.5042, allocations: 74.02 kB / 457.5 MB, free: 6.871 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.5042, allocations: 0 / 457.5 MB, free: 6.871 MB / 347.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007707/0.505, allocations: 259.8 kB / 457.7 MB, free: 6.613 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.907e-05/0.5051, allocations: 4 kB / 457.7 MB, free: 6.609 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.738e-06/0.5051, allocations: 3.938 kB / 457.7 MB, free: 6.605 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002937/0.5054, allocations: 36.84 kB / 457.8 MB, free: 6.566 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004122/0.5058, allocations: 47.97 kB / 457.8 MB, free: 6.52 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001831/0.5077, allocations: 1.404 MB / 459.2 MB, free: 4.996 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003814/0.5081, allocations: 15.84 kB / 459.2 MB, free: 4.98 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.574e-05/0.5081, allocations: 16.03 kB / 459.2 MB, free: 4.965 MB / 347.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real openTank.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: 5 ($whenCondition1,$PRE.combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEvent,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEventScaled) * Number of discrete 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.0002148/0.5084, allocations: 116.9 kB / 459.3 MB, free: 4.844 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001039/0.5085, allocations: 47.48 kB / 459.4 MB, free: 4.797 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008658/0.5094, allocations: 258.7 kB / 459.6 MB, free: 4.535 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.576e-06/0.5094, allocations: 4 kB / 459.7 MB, free: 4.531 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.5094, allocations: 0 / 459.7 MB, free: 4.531 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006432/0.5101, allocations: 0.5726 MB / 460.2 MB, free: 3.855 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001475/0.5116, allocations: 0.6892 MB / 460.9 MB, free: 3.117 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.5116, allocations: 0 / 460.9 MB, free: 3.117 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004258/0.512, allocations: 51.91 kB / 461 MB, free: 3.066 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.456e-06/0.5121, allocations: 0 / 461 MB, free: 3.066 MB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.581e-05/0.5121, allocations: 0 / 461 MB, free: 3.066 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.014e-05/0.5121, allocations: 7.984 kB / 461 MB, free: 3.059 MB / 347.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.008e-06/0.5121, allocations: 0 / 461 MB, free: 3.059 MB / 347.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009404/0.5131, allocations: 403 kB / 461.4 MB, free: 2.648 MB / 347.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003271/0.5135, allocations: 148.6 kB / 461.5 MB, free: 2.484 MB / 347.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.171e-05/0.5136, allocations: 4 kB / 461.5 MB, free: 2.48 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000324/0.5139, allocations: 4 kB / 461.5 MB, free: 2.477 MB / 347.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.813e-05/0.514, allocations: 19.97 kB / 461.5 MB, free: 2.457 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.051e-05/0.514, allocations: 4.188 kB / 461.5 MB, free: 2.453 MB / 347.1 MB Notification: Performance of sorting global known variables: time 0.0005258/0.5146, allocations: 280.5 kB / 461.8 MB, free: 2.176 MB / 347.1 MB Notification: Performance of sort global known variables: time 4.71e-07/0.5146, allocations: 0 / 461.8 MB, free: 2.176 MB / 347.1 MB Notification: Performance of remove unused functions: time 0.0006691/0.5153, allocations: 103.8 kB / 461.9 MB, free: 2.074 MB / 347.1 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) * 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.001121/0.5164, allocations: 373.9 kB / 462.3 MB, free: 1.754 MB / 347.1 MB Notification: Performance of simCode: created initialization part: time 0.0008664/0.5173, allocations: 297.5 kB / 462.6 MB, free: 1.453 MB / 347.1 MB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/0.5173, allocations: 0 / 462.6 MB, free: 1.453 MB / 347.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002195/0.5176, allocations: 83.92 kB / 462.7 MB, free: 1.371 MB / 347.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008025/0.5184, allocations: 82.27 kB / 462.7 MB, free: 1.293 MB / 347.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001601/0.52, allocations: 0.569 MB / 463.3 MB, free: 0.6953 MB / 347.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004666/0.5205, allocations: 0.8147 MB / 464.1 MB, free: 15.85 MB / 363.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001635/0.5207, allocations: 31.44 kB / 464.1 MB, free: 15.82 MB / 363.1 MB Notification: Performance of SimCode: time 9.92e-07/0.5207, allocations: 0 / 464.1 MB, free: 15.82 MB / 363.1 MB Notification: Performance of Templates: time 0.01445/0.5351, allocations: 5.676 MB / 469.8 MB, free: 10.16 MB / 363.1 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.sim & ./Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/FluidHeatFlow/Examples/TestOpenTank/TestOpenTank.csv","../files/Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches