Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.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.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_3.2.3_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_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009321/0.0009321, allocations: 175.1 kB / 16.72 MB, free: 5.055 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.322/1.322, allocations: 205.4 MB / 222.9 MB, free: 9.023 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.0007458/0.0007457, allocations: 93.3 kB / 271.2 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003632/0.0003634, allocations: 12 kB / 327.5 MB, free: 15.89 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2143/0.2147, allocations: 47.57 MB / 375.1 MB, free: 45.45 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.02227/0.237, allocations: 28.91 MB / 404 MB, free: 19.73 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01283/0.2499, allocations: 9.819 MB / 413.8 MB, free: 9.895 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00179/0.2518, allocations: 43.62 kB / 413.9 MB, free: 9.852 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001299/0.2531, allocations: 397.5 kB / 414.2 MB, free: 9.461 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:788:36-789:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:786:36-787:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.004762/0.2579, allocations: 1.788 MB / 416 MB, free: 7.664 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005738/0.2636, allocations: 2.145 MB / 418.2 MB, free: 5.527 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004331/0.268, allocations: 4.314 MB / 422.5 MB, free: 1.203 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001511/0.2695, allocations: 1.016 MB / 423.5 MB, free: 180 kB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00262/0.2721, allocations: 1.304 MB / 424.8 MB, free: 14.86 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002069/0.2742, allocations: 1.336 MB / 426.2 MB, free: 13.52 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002341/0.2745, allocations: 80 kB / 426.2 MB, free: 13.45 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003912/0.2784, allocations: 1.903 MB / 428.1 MB, free: 11.54 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006075/0.279, allocations: 0.4946 MB / 428.6 MB, free: 11.04 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001022/0.2801, allocations: 0.7173 MB / 429.3 MB, free: 10.32 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003898/0.284, allocations: 2.366 MB / 431.7 MB, free: 7.949 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.122e-06/0.284, allocations: 4 kB / 431.7 MB, free: 7.945 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.415e-06/0.284, allocations: 0 / 431.7 MB, free: 7.945 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.633e-05/0.284, allocations: 0 / 431.7 MB, free: 7.945 MB / 314.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.004759/0.2888, allocations: 1.78 MB / 433.5 MB, free: 6.113 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.512e-05/0.2889, allocations: 12.03 kB / 433.5 MB, free: 6.102 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005965/0.2895, allocations: 162.2 kB / 433.7 MB, free: 5.941 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001692/0.2912, allocations: 0.8979 MB / 434.6 MB, free: 5 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002107/0.2914, allocations: 234.5 kB / 434.8 MB, free: 4.738 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002117/0.2916, allocations: 99.97 kB / 434.9 MB, free: 4.641 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002951/0.2946, allocations: 1.786 MB / 436.7 MB, free: 2.797 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.756e-05/0.2946, allocations: 4 kB / 436.7 MB, free: 2.793 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001477/0.2948, allocations: 43.98 kB / 436.7 MB, free: 2.75 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001379/0.2949, allocations: 105.9 kB / 436.8 MB, free: 2.645 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002912/0.2979, allocations: 1.768 MB / 438.6 MB, free: 0.8672 MB / 314.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.01135/0.3092, allocations: 6.952 MB / 445.5 MB, free: 9.609 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002559/0.3118, allocations: 1.501 MB / 447 MB, free: 8.102 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001337/0.3132, allocations: 0.8788 MB / 447.9 MB, free: 7.223 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008839/0.3141, allocations: 0.6568 MB / 448.6 MB, free: 6.438 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.054e-05/0.3141, allocations: 47.56 kB / 448.6 MB, free: 6.383 MB / 330.7 MB Notification: Performance of pre-optimization done (n=116): time 2.816e-06/0.3141, allocations: 0 / 448.6 MB, free: 6.383 MB / 330.7 MB Notification: Performance of matching and sorting (n=128): time 0.01586/0.33, allocations: 6.656 MB / 455.3 MB, free: 15.6 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.718e-05/0.3301, allocations: 175.4 kB / 455.5 MB, free: 15.39 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001333/0.3315, allocations: 1.088 MB / 456.5 MB, free: 14.29 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001391/0.3316, allocations: 57.64 kB / 456.6 MB, free: 14.23 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003914/0.332, allocations: 0.5003 MB / 457.1 MB, free: 13.72 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003704/0.3324, allocations: 433.8 kB / 457.5 MB, free: 13.29 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001045/0.3325, allocations: 28 kB / 457.6 MB, free: 13.27 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001583/0.3327, allocations: 357.9 kB / 457.9 MB, free: 12.91 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001364/0.334, allocations: 0.8276 MB / 458.7 MB, free: 12.08 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001443/0.3355, allocations: 1.061 MB / 459.8 MB, free: 10.95 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002794/0.3383, allocations: 1.792 MB / 461.6 MB, free: 9.086 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.899e-06/0.3383, allocations: 0 / 461.6 MB, free: 9.086 MB / 346.7 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004572/0.3429, allocations: 2.58 MB / 464.2 MB, free: 6.48 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001595/0.3431, allocations: 237.8 kB / 464.4 MB, free: 6.188 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.252e-05/0.3431, allocations: 7.938 kB / 464.4 MB, free: 6.18 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003467/0.3466, allocations: 1.283 MB / 465.7 MB, free: 4.883 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001037/0.3476, allocations: 215.7 kB / 465.9 MB, free: 4.672 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006678/0.3543, allocations: 6.365 MB / 472.3 MB, free: 13.95 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001452/0.3558, allocations: 91.91 kB / 472.4 MB, free: 13.86 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002633/0.3561, allocations: 59.97 kB / 472.4 MB, free: 13.8 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.498e-06/0.3561, allocations: 4 kB / 472.4 MB, free: 13.8 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00435/0.3605, allocations: 2.338 MB / 474.8 MB, free: 11.45 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.487e-05/0.3605, allocations: 4 kB / 474.8 MB, free: 11.44 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002487/0.363, allocations: 1.027 MB / 475.8 MB, free: 10.4 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001152/0.3642, allocations: 227.6 kB / 476 MB, free: 10.18 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006386/0.3706, allocations: 6.103 MB / 482.1 MB, free: 3.727 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001474/0.3721, allocations: 84 kB / 482.2 MB, free: 3.645 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002937/0.3724, allocations: 59.97 kB / 482.2 MB, free: 3.586 MB / 362.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.000988/0.3734, allocations: 466.4 kB / 482.7 MB, free: 3.121 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003854/0.3738, allocations: 142.2 kB / 482.8 MB, free: 2.98 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005396/0.3792, allocations: 2.804 MB / 485.6 MB, free: 156 kB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.267e-05/0.3793, allocations: 19.94 kB / 485.7 MB, free: 136 kB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.959e-06/0.3793, allocations: 0 / 485.7 MB, free: 136 kB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.737e-05/0.3793, allocations: 11.91 kB / 485.7 MB, free: 124 kB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007666/0.387, allocations: 4.522 MB / 490.2 MB, free: 11.53 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.284e-06/0.387, allocations: 0 / 490.2 MB, free: 11.53 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000788/0.3878, allocations: 151.8 kB / 490.3 MB, free: 11.38 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003234/0.3911, allocations: 1.297 MB / 491.6 MB, free: 10.07 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001634/0.3913, allocations: 39.92 kB / 491.7 MB, free: 10.03 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006842/0.3981, allocations: 6.391 MB / 498.1 MB, free: 3.297 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.3982, allocations: 8.047 kB / 498.1 MB, free: 3.289 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1564/0.5546, allocations: 3.931 MB / 0.4902 GB, free: 111.7 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001085/0.5557, allocations: 441.4 kB / 0.4907 GB, free: 111.6 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003773/0.5561, allocations: 21.94 kB / 0.4907 GB, free: 111.6 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00123/0.5573, allocations: 93.12 kB / 0.4908 GB, free: 111.6 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003622/0.5577, allocations: 152.8 kB / 0.4909 GB, free: 111.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001633/0.5579, allocations: 47.09 kB / 0.491 GB, free: 111.6 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001065/0.559, allocations: 0.7377 MB / 0.4917 GB, free: 111.5 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.92e-07/0.559, allocations: 0 / 0.4917 GB, free: 111.5 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003238/0.5622, allocations: 1.058 MB / 0.4927 GB, free: 111.5 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.001993/0.5642, allocations: 0.7154 MB / 0.4934 GB, free: 111.4 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.007696/0.5719, allocations: 3.772 MB / 0.4971 GB, free: 110.1 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 8.997e-06/0.572, allocations: 1.188 kB / 0.4971 GB, free: 110.1 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003122/0.5751, allocations: 1.412 MB / 0.4985 GB, free: 109.5 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003288/0.5784, allocations: 0.6014 MB / 0.4991 GB, free: 109.3 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006605/0.5851, allocations: 3.626 MB / 0.5026 GB, free: 107.5 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008018/0.5859, allocations: 1.26 MB / 0.5038 GB, free: 106.6 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005566/0.5865, allocations: 137.2 kB / 0.504 GB, free: 106.6 MB / 378.7 MB Notification: Performance of SimCode: time 7.41e-07/0.5865, allocations: 0 / 0.504 GB, free: 106.6 MB / 378.7 MB Notification: Performance of Templates: time 0.04927/0.6358, allocations: 53.17 MB / 0.5559 GB, free: 54.7 MB / 378.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.sim & ./Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Fluid/Examples/Tanks/TanksWithOverflow/TanksWithOverflow.csv","../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches