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.002652/0.002656, allocations: 188.5 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.423/3.423, allocations: 205.4 MB / 222.5 MB, free: 13.86 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.001661/0.001661, allocations: 102.8 kB / 270.9 MB, free: 13.39 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006308/0.000631, allocations: 8 kB / 327 MB, free: 15.11 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1626/0.1633, allocations: 47.58 MB / 374.5 MB, free: 15.45 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.5207/0.6841, allocations: 21.19 MB / 395.7 MB, free: 9.234 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.03683/0.721, allocations: 9.941 MB / 405.7 MB, free: 5.875 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003474/0.7246, allocations: 43.56 kB / 405.7 MB, free: 5.852 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003719/0.7284, allocations: 408.2 kB / 406.1 MB, free: 5.68 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01201/0.7405, allocations: 1.499 MB / 407.6 MB, free: 4.859 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01734/0.7579, allocations: 2.126 MB / 409.7 MB, free: 3.883 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.008313/0.7663, allocations: 2.07 MB / 411.8 MB, free: 2.859 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00397/0.7703, allocations: 0.9711 MB / 412.8 MB, free: 2.258 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006428/0.7768, allocations: 1.135 MB / 413.9 MB, free: 1.621 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003705/0.7806, allocations: 0.9549 MB / 414.9 MB, free: 1.066 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001305/0.782, allocations: 84.69 kB / 414.9 MB, free: 1.062 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01057/0.7927, allocations: 1.78 MB / 416.7 MB, free: 204 kB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002091/0.7948, allocations: 462.6 kB / 417.2 MB, free: 15.91 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00181/0.7967, allocations: 284.8 kB / 417.5 MB, free: 15.76 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01064/0.8075, allocations: 2.285 MB / 419.7 MB, free: 14.38 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.863e-06/0.8075, allocations: 0 / 419.7 MB, free: 14.38 MB / 298.7 MB Notification: Performance of FrontEnd: time 5.391e-06/0.8076, allocations: 0 / 419.7 MB, free: 14.38 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001099/0.8077, allocations: 0 / 419.7 MB, free: 14.38 MB / 298.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.01419/0.8219, allocations: 1.769 MB / 421.5 MB, free: 13.11 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.03e-05/0.822, allocations: 9.812 kB / 421.5 MB, free: 13.11 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001936/0.824, allocations: 171.9 kB / 421.7 MB, free: 13.02 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004786/0.8288, allocations: 0.862 MB / 422.6 MB, free: 12.36 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000561/0.8295, allocations: 239.1 kB / 422.8 MB, free: 12.16 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009704/0.8305, allocations: 101.1 kB / 422.9 MB, free: 12.12 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01023/0.8408, allocations: 1.78 MB / 424.7 MB, free: 10.91 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.66e-05/0.8409, allocations: 0 / 424.7 MB, free: 10.91 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006559/0.8416, allocations: 43.97 kB / 424.7 MB, free: 10.87 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003998/0.8421, allocations: 109.9 kB / 424.8 MB, free: 10.76 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01035/0.8524, allocations: 1.765 MB / 426.6 MB, free: 8.988 MB / 298.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.03765/0.8902, allocations: 6.963 MB / 433.5 MB, free: 1.727 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008109/0.8984, allocations: 1.497 MB / 435 MB, free: 220 kB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002506/0.9009, allocations: 0.6568 MB / 435.7 MB, free: 15.43 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002276/0.9013, allocations: 51.56 kB / 435.7 MB, free: 15.37 MB / 314.7 MB Notification: Performance of pre-optimization done (n=116): time 2.174e-05/0.9014, allocations: 0 / 435.7 MB, free: 15.37 MB / 314.7 MB Notification: Performance of matching and sorting (n=128): time 0.05079/0.9522, allocations: 6.656 MB / 442.4 MB, free: 8.598 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002271/0.9525, allocations: 175.5 kB / 442.6 MB, free: 8.391 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004084/0.9566, allocations: 1.084 MB / 443.7 MB, free: 7.289 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006886/0.9574, allocations: 53.7 kB / 443.7 MB, free: 7.23 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001181/0.9586, allocations: 491 kB / 444.2 MB, free: 6.746 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001611/0.9603, allocations: 441.7 kB / 444.6 MB, free: 6.309 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005685/0.961, allocations: 24 kB / 444.6 MB, free: 6.285 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0004202/0.9614, allocations: 370.7 kB / 445 MB, free: 5.914 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004157/0.9656, allocations: 0.8276 MB / 445.8 MB, free: 5.086 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006661/0.9724, allocations: 1.061 MB / 446.9 MB, free: 3.949 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005645/0.9781, allocations: 0.8808 MB / 447.8 MB, free: 3.066 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.66e-05/0.9782, allocations: 4 kB / 447.8 MB, free: 3.062 MB / 314.7 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.01507/0.9933, allocations: 2.515 MB / 450.3 MB, free: 0.5234 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001474/0.9948, allocations: 1.842 MB / 452.1 MB, free: 14.54 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.72e-05/0.9949, allocations: 4 kB / 452.1 MB, free: 14.54 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01256/1.008, allocations: 1.291 MB / 453.4 MB, free: 13.23 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005296/1.013, allocations: 215.6 kB / 453.6 MB, free: 13.02 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01945/1.032, allocations: 6.4 MB / 460 MB, free: 6.277 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004/1.037, allocations: 91.91 kB / 460.1 MB, free: 6.188 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007248/1.037, allocations: 59.97 kB / 460.2 MB, free: 6.129 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.445e-05/1.037, allocations: 11.94 kB / 460.2 MB, free: 6.117 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01252/1.05, allocations: 2.338 MB / 462.5 MB, free: 3.762 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.381e-05/1.05, allocations: 4 kB / 462.5 MB, free: 3.758 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006564/1.057, allocations: 0.9996 MB / 463.5 MB, free: 2.742 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002961/1.06, allocations: 235.6 kB / 463.8 MB, free: 2.512 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01787/1.078, allocations: 6.135 MB / 469.9 MB, free: 12.03 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003199/1.081, allocations: 91.91 kB / 470 MB, free: 11.94 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007802/1.082, allocations: 51.98 kB / 470.1 MB, free: 11.89 MB / 346.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.002763/1.084, allocations: 460.9 kB / 470.5 MB, free: 11.43 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009939/1.086, allocations: 134.4 kB / 470.6 MB, free: 11.3 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01531/1.101, allocations: 2.811 MB / 473.4 MB, free: 8.461 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.782e-05/1.101, allocations: 19.98 kB / 473.5 MB, free: 8.441 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.128e-05/1.101, allocations: 4 kB / 473.5 MB, free: 8.438 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.549e-05/1.101, allocations: 3.984 kB / 473.5 MB, free: 8.434 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02307/1.124, allocations: 4.541 MB / 478 MB, free: 3.82 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.387e-05/1.124, allocations: 4 kB / 478 MB, free: 3.816 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002037/1.126, allocations: 155.8 kB / 478.2 MB, free: 3.664 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008324/1.135, allocations: 1.298 MB / 479.5 MB, free: 2.352 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006229/1.135, allocations: 35.97 kB / 479.5 MB, free: 2.316 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01614/1.152, allocations: 6.419 MB / 485.9 MB, free: 11.55 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/1.152, allocations: 0 / 485.9 MB, free: 11.55 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01828/1.17, allocations: 3.952 MB / 489.9 MB, free: 7.57 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002509/1.173, allocations: 439.1 kB / 490.3 MB, free: 7.121 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001059/1.174, allocations: 27.95 kB / 490.3 MB, free: 7.094 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003554/1.177, allocations: 95.83 kB / 490.4 MB, free: 7 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001105/1.178, allocations: 145.1 kB / 490.6 MB, free: 6.855 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006353/1.179, allocations: 59.89 kB / 490.6 MB, free: 6.797 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.002792/1.182, allocations: 0.7337 MB / 491.4 MB, free: 6.055 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.753e-06/1.182, allocations: 4 kB / 491.4 MB, free: 6.051 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.01132/1.193, allocations: 1.05 MB / 492.4 MB, free: 5 MB / 362.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.005344/1.199, allocations: 0.7209 MB / 493.1 MB, free: 4.27 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.02473/1.224, allocations: 3.794 MB / 496.9 MB, free: 436 kB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.831e-05/1.224, allocations: 4 kB / 496.9 MB, free: 432 kB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009266/1.233, allocations: 1.415 MB / 498.3 MB, free: 14.98 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007836/1.241, allocations: 0.5738 MB / 498.9 MB, free: 14.4 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01823/1.259, allocations: 3.619 MB / 0.4908 GB, free: 10.76 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002582/1.262, allocations: 1.292 MB / 0.492 GB, free: 9.438 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001722/1.264, allocations: 135.3 kB / 0.4921 GB, free: 9.305 MB / 378.7 MB Notification: Performance of SimCode: time 2.615e-06/1.264, allocations: 0 / 0.4921 GB, free: 9.305 MB / 378.7 MB Notification: Performance of Templates: time 0.6256/1.889, allocations: 51.62 MB / 0.5426 GB, free: 133.3 MB / 410.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/jenkins1/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