Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo", uses=false) Using package ThermoSysPro with version 4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo) Running command: translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve") translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7713/0.7713, allocations: 150.8 MB / 166.6 MB, free: 14.59 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002643/0.0002643, allocations: 15.97 kB / 204.7 MB, free: 10.09 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1408/0.1411, allocations: 31.33 MB / 236 MB, free: 5.438 MB / 190.1 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve): time 1.503/1.645, allocations: 292.6 MB / 0.5162 GB, free: 13.84 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.04003/1.685, allocations: 37.91 MB / 0.5532 GB, free: 8.07 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002147/1.685, allocations: 0 / 0.5532 GB, free: 8.07 MB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SourceP.mo:30:3-31:45:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SinkP.mo:33:3-34:47:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/ControlValve.mo:45:3-47:43:writable] Warning: Connector C1 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/ControlValve.mo:48:3-50:38:writable] Warning: Connector C2 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0005052/1.685, allocations: 135.5 kB / 0.5534 GB, free: 7.938 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003109/1.686, allocations: 135.2 kB / 0.5535 GB, free: 7.805 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01811/1.704, allocations: 7.279 MB / 0.5606 GB, free: 0.5273 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004911/1.704, allocations: 362.4 kB / 0.5609 GB, free: 176 kB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001839/1.705, allocations: 126.8 kB / 0.5611 GB, free: 44 kB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000207/1.705, allocations: 143.3 kB / 0.5612 GB, free: 15.9 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001653/1.705, allocations: 163.4 kB / 0.5614 GB, free: 15.74 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 2.575e-05/1.705, allocations: 12 kB / 0.5614 GB, free: 15.73 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02563/1.731, allocations: 17.8 MB / 0.5787 GB, free: 13.9 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001306/1.731, allocations: 75.69 kB / 0.5788 GB, free: 13.83 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001783/1.731, allocations: 155 kB / 0.579 GB, free: 13.68 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00942/1.74, allocations: 5.782 MB / 0.5846 GB, free: 7.879 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/1.74, allocations: 4 kB / 0.5846 GB, free: 7.875 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.212e-06/1.74, allocations: 0 / 0.5846 GB, free: 7.875 MB / 478.1 MB Notification: Performance of Transformations before backend: time 8.496e-06/1.74, allocations: 0 / 0.5846 GB, free: 7.875 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 77 * Number of variables: 77 Notification: Performance of Generate backend data structure: time 0.003589/1.744, allocations: 1.52 MB / 0.5861 GB, free: 6.305 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.431e-05/1.744, allocations: 11.97 kB / 0.5861 GB, free: 6.293 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.709e-05/1.744, allocations: 43.38 kB / 0.5862 GB, free: 6.25 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002724/1.744, allocations: 294.2 kB / 0.5864 GB, free: 5.926 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.823e-05/1.744, allocations: 12.44 kB / 0.5864 GB, free: 5.91 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.508e-05/1.745, allocations: 24 kB / 0.5865 GB, free: 5.887 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004074/1.745, allocations: 323.9 kB / 0.5868 GB, free: 5.547 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.466e-06/1.745, allocations: 0 / 0.5868 GB, free: 5.547 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.723e-05/1.745, allocations: 4 kB / 0.5868 GB, free: 5.543 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.562e-05/1.745, allocations: 17.44 kB / 0.5868 GB, free: 5.527 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002697/1.745, allocations: 217 kB / 0.587 GB, free: 5.316 MB / 478.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.03392/1.779, allocations: 18.11 MB / 0.6047 GB, free: 1.34 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002198/1.779, allocations: 146.5 kB / 0.6048 GB, free: 1.188 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001274/1.78, allocations: 108.8 kB / 0.6049 GB, free: 1.078 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1392/1.919, allocations: 77.28 MB / 0.6804 GB, free: 11.03 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.956e-05/1.919, allocations: 34.55 kB / 0.6804 GB, free: 10.98 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=34): time 2.705e-06/1.919, allocations: 0.8438 kB / 0.6804 GB, free: 10.98 MB / 0.5762 GB Notification: Performance of matching and sorting (n=34): time 0.001056/1.92, allocations: 0.4914 MB / 0.6809 GB, free: 10.46 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.878e-05/1.92, allocations: 51.41 kB / 0.681 GB, free: 10.4 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000356/1.92, allocations: 360.5 kB / 0.6813 GB, free: 10.04 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.378e-05/1.92, allocations: 25.7 kB / 0.6813 GB, free: 10.01 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.000111/1.92, allocations: 188.4 kB / 0.6815 GB, free: 9.82 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 6.024e-05/1.921, allocations: 102.4 kB / 0.6816 GB, free: 9.719 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.197e-05/1.921, allocations: 57.59 kB / 0.6817 GB, free: 9.656 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001069/1.921, allocations: 346.8 kB / 0.682 GB, free: 9.309 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001141/1.921, allocations: 87.97 kB / 0.6821 GB, free: 9.223 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001375/1.921, allocations: 141.3 kB / 0.6822 GB, free: 9.07 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000258/1.921, allocations: 252.5 kB / 0.6825 GB, free: 8.809 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.059e-06/1.921, allocations: 0 / 0.6825 GB, free: 8.809 MB / 0.5762 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0004416/1.922, allocations: 345.5 kB / 0.6828 GB, free: 8.461 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.533e-05/1.922, allocations: 4 kB / 0.6828 GB, free: 8.457 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.353e-06/1.922, allocations: 4 kB / 0.6828 GB, free: 8.453 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007851/1.923, allocations: 132.8 kB / 0.6829 GB, free: 8.32 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.53e-05/1.923, allocations: 23.86 kB / 0.6829 GB, free: 8.297 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004933/1.923, allocations: 0.6108 MB / 0.6835 GB, free: 7.66 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001201/1.923, allocations: 31.56 kB / 0.6836 GB, free: 7.629 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.434e-05/1.923, allocations: 8 kB / 0.6836 GB, free: 7.621 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 4 (ControlValve.C2.b,ControlValve.C1.a,PuitsP1.C.a,SourceP1.C.b) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001402/1.923, allocations: 157.8 kB / 0.6837 GB, free: 7.457 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.53e-05/1.923, allocations: 40.98 kB / 0.6838 GB, free: 7.418 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007479/1.924, allocations: 0.6551 MB / 0.6844 GB, free: 6.688 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003874/1.925, allocations: 258.5 kB / 0.6847 GB, free: 6.426 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/1.925, allocations: 0 / 0.6847 GB, free: 6.426 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/1.925, allocations: 0 / 0.6847 GB, free: 6.426 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009824/1.926, allocations: 0.8299 MB / 0.6855 GB, free: 5.539 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.506e-06/1.926, allocations: 4 kB / 0.6855 GB, free: 5.535 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.398e-05/1.926, allocations: 16 kB / 0.6855 GB, free: 5.52 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004584/1.926, allocations: 125.5 kB / 0.6856 GB, free: 5.395 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.323e-05/1.926, allocations: 7.984 kB / 0.6856 GB, free: 5.387 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004493/1.927, allocations: 0.6281 MB / 0.6862 GB, free: 4.734 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/1.927, allocations: 0 / 0.6862 GB, free: 4.734 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004841/1.927, allocations: 400.8 kB / 0.6866 GB, free: 4.324 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 9.862e-05/1.927, allocations: 120.7 kB / 0.6867 GB, free: 4.188 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.226e-05/1.927, allocations: 7.906 kB / 0.6867 GB, free: 4.18 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001072/1.927, allocations: 4 kB / 0.6867 GB, free: 4.176 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.822e-05/1.927, allocations: 15.86 kB / 0.6867 GB, free: 4.16 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.287e-06/1.927, allocations: 4 kB / 0.6867 GB, free: 4.156 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003277/1.928, allocations: 335.1 kB / 0.6871 GB, free: 3.828 MB / 0.5762 GB Notification: Performance of sort global known variables: time 3.8e-07/1.928, allocations: 8 kB / 0.6871 GB, free: 3.82 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002697/1.931, allocations: 1.202 MB / 0.6882 GB, free: 2.617 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005097/1.936, allocations: 1.795 MB / 0.69 GB, free: 0.832 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0005182/1.936, allocations: 278.5 kB / 0.6903 GB, free: 0.5547 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/1.936, allocations: 0 / 0.6903 GB, free: 0.5547 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002721/1.936, allocations: 123.9 kB / 0.6904 GB, free: 444 kB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006849/1.937, allocations: 129.9 kB / 0.6905 GB, free: 316 kB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1428/2.08, allocations: 0.8019 MB / 0.6913 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002304/2.08, allocations: 0.8043 MB / 0.6921 GB, free: 224.4 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.41e-05/2.08, allocations: 28.22 kB / 0.6921 GB, free: 224.4 MB / 0.5762 GB Notification: Performance of SimCode: time 8.02e-07/2.08, allocations: 0 / 0.6921 GB, free: 224.4 MB / 0.5762 GB Notification: Performance of Templates: time 0.03381/2.114, allocations: 26.1 MB / 0.7176 GB, free: 217.9 MB / 0.5762 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.makefile make -j1 -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.makefile clang++ -std=c++14 NOTFOUND -Winvalid-pch -O2 -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/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValveCalcHelperMain.o OMCppThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValveCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValveCalcHelperMain.o] Error 1