Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.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.Fluid.Examples.Tanks.ThreeTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks") translateModel(Modelica.Fluid.Examples.Tanks.ThreeTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009027/0.0009028, allocations: 96.05 kB / 16.3 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.0008751/0.0008752, 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.29/1.29, allocations: 223.2 MB / 241.1 MB, free: 5.441 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002417/0.0002417, allocations: 7.125 kB / 300.7 MB, free: 5.984 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1197/0.12, allocations: 50.44 MB / 351.2 MB, free: 11.72 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.03801/0.158, allocations: 25.15 MB / 376.3 MB, free: 2.496 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02544/0.1835, allocations: 13.37 MB / 389.7 MB, free: 5.105 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002118/0.1857, allocations: 63.44 kB / 389.7 MB, free: 5.043 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002387/0.1881, allocations: 0.5168 MB / 390.2 MB, free: 4.523 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007934/0.1961, allocations: 1.888 MB / 392.1 MB, free: 2.633 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01081/0.2069, allocations: 2.93 MB / 395.1 MB, free: 15.71 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005408/0.2123, allocations: 2.303 MB / 397.4 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002231/0.2146, allocations: 0.9768 MB / 398.3 MB, free: 12.4 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003298/0.2179, allocations: 1.211 MB / 399.6 MB, free: 11.18 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002879/0.2208, allocations: 1.094 MB / 400.7 MB, free: 10.09 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004167/0.2212, allocations: 84 kB / 400.7 MB, free: 10 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007614/0.2289, allocations: 2.223 MB / 403 MB, free: 7.777 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001095/0.23, allocations: 0.4909 MB / 403.5 MB, free: 7.285 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007312/0.2307, allocations: 313 kB / 403.8 MB, free: 6.973 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005977/0.2367, allocations: 2.619 MB / 406.4 MB, free: 4.348 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.2368, allocations: 0 / 406.4 MB, free: 4.348 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.445e-06/0.2368, allocations: 0 / 406.4 MB, free: 4.348 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.1e-05/0.2368, allocations: 0 / 406.4 MB, free: 4.348 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.006605/0.2434, allocations: 1.904 MB / 408.3 MB, free: 2.391 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.766e-05/0.2435, allocations: 8.031 kB / 408.3 MB, free: 2.383 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008026/0.2443, allocations: 178.1 kB / 408.5 MB, free: 2.207 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002358/0.2467, allocations: 0.9722 MB / 409.4 MB, free: 1.191 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001929/0.2469, allocations: 175.1 kB / 409.6 MB, free: 1 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002692/0.2472, allocations: 99.97 kB / 409.7 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003958/0.2511, allocations: 1.74 MB / 411.4 MB, free: 15.11 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.645e-05/0.2512, allocations: 0 / 411.4 MB, free: 15.11 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002119/0.2514, allocations: 43.97 kB / 411.5 MB, free: 15.07 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002345/0.2517, allocations: 113.9 kB / 411.6 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004361/0.256, allocations: 1.78 MB / 413.4 MB, free: 13.17 MB / 350.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01171/0.2678, allocations: 6.801 MB / 420.2 MB, free: 6.031 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00175/0.2695, allocations: 1.241 MB / 421.4 MB, free: 4.785 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005546/0.2751, allocations: 4.314 MB / 425.7 MB, free: 56 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.1809/0.456, allocations: 53.38 kB / 425.8 MB, free: 67.05 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001224/0.4572, allocations: 203 kB / 426 MB, free: 67.05 MB / 350.1 MB Notification: Performance of pre-optimization done (n=97): time 3.326e-06/0.4572, allocations: 1.094 kB / 426 MB, free: 67.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=112): time 0.01848/0.4757, allocations: 5.722 MB / 431.7 MB, free: 66.51 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.083e-05/0.4758, allocations: 143 kB / 431.8 MB, free: 66.35 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001973/0.4778, allocations: 1.245 MB / 433.1 MB, free: 66.19 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001763/0.478, allocations: 48.3 kB / 433.1 MB, free: 66.16 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000426/0.4784, allocations: 0.6117 MB / 433.7 MB, free: 65.91 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003474/0.4788, allocations: 389.9 kB / 434.1 MB, free: 65.67 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.474e-05/0.4789, allocations: 32.03 kB / 434.2 MB, free: 65.67 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.951e-05/0.479, allocations: 365 kB / 434.5 MB, free: 65.36 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001196/0.4802, allocations: 0.6889 MB / 435.2 MB, free: 65.36 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001284/0.4815, allocations: 1.044 MB / 436.3 MB, free: 64.97 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001234/0.4827, allocations: 0.811 MB / 437.1 MB, free: 64.96 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.835e-06/0.4827, allocations: 2.75 kB / 437.1 MB, free: 64.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.003849/0.4866, allocations: 2.243 MB / 439.3 MB, free: 64.43 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006733/0.4873, allocations: 3.768 MB / 443.1 MB, free: 60.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.005e-05/0.4873, allocations: 13.44 kB / 443.1 MB, free: 60.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006811/0.4941, allocations: 1.272 MB / 444.4 MB, free: 60.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00145/0.4956, allocations: 299.7 kB / 444.7 MB, free: 60.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002306/0.4979, allocations: 1.607 MB / 446.3 MB, free: 58.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001754/0.4997, allocations: 87.27 kB / 446.3 MB, free: 58.94 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002744/0.5, allocations: 67.44 kB / 446.4 MB, free: 58.92 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.41e-05/0.5, allocations: 7.906 kB / 446.4 MB, free: 58.91 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003525/0.5036, allocations: 2.025 MB / 448.4 MB, free: 57.87 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.161e-05/0.5036, allocations: 7.625 kB / 448.5 MB, free: 57.87 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006162/0.5098, allocations: 1.113 MB / 449.6 MB, free: 57.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001462/0.5113, allocations: 306.3 kB / 449.9 MB, free: 57.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002207/0.5135, allocations: 1.458 MB / 451.3 MB, free: 56.26 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001612/0.5151, allocations: 77.58 kB / 451.4 MB, free: 56.22 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002592/0.5154, allocations: 69.41 kB / 451.5 MB, free: 56.2 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (156): * Single equations (assignments): 155 * 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 {8 18} Notification: Performance of prepare postOptimizeDAE: time 0.0009132/0.5163, allocations: 465 kB / 451.9 MB, free: 55.84 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004166/0.5168, allocations: 149.1 kB / 452.1 MB, free: 55.76 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003592/0.5204, allocations: 2.085 MB / 454.1 MB, free: 53.92 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.042e-05/0.5204, allocations: 16 kB / 454.2 MB, free: 53.9 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/0.5204, allocations: 4 kB / 454.2 MB, free: 53.9 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.211e-05/0.5204, allocations: 7.969 kB / 454.2 MB, free: 53.89 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004833/0.5253, allocations: 3.588 MB / 457.8 MB, free: 50.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.62e-06/0.5253, allocations: 0 / 457.8 MB, free: 50.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000842/0.5261, allocations: 196.3 kB / 458 MB, free: 50.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003347/0.5295, allocations: 0.9922 MB / 458.9 MB, free: 49.11 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.703e-05/0.5296, allocations: 35.97 kB / 459 MB, free: 49.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001677/0.5313, allocations: 1.607 MB / 460.6 MB, free: 47.44 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.5313, allocations: 0.6875 kB / 460.6 MB, free: 47.44 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003514/0.5348, allocations: 2.906 MB / 463.5 MB, free: 44.52 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007597/0.5356, allocations: 415.1 kB / 463.9 MB, free: 44.09 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002072/0.5358, allocations: 28 kB / 463.9 MB, free: 44.06 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009397/0.5368, allocations: 83.78 kB / 464 MB, free: 43.98 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001806/0.5369, allocations: 101.7 kB / 464.1 MB, free: 43.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.444e-05/0.5371, allocations: 47.97 kB / 464.2 MB, free: 43.84 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0008468/0.5379, allocations: 0.8363 MB / 465 MB, free: 43 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.5379, allocations: 3.938 kB / 465 MB, free: 42.99 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002359/0.5403, allocations: 1.156 MB / 466.2 MB, free: 41.94 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T,tank3.level,tank3.medium.T) * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 95 * 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 {9 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.00139/0.5417, allocations: 0.8293 MB / 467 MB, free: 41.27 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.004727/0.5464, allocations: 2.771 MB / 469.8 MB, free: 38.51 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.302e-06/0.5464, allocations: 4 kB / 469.8 MB, free: 38.5 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001454/0.5479, allocations: 0.8717 MB / 470.6 MB, free: 37.63 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002586/0.5505, allocations: 0.5974 MB / 471.2 MB, free: 37.05 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004333/0.5548, allocations: 3.563 MB / 474.8 MB, free: 33.47 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000507/0.5554, allocations: 1.319 MB / 476.1 MB, free: 32.12 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001676/0.557, allocations: 0.59 MB / 476.7 MB, free: 31.53 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002805/0.5573, allocations: 127.4 kB / 476.8 MB, free: 31.4 MB / 350.1 MB Notification: Performance of SimCode: time 7.22e-07/0.5573, allocations: 5.969 kB / 476.8 MB, free: 31.4 MB / 350.1 MB Notification: Performance of Templates: time 0.04843/0.6058, allocations: 40.37 MB / 0.5051 GB, free: 7.301 MB / 366.1 MB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/Tanks/ThreeTanks/ThreeTanks.csv","../files/Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches