Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) 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 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_3.2.3_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_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.0009427/0.0009429, allocations: 88.03 kB / 17.58 MB, free: 5.805 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.001172/0.001172, allocations: 185 kB / 18.48 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.683/1.683, allocations: 205.4 MB / 224.6 MB, free: 13.03 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004542/0.0004542, allocations: 19.97 kB / 281.4 MB, free: 3.719 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1118, allocations: 47.57 MB / 329 MB, free: 4.07 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.02931/0.1411, allocations: 28.83 MB / 357.8 MB, free: 7.152 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01624/0.1574, allocations: 9.819 MB / 367.6 MB, free: 13.31 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001571/0.159, allocations: 43.62 kB / 367.7 MB, free: 13.27 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001245/0.1603, allocations: 393.5 kB / 368.1 MB, free: 12.88 MB / 318.1 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.005283/0.1656, allocations: 1.71 MB / 369.8 MB, free: 11.16 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007328/0.1729, allocations: 2.12 MB / 371.9 MB, free: 9.039 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006315/0.1792, allocations: 4.305 MB / 376.2 MB, free: 4.723 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001993/0.1813, allocations: 0.9567 MB / 377.1 MB, free: 3.754 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003186/0.1845, allocations: 1.316 MB / 378.5 MB, free: 2.434 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002498/0.187, allocations: 1.355 MB / 379.8 MB, free: 1.074 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002322/0.1872, allocations: 80 kB / 379.9 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2341/0.4213, allocations: 1.726 MB / 381.6 MB, free: 15.22 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001394/0.4228, allocations: 499.8 kB / 382.1 MB, free: 15.22 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007788/0.4236, allocations: 282.7 kB / 382.4 MB, free: 15.19 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006011/0.4296, allocations: 2.301 MB / 384.7 MB, free: 15.12 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.4297, allocations: 2.25 kB / 384.7 MB, free: 15.12 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.4297, allocations: 0 / 384.7 MB, free: 15.12 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.787e-05/0.4297, allocations: 1.188 kB / 384.7 MB, free: 15.12 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.006444/0.4362, allocations: 1.789 MB / 386.5 MB, free: 14.19 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.022e-05/0.4362, allocations: 8.656 kB / 386.5 MB, free: 14.19 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008096/0.4371, allocations: 160.3 kB / 386.6 MB, free: 14.12 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001731/0.4388, allocations: 0.8723 MB / 387.5 MB, free: 13.81 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002618/0.4391, allocations: 238.2 kB / 387.7 MB, free: 13.65 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000236/0.4393, allocations: 94.28 kB / 387.8 MB, free: 13.65 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003881/0.4432, allocations: 1.786 MB / 389.6 MB, free: 13.48 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.83e-05/0.4433, allocations: 10 kB / 389.6 MB, free: 13.48 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001688/0.4435, allocations: 44.39 kB / 389.7 MB, free: 13.48 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001827/0.4437, allocations: 103.4 kB / 389.8 MB, free: 13.47 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003762/0.4474, allocations: 1.766 MB / 391.5 MB, free: 13.46 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.46, allocations: 6.955 MB / 398.5 MB, free: 11.16 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002535/0.4625, allocations: 1.493 MB / 400 MB, free: 11.12 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001286/0.4639, allocations: 0.8786 MB / 400.9 MB, free: 11.11 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008021/0.4647, allocations: 0.6635 MB / 401.5 MB, free: 10.45 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.035e-05/0.4647, allocations: 49.91 kB / 401.6 MB, free: 10.41 MB / 318.1 MB Notification: Performance of pre-optimization done (n=116): time 6.683e-06/0.4648, allocations: 0 / 401.6 MB, free: 10.41 MB / 318.1 MB Notification: Performance of matching and sorting (n=128): time 0.01633/0.4811, allocations: 6.71 MB / 408.3 MB, free: 9.488 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.279e-05/0.4812, allocations: 172.2 kB / 408.5 MB, free: 9.297 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001576/0.4828, allocations: 1.089 MB / 409.6 MB, free: 9.141 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001813/0.483, allocations: 49.77 kB / 409.6 MB, free: 9.109 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003465/0.4834, allocations: 0.4998 MB / 410.1 MB, free: 8.914 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003599/0.4837, allocations: 437.9 kB / 410.5 MB, free: 8.645 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.777e-05/0.4838, allocations: 24.28 kB / 410.6 MB, free: 8.645 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.353e-05/0.4839, allocations: 359.4 kB / 410.9 MB, free: 8.34 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001194/0.4851, allocations: 0.827 MB / 411.7 MB, free: 8.336 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001294/0.4864, allocations: 1.06 MB / 412.8 MB, free: 7.977 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001341/0.4878, allocations: 0.885 MB / 413.7 MB, free: 7.859 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.952e-06/0.4878, allocations: 3.938 kB / 413.7 MB, free: 7.859 MB / 318.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004238/0.492, allocations: 2.585 MB / 416.3 MB, free: 7.328 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001802/0.4922, allocations: 232 kB / 416.5 MB, free: 7.066 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.515e-05/0.4923, allocations: 7.234 kB / 416.5 MB, free: 7.066 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003306/0.4956, allocations: 1.299 MB / 417.8 MB, free: 6.68 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009175/0.4965, allocations: 211 kB / 418 MB, free: 6.648 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00549/0.502, allocations: 6.357 MB / 424.4 MB, free: 1.016 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001667/0.5037, allocations: 95.94 kB / 424.5 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001526/0.5039, allocations: 60.77 kB / 424.5 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.574e-05/0.5039, allocations: 7.953 kB / 424.5 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003978/0.5079, allocations: 2.333 MB / 426.9 MB, free: 15.36 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.306e-05/0.5079, allocations: 7.984 kB / 426.9 MB, free: 15.36 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002409/0.5103, allocations: 1.016 MB / 427.9 MB, free: 14.52 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000975/0.5113, allocations: 237.4 kB / 428.1 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006303/0.5176, allocations: 6.11 MB / 434.2 MB, free: 8.109 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001768/0.5194, allocations: 91.84 kB / 434.3 MB, free: 8.02 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001635/0.5196, allocations: 59.97 kB / 434.4 MB, free: 7.961 MB / 334.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.001089/0.5207, allocations: 451.7 kB / 434.8 MB, free: 7.523 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003067/0.521, allocations: 138.4 kB / 434.9 MB, free: 7.387 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005039/0.5261, allocations: 2.806 MB / 437.7 MB, free: 4.574 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.894e-05/0.5261, allocations: 16 kB / 437.8 MB, free: 4.559 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.5261, allocations: 0 / 437.8 MB, free: 4.559 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.701e-05/0.5261, allocations: 7.969 kB / 437.8 MB, free: 4.551 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007549/0.5337, allocations: 4.525 MB / 442.3 MB, free: 8 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.848e-06/0.5337, allocations: 3.984 kB / 442.3 MB, free: 4 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007865/0.5345, allocations: 157.2 kB / 442.5 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003141/0.5377, allocations: 1.294 MB / 443.7 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001343/0.5378, allocations: 35.98 kB / 443.8 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006977/0.5448, allocations: 6.385 MB / 450.2 MB, free: 7.828 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.5448, allocations: 0 / 450.2 MB, free: 7.828 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007027/0.5519, allocations: 3.933 MB / 454.1 MB, free: 3.871 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001251/0.5532, allocations: 443.1 kB / 454.5 MB, free: 3.418 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002157/0.5534, allocations: 28 kB / 454.6 MB, free: 3.391 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001016/0.5544, allocations: 99.77 kB / 454.7 MB, free: 3.293 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003514/0.5548, allocations: 149.1 kB / 454.8 MB, free: 3.148 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000142/0.5549, allocations: 47.97 kB / 454.9 MB, free: 3.102 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001261/0.5562, allocations: 0.7415 MB / 455.6 MB, free: 2.352 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5562, allocations: 0 / 455.6 MB, free: 2.352 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.003742/0.56, allocations: 1.058 MB / 456.7 MB, free: 1.293 MB / 350.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.002232/0.5622, allocations: 0.7197 MB / 457.4 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.007781/0.57, allocations: 3.78 MB / 461.1 MB, free: 12.85 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.292e-06/0.57, allocations: 0 / 461.1 MB, free: 12.85 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002883/0.5729, allocations: 1.411 MB / 462.6 MB, free: 11.43 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003108/0.5761, allocations: 0.6084 MB / 463.2 MB, free: 10.82 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006596/0.5827, allocations: 3.619 MB / 466.8 MB, free: 7.188 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001041/0.5837, allocations: 1.253 MB / 468 MB, free: 5.906 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005427/0.5843, allocations: 147.1 kB / 468.2 MB, free: 5.766 MB / 366.1 MB Notification: Performance of SimCode: time 1.482e-06/0.5843, allocations: 2.844 kB / 468.2 MB, free: 5.766 MB / 366.1 MB Notification: Performance of Templates: time 0.0739/0.6582, allocations: 53.18 MB / 0.5091 GB, free: 0.5742 MB / 414.1 MB make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.makefile make -j1 -f Modelica_3.2.3_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"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflowCalcHelperMain.o OMCppModelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflowCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflowCalcHelperMain.o] Error 1