Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|lowerTank.level|lowerTank.medium.h|upperTank.level|upperTank.medium.h|hysteresis.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") translateModel(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|lowerTank.level|lowerTank.medium.h|upperTank.level|upperTank.medium.h|hysteresis.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009397/0.0009398, allocations: 195.9 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.212/1.212, allocations: 226.6 MB / 244.3 MB, free: 8.316 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0006988/0.0006987, allocations: 107 kB / 296.4 MB, free: 7.023 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002015/0.0002016, allocations: 4 kB / 356.2 MB, free: 11.25 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1795/0.1797, allocations: 51.3 MB / 407.5 MB, free: 27.86 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.01739/0.1971, allocations: 28.88 MB / 436.4 MB, free: 14.91 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01203/0.2092, allocations: 9.834 MB / 446.2 MB, free: 5.059 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009097/0.2101, allocations: 43.62 kB / 446.3 MB, free: 5.016 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009614/0.2111, allocations: 397.5 kB / 446.6 MB, free: 4.625 MB / 314.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:784:36-785:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:782:36-783:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.003653/0.2148, allocations: 1.714 MB / 448.4 MB, free: 2.902 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004675/0.2195, allocations: 2.119 MB / 450.5 MB, free: 0.793 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.003791/0.2233, allocations: 4.321 MB / 454.8 MB, free: 12.46 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001078/0.2244, allocations: 0.9569 MB / 455.8 MB, free: 11.49 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001695/0.2261, allocations: 1.331 MB / 457.1 MB, free: 10.15 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001486/0.2276, allocations: 1.359 MB / 458.4 MB, free: 8.789 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001968/0.2278, allocations: 80 kB / 458.5 MB, free: 8.711 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002976/0.2307, allocations: 1.743 MB / 460.3 MB, free: 6.965 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004431/0.2312, allocations: 498.5 kB / 460.7 MB, free: 6.477 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000294/0.2315, allocations: 285 kB / 461 MB, free: 6.191 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002418/0.2339, allocations: 2.3 MB / 463.3 MB, free: 3.887 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.2339, allocations: 4 kB / 463.3 MB, free: 3.883 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.234, allocations: 0 / 463.3 MB, free: 3.883 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.51e-05/0.234, allocations: 0 / 463.3 MB, free: 3.883 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: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.003951/0.2379, allocations: 1.8 MB / 465.1 MB, free: 2.031 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.269e-05/0.238, allocations: 12.03 kB / 465.1 MB, free: 2.02 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004058/0.2384, allocations: 166.2 kB / 465.3 MB, free: 1.855 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00123/0.2396, allocations: 0.8634 MB / 466.2 MB, free: 0.9492 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000168/0.2398, allocations: 238.5 kB / 466.4 MB, free: 0.6836 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001677/0.24, allocations: 95.98 kB / 466.5 MB, free: 0.5898 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002567/0.2425, allocations: 1.787 MB / 468.3 MB, free: 14.75 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.446e-05/0.2426, allocations: 3.938 kB / 468.3 MB, free: 14.74 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001354/0.2427, allocations: 43.98 kB / 468.3 MB, free: 14.7 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001215/0.2429, allocations: 97.98 kB / 468.4 MB, free: 14.6 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002611/0.2455, allocations: 1.776 MB / 470.2 MB, free: 12.82 MB / 346.7 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.01042/0.2559, allocations: 6.948 MB / 477.1 MB, free: 5.57 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002397/0.2583, allocations: 1.493 MB / 478.6 MB, free: 4.062 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001274/0.2596, allocations: 0.8927 MB / 479.5 MB, free: 3.172 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008053/0.2604, allocations: 0.6607 MB / 480.2 MB, free: 2.383 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.404e-05/0.2605, allocations: 47.56 kB / 480.2 MB, free: 2.328 MB / 346.7 MB Notification: Performance of pre-optimization done (n=116): time 2.655e-06/0.2605, allocations: 0 / 480.2 MB, free: 2.328 MB / 346.7 MB Notification: Performance of matching and sorting (n=128): time 0.01517/0.2756, allocations: 6.71 MB / 487 MB, free: 11.5 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.726e-05/0.2758, allocations: 167.5 kB / 487.1 MB, free: 11.3 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001297/0.2771, allocations: 1.092 MB / 488.2 MB, free: 10.19 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001237/0.2772, allocations: 49.7 kB / 488.3 MB, free: 10.13 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003641/0.2776, allocations: 0.4965 MB / 488.8 MB, free: 9.629 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003561/0.2779, allocations: 429.8 kB / 489.2 MB, free: 9.203 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.133e-05/0.278, allocations: 28 kB / 489.2 MB, free: 9.176 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001424/0.2782, allocations: 361.9 kB / 489.6 MB, free: 8.816 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001266/0.2795, allocations: 0.8315 MB / 490.4 MB, free: 7.984 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001403/0.2809, allocations: 1.065 MB / 491.4 MB, free: 6.844 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001316/0.2822, allocations: 0.873 MB / 492.3 MB, free: 5.973 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.2822, allocations: 11.94 kB / 492.3 MB, free: 5.961 MB / 362.7 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004235/0.2865, allocations: 2.584 MB / 494.9 MB, free: 3.352 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00014/0.2866, allocations: 231.8 kB / 495.1 MB, free: 3.059 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.49e-05/0.2866, allocations: 11.95 kB / 495.2 MB, free: 3.047 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003337/0.29, allocations: 1.292 MB / 496.4 MB, free: 1.738 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008889/0.2909, allocations: 211.7 kB / 496.7 MB, free: 1.531 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006143/0.297, allocations: 6.365 MB / 0.4912 GB, free: 10.82 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001201/0.2983, allocations: 91.91 kB / 0.4913 GB, free: 10.73 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001266/0.2984, allocations: 59.97 kB / 0.4914 GB, free: 10.67 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.021e-06/0.2984, allocations: 0 / 0.4914 GB, free: 10.67 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003783/0.3022, allocations: 2.334 MB / 0.4937 GB, free: 8.32 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.243e-06/0.3022, allocations: 8.188 kB / 0.4937 GB, free: 8.312 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00227/0.3045, allocations: 1.031 MB / 0.4947 GB, free: 7.266 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008936/0.3054, allocations: 223.7 kB / 0.4949 GB, free: 7.047 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00548/0.3109, allocations: 6.095 MB / 0.5008 GB, free: 0.6055 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001125/0.312, allocations: 100.1 kB / 0.5009 GB, free: 0.5078 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001269/0.3122, allocations: 59.97 kB / 0.501 GB, free: 460 kB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 12 (upperTank.regularFlow[1],upperTank.regularFlow[2],upperTank.regularFlow[3],upperTank.inFlow[1],upperTank.inFlow[2],upperTank.inFlow[3],lowerTank.regularFlow[1],lowerTank.regularFlow[2],lowerTank.inFlow[1],lowerTank.inFlow[2],$PRE.hysteresis.y,hysteresis.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (126): * Single equations (assignments): 121 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 3 {2 3,4 11,4 11} Notification: Performance of prepare postOptimizeDAE: time 0.1527/0.4649, allocations: 455.9 kB / 0.5014 GB, free: 96.04 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005446/0.4654, allocations: 135.5 kB / 0.5016 GB, free: 96.04 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005173/0.4706, allocations: 2.796 MB / 0.5043 GB, free: 95.74 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.969e-05/0.4706, allocations: 15.12 kB / 0.5043 GB, free: 95.74 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.763e-06/0.4707, allocations: 1.375 kB / 0.5043 GB, free: 95.74 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.474e-05/0.4707, allocations: 14.09 kB / 0.5043 GB, free: 95.74 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00634/0.477, allocations: 4.516 MB / 0.5087 GB, free: 93.94 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.301e-06/0.477, allocations: 0 / 0.5087 GB, free: 93.94 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007514/0.4778, allocations: 162.1 kB / 0.5089 GB, free: 93.93 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002778/0.4806, allocations: 1.295 MB / 0.5101 GB, free: 93.66 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001017/0.4807, allocations: 30.88 kB / 0.5102 GB, free: 93.64 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00458/0.4853, allocations: 6.385 MB / 0.5164 GB, free: 88.21 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.4853, allocations: 1.531 kB / 0.5164 GB, free: 88.21 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004906/0.4902, allocations: 3.937 MB / 0.5203 GB, free: 85.6 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006068/0.4908, allocations: 446.4 kB / 0.5207 GB, free: 85.14 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001738/0.491, allocations: 28 kB / 0.5207 GB, free: 85.12 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009666/0.492, allocations: 91.17 kB / 0.5208 GB, free: 85.04 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002517/0.4923, allocations: 151.7 kB / 0.5209 GB, free: 84.89 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001056/0.4924, allocations: 51.97 kB / 0.521 GB, free: 84.84 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0007407/0.4931, allocations: 0.7454 MB / 0.5217 GB, free: 84.09 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4931, allocations: 0 / 0.5217 GB, free: 84.09 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002258/0.4954, allocations: 1.053 MB / 0.5227 GB, free: 83.14 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (upperTank.level,upperTank.medium.T,lowerTank.level,lowerTank.medium.T) * Number of discrete variables: 11 (upperTank.regularFlow[1],upperTank.regularFlow[2],upperTank.regularFlow[3],upperTank.inFlow[1],upperTank.inFlow[2],upperTank.inFlow[3],lowerTank.regularFlow[1],lowerTank.regularFlow[2],lowerTank.inFlow[1],lowerTank.inFlow[2],hysteresis.y) * Number of discrete states: 1 (hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (97): * Single equations (assignments): 88 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 3 {2 4,4 14,4 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.001311/0.4967, allocations: 0.7244 MB / 0.5234 GB, free: 82.53 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005743/0.5025, allocations: 3.784 MB / 0.5271 GB, free: 78.71 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.937e-06/0.5025, allocations: 0 / 0.5271 GB, free: 78.71 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002303/0.5048, allocations: 1.424 MB / 0.5285 GB, free: 77.27 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002371/0.5072, allocations: 0.5949 MB / 0.5291 GB, free: 76.7 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004737/0.5119, allocations: 3.61 MB / 0.5326 GB, free: 73.16 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005144/0.5125, allocations: 1.26 MB / 0.5339 GB, free: 71.87 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004059/0.5129, allocations: 147.2 kB / 0.534 GB, free: 71.72 MB / 378.7 MB Notification: Performance of SimCode: time 7.81e-07/0.5129, allocations: 0 / 0.534 GB, free: 71.72 MB / 378.7 MB Notification: Performance of Templates: time 0.0403/0.5532, allocations: 53.38 MB / 0.5861 GB, free: 18.38 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.makefile (rm -f Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe >> ../files/Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.sim & ./Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/Tanks/TanksWithOverflow/TanksWithOverflow.csv","../files/Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches