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.001356/0.001356, allocations: 200.9 kB / 17.38 MB, free: 4.426 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.319/1.319, allocations: 226.6 MB / 244.7 MB, free: 8.184 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000778/0.000778, allocations: 103 kB / 296.8 MB, free: 6.879 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002062/0.0002063, allocations: 8 kB / 356.7 MB, free: 10.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1925/0.1927, allocations: 51.3 MB / 408 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.01981/0.2125, allocations: 28.96 MB / 437 MB, free: 14.67 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01276/0.2253, allocations: 9.851 MB / 446.9 MB, free: 4.809 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001038/0.2264, allocations: 43.62 kB / 446.9 MB, free: 4.766 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001012/0.2274, allocations: 393.5 kB / 447.3 MB, free: 4.379 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.003913/0.2314, allocations: 1.8 MB / 449.1 MB, free: 2.57 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005081/0.2365, allocations: 2.133 MB / 451.2 MB, free: 456 kB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.004348/0.2408, allocations: 4.324 MB / 455.5 MB, free: 12.11 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001506/0.2423, allocations: 1.011 MB / 456.6 MB, free: 11.08 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002222/0.2446, allocations: 1.312 MB / 457.9 MB, free: 9.766 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00177/0.2464, allocations: 1.351 MB / 459.2 MB, free: 8.41 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002214/0.2466, allocations: 80 kB / 459.3 MB, free: 8.332 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003806/0.2504, allocations: 1.922 MB / 461.2 MB, free: 6.406 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006005/0.251, allocations: 494.5 kB / 461.7 MB, free: 5.922 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009414/0.252, allocations: 0.7251 MB / 462.4 MB, free: 5.188 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003109/0.2551, allocations: 2.371 MB / 464.8 MB, free: 2.812 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.2551, allocations: 3.938 kB / 464.8 MB, free: 2.809 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2551, allocations: 0 / 464.8 MB, free: 2.809 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.21e-05/0.2552, allocations: 0 / 464.8 MB, free: 2.809 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.004216/0.2594, allocations: 1.776 MB / 466.6 MB, free: 0.9805 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.169e-05/0.2594, allocations: 16.02 kB / 466.6 MB, free: 0.9648 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004603/0.2599, allocations: 162.2 kB / 466.8 MB, free: 0.8047 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001367/0.2613, allocations: 0.8979 MB / 467.6 MB, free: 15.86 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001705/0.2615, allocations: 234.4 kB / 467.9 MB, free: 15.6 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001797/0.2616, allocations: 99.97 kB / 468 MB, free: 15.5 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002698/0.2643, allocations: 1.783 MB / 469.8 MB, free: 13.66 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.114e-05/0.2644, allocations: 7.875 kB / 469.8 MB, free: 13.66 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001413/0.2645, allocations: 43.97 kB / 469.8 MB, free: 13.61 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001296/0.2647, allocations: 106 kB / 469.9 MB, free: 13.51 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00271/0.2674, allocations: 1.768 MB / 471.7 MB, free: 11.73 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.01096/0.2784, allocations: 6.956 MB / 478.6 MB, free: 4.477 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00243/0.2808, allocations: 1.497 MB / 480.1 MB, free: 2.969 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001251/0.2821, allocations: 0.8816 MB / 481 MB, free: 2.09 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007743/0.2829, allocations: 0.6607 MB / 481.7 MB, free: 1.301 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.242e-05/0.2829, allocations: 43.56 kB / 481.7 MB, free: 1.25 MB / 346.7 MB Notification: Performance of pre-optimization done (n=116): time 2.545e-06/0.2829, allocations: 0 / 481.7 MB, free: 1.25 MB / 346.7 MB Notification: Performance of matching and sorting (n=128): time 0.01552/0.2984, allocations: 6.659 MB / 488.4 MB, free: 10.47 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.85e-05/0.2986, allocations: 167.5 kB / 488.5 MB, free: 10.27 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001315/0.2999, allocations: 1.095 MB / 489.6 MB, free: 9.156 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001193/0.3, allocations: 57.69 kB / 489.7 MB, free: 9.094 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003551/0.3004, allocations: 0.4888 MB / 490.2 MB, free: 8.598 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003472/0.3007, allocations: 441.7 kB / 490.6 MB, free: 8.16 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001049/0.3008, allocations: 27.94 kB / 490.6 MB, free: 8.133 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001433/0.301, allocations: 361.9 kB / 491 MB, free: 7.773 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001287/0.3023, allocations: 0.8276 MB / 491.8 MB, free: 6.945 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001417/0.3037, allocations: 1.065 MB / 492.9 MB, free: 5.805 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002602/0.3063, allocations: 1.784 MB / 494.7 MB, free: 3.957 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.3063, allocations: 0 / 494.7 MB, free: 3.957 MB / 362.7 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004391/0.3107, allocations: 2.588 MB / 497.3 MB, free: 1.344 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000154/0.3109, allocations: 239.8 kB / 497.5 MB, free: 1.043 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.136e-05/0.3109, allocations: 4 kB / 497.5 MB, free: 1.039 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003417/0.3143, allocations: 1.28 MB / 498.8 MB, free: 15.74 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009654/0.3153, allocations: 215.6 kB / 499 MB, free: 15.53 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006304/0.3216, allocations: 6.358 MB / 0.4935 GB, free: 8.832 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001448/0.3231, allocations: 103.8 kB / 0.4936 GB, free: 8.73 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001757/0.3233, allocations: 59.97 kB / 0.4937 GB, free: 8.672 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.988e-06/0.3233, allocations: 4 kB / 0.4937 GB, free: 8.668 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004244/0.3276, allocations: 2.342 MB / 0.4959 GB, free: 6.309 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.998e-05/0.3276, allocations: 7.984 kB / 0.496 GB, free: 6.301 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00247/0.3301, allocations: 1.016 MB / 0.4969 GB, free: 5.27 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009957/0.3311, allocations: 235.6 kB / 0.4972 GB, free: 5.039 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1971/0.5282, allocations: 6.089 MB / 0.5031 GB, free: 94.33 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001665/0.53, allocations: 91.55 kB / 0.5032 GB, free: 94.33 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002179/0.5302, allocations: 56.58 kB / 0.5033 GB, free: 94.33 MB / 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.0008663/0.5311, allocations: 459 kB / 0.5037 GB, free: 94.14 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003176/0.5314, allocations: 140.3 kB / 0.5038 GB, free: 94.14 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00514/0.5365, allocations: 2.798 MB / 0.5066 GB, free: 93.57 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.118e-05/0.5366, allocations: 17.69 kB / 0.5066 GB, free: 93.57 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.289e-05/0.5366, allocations: 2.281 kB / 0.5066 GB, free: 93.57 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.035e-05/0.5367, allocations: 7.312 kB / 0.5066 GB, free: 93.57 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007078/0.5437, allocations: 4.526 MB / 0.511 GB, free: 91.75 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.306e-06/0.5438, allocations: 0 / 0.511 GB, free: 91.75 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007695/0.5446, allocations: 158 kB / 0.5112 GB, free: 91.74 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002797/0.5474, allocations: 1.293 MB / 0.5124 GB, free: 91.46 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001356/0.5475, allocations: 39.3 kB / 0.5125 GB, free: 91.44 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005154/0.5527, allocations: 6.388 MB / 0.5187 GB, free: 85.96 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.5527, allocations: 1.422 kB / 0.5187 GB, free: 85.96 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005501/0.5582, allocations: 3.937 MB / 0.5225 GB, free: 83.25 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007784/0.559, allocations: 444.2 kB / 0.523 GB, free: 82.8 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002018/0.5593, allocations: 28 kB / 0.523 GB, free: 82.78 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009979/0.5603, allocations: 96.81 kB / 0.5231 GB, free: 82.69 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002945/0.5606, allocations: 146 kB / 0.5232 GB, free: 82.55 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001178/0.5607, allocations: 47.97 kB / 0.5233 GB, free: 82.5 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0008017/0.5615, allocations: 0.7427 MB / 0.524 GB, free: 81.75 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.71e-07/0.5615, allocations: 0 / 0.524 GB, free: 81.75 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002524/0.564, allocations: 1.062 MB / 0.525 GB, free: 80.8 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.001556/0.5656, allocations: 0.734 MB / 0.5258 GB, free: 80.16 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.006109/0.5717, allocations: 3.772 MB / 0.5294 GB, free: 76.36 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.901e-06/0.5718, allocations: 0 / 0.5294 GB, free: 76.36 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002446/0.5742, allocations: 1.409 MB / 0.5308 GB, free: 74.93 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002664/0.5769, allocations: 0.5952 MB / 0.5314 GB, free: 74.37 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004992/0.5819, allocations: 3.627 MB / 0.5349 GB, free: 70.79 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005336/0.5825, allocations: 1.256 MB / 0.5362 GB, free: 69.51 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004335/0.5829, allocations: 139.4 kB / 0.5363 GB, free: 69.37 MB / 378.7 MB Notification: Performance of SimCode: time 5.11e-07/0.5829, allocations: 0 / 0.5363 GB, free: 69.37 MB / 378.7 MB Notification: Performance of Templates: time 0.0461/0.629, allocations: 53.35 MB / 0.5884 GB, free: 16.05 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