Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.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.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve") translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7813/0.7813, allocations: 150.8 MB / 166.6 MB, free: 14.66 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002855/0.0002855, allocations: 15.98 kB / 204.7 MB, free: 10.15 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1429/0.1432, 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.TestDynamicCheckValve): time 1.543/1.686, allocations: 292.8 MB / 0.5164 GB, free: 13.66 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.04462/1.731, allocations: 38.01 MB / 0.5535 GB, free: 7.785 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003236/1.731, allocations: 4 kB / 0.5535 GB, free: 7.781 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/DynamicCheckValve.mo:61:3-63:16: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/DynamicCheckValve.mo:64:3-65:51: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.0004744/1.732, allocations: 99.45 kB / 0.5536 GB, free: 7.684 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002937/1.732, allocations: 111.2 kB / 0.5537 GB, free: 7.574 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02268/1.755, allocations: 7.291 MB / 0.5608 GB, free: 288 kB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006636/1.755, allocations: 430.6 kB / 0.5612 GB, free: 15.86 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002449/1.756, allocations: 135.5 kB / 0.5614 GB, free: 15.72 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002463/1.756, allocations: 167.2 kB / 0.5615 GB, free: 15.56 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002089/1.756, allocations: 163.2 kB / 0.5617 GB, free: 15.4 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 3.655e-05/1.756, allocations: 16 kB / 0.5617 GB, free: 15.38 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03342/1.789, allocations: 17.74 MB / 0.579 GB, free: 13.62 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002287/1.79, allocations: 55.77 kB / 0.5791 GB, free: 13.57 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003202/1.79, allocations: 171.1 kB / 0.5792 GB, free: 13.4 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01115/1.801, allocations: 5.762 MB / 0.5849 GB, free: 7.621 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/1.801, allocations: 4 kB / 0.5849 GB, free: 7.617 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.983e-06/1.801, allocations: 0 / 0.5849 GB, free: 7.617 MB / 478.1 MB Notification: Performance of Transformations before backend: time 5.901e-06/1.801, allocations: 0 / 0.5849 GB, free: 7.617 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: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.004229/1.806, allocations: 1.536 MB / 0.5864 GB, free: 6.031 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.181e-05/1.806, allocations: 12.03 kB / 0.5864 GB, free: 6.02 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.082e-05/1.806, allocations: 43.47 kB / 0.5864 GB, free: 5.977 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002803/1.806, allocations: 270.3 kB / 0.5867 GB, free: 5.672 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.342e-05/1.806, allocations: 46.27 kB / 0.5867 GB, free: 5.621 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.417e-05/1.806, allocations: 25.92 kB / 0.5868 GB, free: 5.598 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005151/1.807, allocations: 338.8 kB / 0.5871 GB, free: 5.238 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.732e-05/1.807, allocations: 15.84 kB / 0.5871 GB, free: 5.223 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.517e-05/1.807, allocations: 8 kB / 0.5871 GB, free: 5.215 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.775e-05/1.807, allocations: 19.92 kB / 0.5871 GB, free: 5.195 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003676/1.807, allocations: 225.8 kB / 0.5873 GB, free: 4.977 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.0185/1.826, allocations: 9.984 MB / 0.5971 GB, free: 9.953 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006343/1.826, allocations: 276.3 kB / 0.5973 GB, free: 9.672 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002213/1.826, allocations: 149.2 kB / 0.5975 GB, free: 9.523 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.156/1.982, allocations: 85.47 MB / 0.681 GB, free: 10.44 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005374/1.983, allocations: 229.2 kB / 0.6812 GB, free: 10.2 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=48): time 3.547e-06/1.983, allocations: 0 / 0.6812 GB, free: 10.2 MB / 0.5762 GB Notification: Performance of matching and sorting (n=48): time 0.001503/1.985, allocations: 0.5786 MB / 0.6817 GB, free: 9.59 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.403e-05/1.985, allocations: 85.06 kB / 0.6818 GB, free: 9.488 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003581/1.985, allocations: 250.6 kB / 0.6821 GB, free: 9.242 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 3.325e-05/1.985, allocations: 29.7 kB / 0.6821 GB, free: 9.207 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001478/1.985, allocations: 168.8 kB / 0.6822 GB, free: 9.039 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001344/1.985, allocations: 149.8 kB / 0.6824 GB, free: 8.891 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001271/1.986, allocations: 69.83 kB / 0.6825 GB, free: 8.816 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001905/1.986, allocations: 342.8 kB / 0.6828 GB, free: 8.473 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002297/1.986, allocations: 112.8 kB / 0.6829 GB, free: 8.359 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002402/1.986, allocations: 164 kB / 0.683 GB, free: 8.188 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004458/1.987, allocations: 283.2 kB / 0.6833 GB, free: 7.898 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.23e-06/1.987, allocations: 0 / 0.6833 GB, free: 7.898 MB / 0.5762 GB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0009349/1.988, allocations: 441.8 kB / 0.6837 GB, free: 7.453 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.798e-05/1.988, allocations: 8 kB / 0.6837 GB, free: 7.445 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.181e-05/1.988, allocations: 0 / 0.6837 GB, free: 7.445 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001105/1.989, allocations: 193.5 kB / 0.6839 GB, free: 7.25 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001372/1.989, allocations: 31.92 kB / 0.684 GB, free: 7.219 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002943/1.992, allocations: 2.261 MB / 0.6862 GB, free: 4.793 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002664/1.992, allocations: 35.58 kB / 0.6862 GB, free: 4.758 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.948e-05/1.992, allocations: 12 kB / 0.6862 GB, free: 4.746 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: 7 (checkValve.C2.b,checkValve.C1.a,puitsP1.C.a,sourceP1.C.b,checkValve.libre,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,2), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0002042/1.992, allocations: 151 kB / 0.6864 GB, free: 4.59 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.733e-05/1.993, allocations: 31.62 kB / 0.6864 GB, free: 4.559 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000804/1.993, allocations: 0.5755 MB / 0.6869 GB, free: 3.945 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0005218/1.994, allocations: 374.2 kB / 0.6873 GB, free: 3.566 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/1.994, allocations: 0 / 0.6873 GB, free: 3.566 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/1.994, allocations: 3.188 kB / 0.6873 GB, free: 3.566 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001374/1.995, allocations: 0.9756 MB / 0.6883 GB, free: 2.535 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/1.995, allocations: 0 / 0.6883 GB, free: 2.535 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002742/1.996, allocations: 55.91 kB / 0.6883 GB, free: 2.48 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005025/1.996, allocations: 124.7 kB / 0.6884 GB, free: 2.355 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.568e-05/1.996, allocations: 7.984 kB / 0.6884 GB, free: 2.348 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004815/1.997, allocations: 0.6361 MB / 0.6891 GB, free: 1.688 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/1.997, allocations: 0 / 0.6891 GB, free: 1.688 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009494/1.998, allocations: 0.6506 MB / 0.6897 GB, free: 1.016 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001348/1.998, allocations: 132.6 kB / 0.6898 GB, free: 0.8672 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.676e-05/1.998, allocations: 11.94 kB / 0.6898 GB, free: 0.8555 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002018/1.998, allocations: 19.97 kB / 0.6899 GB, free: 0.8359 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.989e-05/1.998, allocations: 35.83 kB / 0.6899 GB, free: 0.8008 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.539e-05/1.998, allocations: 12.06 kB / 0.6899 GB, free: 0.7891 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002165/1.998, allocations: 221.9 kB / 0.6901 GB, free: 0.5742 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.2e-07/1.998, allocations: 0 / 0.6901 GB, free: 0.5742 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.1681/2.166, allocations: 1.203 MB / 0.6913 GB, free: 225.8 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (checkValve.theta,checkValve.omega) * Number of discrete variables: 3 ($whenCondition2,$whenCondition1,checkValve.libre) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.006345/2.173, allocations: 1.786 MB / 0.693 GB, free: 225.7 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001156/2.174, allocations: 493.7 kB / 0.6935 GB, free: 225.6 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.828e-06/2.174, allocations: 1.75 kB / 0.6935 GB, free: 225.6 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0004452/2.175, allocations: 202.5 kB / 0.6937 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008403/2.175, allocations: 124.8 kB / 0.6938 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00174/2.177, allocations: 1.034 MB / 0.6948 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002869/2.177, allocations: 0.8094 MB / 0.6956 GB, free: 224.3 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.022e-05/2.178, allocations: 32.72 kB / 0.6956 GB, free: 224.3 MB / 0.5762 GB Notification: Performance of SimCode: time 1.623e-06/2.178, allocations: 3 kB / 0.6957 GB, free: 224.3 MB / 0.5762 GB Notification: Performance of Templates: time 0.03903/2.217, allocations: 26.9 MB / 0.7219 GB, free: 216.9 MB / 0.5762 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.makefile make -j1 -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.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.TestDynamicCheckValveCalcHelperMain.o OMCppThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValveCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValveCalcHelperMain.o] Error 1