Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.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.TanksWithOverflow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|lowerTank.level|lowerTank.medium.h|upperTank.level|upperTank.medium.h|hysteresis.y",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001118/0.001118, allocations: 96.45 kB / 16.95 MB, free: 5.953 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.001343/0.001343, allocations: 178.4 kB / 17.84 MB, free: 5.617 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.501/1.501, allocations: 223.2 MB / 241.9 MB, free: 336 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002754/0.0002754, allocations: 8.625 kB / 301.4 MB, free: 6.473 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1266/0.1269, allocations: 50.43 MB / 351.9 MB, free: 4.035 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.2861/0.413, allocations: 28.8 MB / 380.7 MB, free: 9.742 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01494/0.428, allocations: 9.843 MB / 390.5 MB, free: 7.035 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001556/0.4296, allocations: 44.91 kB / 390.6 MB, free: 7.012 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001203/0.4308, allocations: 397.4 kB / 390.9 MB, free: 6.84 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/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 4.0.0+maint.om/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.005341/0.4361, allocations: 1.698 MB / 392.6 MB, free: 5.934 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007502/0.4437, allocations: 2.132 MB / 394.8 MB, free: 4.996 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006606/0.4503, allocations: 4.306 MB / 399.1 MB, free: 2.699 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002007/0.4523, allocations: 0.948 MB / 400 MB, free: 2.109 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003241/0.4556, allocations: 1.326 MB / 401.4 MB, free: 1.426 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002912/0.4585, allocations: 1.355 MB / 402.7 MB, free: 0.6758 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002801/0.4588, allocations: 78.84 kB / 402.8 MB, free: 0.6758 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005083/0.4639, allocations: 1.731 MB / 404.5 MB, free: 15.79 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007995/0.4647, allocations: 0.4919 MB / 405 MB, free: 15.45 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007145/0.4654, allocations: 281.8 kB / 405.3 MB, free: 15.31 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004737/0.4702, allocations: 2.305 MB / 407.6 MB, free: 13.91 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.113e-06/0.4702, allocations: 0 / 407.6 MB, free: 13.91 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.715e-06/0.4702, allocations: 3.406 kB / 407.6 MB, free: 13.91 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.5e-05/0.4703, allocations: 0 / 407.6 MB, free: 13.91 MB / 318.1 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.004722/0.475, allocations: 1.782 MB / 409.4 MB, free: 12.61 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.047e-05/0.475, allocations: 8.031 kB / 409.4 MB, free: 12.6 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005258/0.4756, allocations: 170.2 kB / 409.6 MB, free: 12.43 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001486/0.4771, allocations: 0.8712 MB / 410.4 MB, free: 11.52 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000217/0.4773, allocations: 238.5 kB / 410.7 MB, free: 11.25 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002645/0.4776, allocations: 95.98 kB / 410.8 MB, free: 11.16 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003111/0.4807, allocations: 1.79 MB / 412.5 MB, free: 9.309 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.958e-05/0.4807, allocations: 3.938 kB / 412.5 MB, free: 9.305 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001412/0.4809, allocations: 39.97 kB / 412.6 MB, free: 9.266 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001327/0.481, allocations: 106 kB / 412.7 MB, free: 9.16 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003187/0.4842, allocations: 1.768 MB / 414.5 MB, free: 7.383 MB / 318.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.01254/0.4968, allocations: 6.958 MB / 421.4 MB, free: 128 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002603/0.4994, allocations: 1.501 MB / 422.9 MB, free: 14.62 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001374/0.5008, allocations: 0.8929 MB / 423.8 MB, free: 13.72 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008306/0.5016, allocations: 0.6607 MB / 424.5 MB, free: 12.93 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.084e-05/0.5017, allocations: 44.44 kB / 424.5 MB, free: 12.88 MB / 334.1 MB Notification: Performance of pre-optimization done (n=116): time 3.296e-06/0.5017, allocations: 0 / 424.5 MB, free: 12.88 MB / 334.1 MB Notification: Performance of matching and sorting (n=128): time 0.01577/0.5175, allocations: 6.714 MB / 431.2 MB, free: 6.047 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001013/0.5176, allocations: 171.5 kB / 431.4 MB, free: 5.84 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001494/0.5191, allocations: 1.088 MB / 432.5 MB, free: 4.734 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001374/0.5192, allocations: 53.7 kB / 432.5 MB, free: 4.676 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004429/0.5197, allocations: 0.4925 MB / 433 MB, free: 4.176 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004133/0.5201, allocations: 433.9 kB / 433.5 MB, free: 3.746 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001026/0.5202, allocations: 24 kB / 433.5 MB, free: 3.723 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001613/0.5204, allocations: 365.9 kB / 433.8 MB, free: 3.359 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001355/0.5218, allocations: 0.8198 MB / 434.7 MB, free: 2.539 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001526/0.5233, allocations: 1.072 MB / 435.7 MB, free: 1.391 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001458/0.5248, allocations: 0.8769 MB / 436.6 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.961e-06/0.5248, allocations: 4 kB / 436.6 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004746/0.5295, allocations: 2.588 MB / 439.2 MB, free: 13.89 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001906/0.5297, allocations: 227.8 kB / 439.4 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.905e-05/0.5298, allocations: 8 kB / 439.4 MB, free: 13.6 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003499/0.5333, allocations: 1.289 MB / 440.7 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009788/0.5343, allocations: 215.7 kB / 440.9 MB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006895/0.5412, allocations: 6.359 MB / 447.3 MB, free: 5.387 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001497/0.5427, allocations: 99.84 kB / 447.4 MB, free: 5.289 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001579/0.5429, allocations: 59.92 kB / 447.4 MB, free: 5.23 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.155e-06/0.5429, allocations: 4 kB / 447.4 MB, free: 5.227 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004271/0.5472, allocations: 2.342 MB / 449.8 MB, free: 2.867 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.112e-05/0.5472, allocations: 4.188 kB / 449.8 MB, free: 2.863 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002394/0.5496, allocations: 1.019 MB / 450.8 MB, free: 1.828 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009577/0.5506, allocations: 227.7 kB / 451 MB, free: 1.605 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006424/0.557, allocations: 6.108 MB / 457.1 MB, free: 11.15 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001503/0.5585, allocations: 95.84 kB / 457.2 MB, free: 11.06 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001581/0.5587, allocations: 59.97 kB / 457.3 MB, free: 11 MB / 366.1 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.0009018/0.5596, allocations: 453.5 kB / 457.7 MB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000267/0.5599, allocations: 138.4 kB / 457.9 MB, free: 10.41 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005292/0.5652, allocations: 2.799 MB / 460.7 MB, free: 7.59 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.248e-05/0.5652, allocations: 19.94 kB / 460.7 MB, free: 7.57 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.551e-06/0.5652, allocations: 0 / 460.7 MB, free: 7.57 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.54e-05/0.5653, allocations: 7.969 kB / 460.7 MB, free: 7.562 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007624/0.5729, allocations: 4.518 MB / 465.2 MB, free: 2.977 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.865e-06/0.5729, allocations: 0 / 465.2 MB, free: 2.977 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007972/0.5737, allocations: 155.7 kB / 465.4 MB, free: 2.824 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003516/0.5773, allocations: 1.302 MB / 466.7 MB, free: 1.508 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002187/0.5775, allocations: 39.97 kB / 466.7 MB, free: 1.469 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007133/0.5846, allocations: 6.384 MB / 473.1 MB, free: 10.73 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.5847, allocations: 0 / 473.1 MB, free: 10.73 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006874/0.5916, allocations: 3.936 MB / 477 MB, free: 6.762 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001003/0.5926, allocations: 447.1 kB / 477.5 MB, free: 6.305 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002398/0.5928, allocations: 24 kB / 477.5 MB, free: 6.281 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009878/0.5938, allocations: 95.78 kB / 477.6 MB, free: 6.188 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003445/0.5942, allocations: 153.1 kB / 477.7 MB, free: 6.039 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001351/0.5943, allocations: 47.97 kB / 477.8 MB, free: 5.992 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001072/0.5954, allocations: 0.7415 MB / 478.5 MB, free: 5.242 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5954, allocations: 0 / 478.5 MB, free: 5.242 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003148/0.5986, allocations: 1.05 MB / 479.6 MB, free: 4.191 MB / 382.1 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.001888/0.6005, allocations: 0.7249 MB / 480.3 MB, free: 3.461 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.007517/0.608, allocations: 3.774 MB / 484.1 MB, free: 15.64 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 9.768e-06/0.608, allocations: 5.125 kB / 484.1 MB, free: 15.63 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003002/0.6111, allocations: 1.422 MB / 485.5 MB, free: 14.18 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003321/0.6144, allocations: 0.5958 MB / 486.1 MB, free: 13.6 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006968/0.6214, allocations: 3.62 MB / 489.7 MB, free: 9.957 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001028/0.6225, allocations: 1.256 MB / 491 MB, free: 8.676 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006065/0.6231, allocations: 143.3 kB / 491.1 MB, free: 8.535 MB / 398.1 MB Notification: Performance of SimCode: time 1.022e-06/0.6231, allocations: 0 / 491.1 MB, free: 8.535 MB / 398.1 MB Notification: Performance of Templates: time 0.07105/0.6941, allocations: 53.19 MB / 0.5315 GB, free: 3.406 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.makefile make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.makefile clang++ NOTFOUND -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Resources/C-Sources" -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflowCalcHelperMain.o OMCppModelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflowCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflowCalcHelperMain.o] Error 1