Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.001535/0.001535, allocations: 181.7 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.179/2.179, allocations: 205.2 MB / 219.4 MB, free: 14.29 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001047/0.001047, allocations: 90.62 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.239e-05/3.249e-05, allocations: 0 / 321.5 MB, free: 17.86 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09027/0.09033, allocations: 47.57 MB / 369.1 MB, free: 2.219 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3871/0.4775, allocations: 79.93 MB / 449 MB, free: 13.22 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002544/0.4778, allocations: 74.27 kB / 449.1 MB, free: 13.18 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02641/0.5043, allocations: 6.137 MB / 455.2 MB, free: 8.031 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.495e-06/0.5043, allocations: 0 / 455.2 MB, free: 8.031 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.535e-05/0.5043, allocations: 4.766 kB / 455.2 MB, free: 8.027 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.001227/0.5056, allocations: 0.571 MB / 455.8 MB, free: 7.426 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.926e-05/0.5057, allocations: 8.031 kB / 455.8 MB, free: 7.418 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001324/0.5058, allocations: 43.53 kB / 455.8 MB, free: 7.375 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005232/0.5063, allocations: 291.6 kB / 456.1 MB, free: 7.074 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001397/0.5065, allocations: 54.84 kB / 456.2 MB, free: 7.023 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.618e-05/0.5066, allocations: 30.98 kB / 456.2 MB, free: 7 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006572/0.5072, allocations: 302.3 kB / 456.5 MB, free: 6.738 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.875e-05/0.5073, allocations: 0 / 456.5 MB, free: 6.738 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.254e-05/0.5073, allocations: 11.31 kB / 456.5 MB, free: 6.734 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.132e-05/0.5073, allocations: 4 kB / 456.5 MB, free: 6.73 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005055/0.5079, allocations: 179.7 kB / 456.7 MB, free: 6.613 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00214/0.51, allocations: 0.8031 MB / 457.5 MB, free: 5.949 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008296/0.5109, allocations: 265.5 kB / 457.8 MB, free: 5.758 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002659/0.5112, allocations: 108.7 kB / 457.9 MB, free: 5.691 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.303e-05/0.5112, allocations: 7.984 kB / 457.9 MB, free: 5.684 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.566e-05/0.5113, allocations: 42.3 kB / 457.9 MB, free: 5.637 MB / 330.7 MB Notification: Performance of pre-optimization done (n=29): time 5.48e-06/0.5113, allocations: 0 / 457.9 MB, free: 5.637 MB / 330.7 MB Notification: Performance of matching and sorting (n=29): time 0.0009146/0.5122, allocations: 289.3 kB / 458.2 MB, free: 5.414 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001737/0.5124, allocations: 319.4 kB / 458.5 MB, free: 5.031 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004068/0.5128, allocations: 248.2 kB / 458.8 MB, free: 4.832 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.385e-05/0.5129, allocations: 35.64 kB / 458.8 MB, free: 4.797 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001514/0.5131, allocations: 214 kB / 459 MB, free: 4.613 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001199/0.5132, allocations: 106.1 kB / 459.1 MB, free: 4.523 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.578e-05/0.5132, allocations: 7.188 kB / 459.1 MB, free: 4.52 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001387/0.5134, allocations: 321.3 kB / 459.4 MB, free: 4.203 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002388/0.5136, allocations: 84.69 kB / 459.5 MB, free: 4.152 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003741/0.514, allocations: 197.4 kB / 459.7 MB, free: 3.957 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003084/0.5143, allocations: 131.1 kB / 459.8 MB, free: 3.859 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.5144, allocations: 0 / 459.8 MB, free: 3.859 MB / 330.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.000921/0.5153, allocations: 337.2 kB / 460.2 MB, free: 3.598 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.397e-05/0.5153, allocations: 33.7 kB / 460.2 MB, free: 3.559 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.374e-06/0.5154, allocations: 4.094 kB / 460.2 MB, free: 3.555 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003254/0.5157, allocations: 51.52 kB / 460.2 MB, free: 3.512 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001897/0.5176, allocations: 195.8 kB / 460.4 MB, free: 3.32 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004507/0.5221, allocations: 2.949 MB / 463.4 MB, free: 260 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004487/0.5226, allocations: 35.69 kB / 463.4 MB, free: 224 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.745e-05/0.5227, allocations: 16 kB / 463.4 MB, free: 208 kB / 330.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: 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.0001693/0.5229, allocations: 132.9 kB / 463.6 MB, free: 68 kB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.089e-05/0.523, allocations: 31.62 kB / 463.6 MB, free: 36 kB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000137/0.5231, allocations: 39.28 kB / 463.6 MB, free: 15.99 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.951e-06/0.5231, allocations: 4 kB / 463.6 MB, free: 15.99 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.457e-06/0.5231, allocations: 0 / 463.6 MB, free: 15.99 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00088/0.524, allocations: 0.6386 MB / 464.3 MB, free: 15.24 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006359/0.5247, allocations: 381.1 kB / 464.6 MB, free: 14.82 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/0.5247, allocations: 4 kB / 464.6 MB, free: 14.82 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002477/0.5272, allocations: 255.8 kB / 464.9 MB, free: 14.57 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001417/0.5273, allocations: 28.78 kB / 464.9 MB, free: 14.54 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.692e-05/0.5274, allocations: 7.984 kB / 464.9 MB, free: 14.53 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003899/0.5313, allocations: 2.781 MB / 467.7 MB, free: 11.48 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.5314, allocations: 0 / 467.7 MB, free: 11.48 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001148/0.5325, allocations: 496.2 kB / 468.2 MB, free: 10.98 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002462/0.5328, allocations: 140.7 kB / 468.3 MB, free: 10.82 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.988e-05/0.5329, allocations: 4 kB / 468.3 MB, free: 10.82 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003746/0.5332, allocations: 23.95 kB / 468.4 MB, free: 10.8 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001108/0.5334, allocations: 27.89 kB / 468.4 MB, free: 10.77 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.155e-05/0.5334, allocations: 12 kB / 468.4 MB, free: 10.76 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003212/0.5337, allocations: 195.1 kB / 468.6 MB, free: 10.56 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.5338, allocations: 0 / 468.6 MB, free: 10.56 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006057/0.5344, allocations: 115.8 kB / 468.7 MB, free: 10.45 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.0002279/0.5346, allocations: 107.2 kB / 468.8 MB, free: 10.34 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002284/0.5369, allocations: 0.533 MB / 469.3 MB, free: 9.777 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.883e-06/0.5369, allocations: 8 kB / 469.4 MB, free: 9.77 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002215/0.5392, allocations: 410.8 kB / 469.8 MB, free: 9.355 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006807/0.5399, allocations: 77.81 kB / 469.8 MB, free: 9.281 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002315/0.5422, allocations: 0.6792 MB / 470.5 MB, free: 8.574 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004336/0.5427, allocations: 0.784 MB / 471.3 MB, free: 7.762 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001359/0.5428, allocations: 27.44 kB / 471.3 MB, free: 7.734 MB / 346.7 MB Notification: Performance of SimCode: time 1.182e-06/0.5428, allocations: 0 / 471.3 MB, free: 7.734 MB / 346.7 MB Notification: Performance of Templates: time 0.01355/0.5564, allocations: 6.482 MB / 477.8 MB, free: 1.25 MB / 346.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & ./Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches