Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicReliefValve.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.SimpleExamples.TestDynamicReliefValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1200,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicReliefValve") translateModel(ThermoSysPro.Examples.SimpleExamples.TestDynamicReliefValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1200,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicReliefValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8107/0.8107, allocations: 150.9 MB / 166.6 MB, free: 14.64 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002912/0.0002912, allocations: 11.98 kB / 204.7 MB, free: 10.12 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1826/0.1829, allocations: 31.34 MB / 236 MB, free: 5.68 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.SimpleExamples.TestDynamicReliefValve): time 1.758/1.941, allocations: 294.6 MB / 0.5182 GB, free: 12.05 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.6205/2.562, allocations: 188.3 MB / 0.7021 GB, free: 3.707 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005188/2.562, allocations: 6 kB / 0.7021 GB, free: 3.707 MB / 0.5762 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/DynamicReliefValve.mo:73:3-75: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/DynamicReliefValve.mo:76:3-78:33:writable] Warning: Connector C2 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/LumpedStraightPipe.mo:49:3-50:42: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/LumpedStraightPipe.mo:51:3-53:37:writable] Warning: Connector C2 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/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/PressureLosses/Bend.mo:55:3-57:42: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/Bend.mo:58:3-60:43:writable] Warning: Connector C2 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/Diaphragm.mo:30:3-32:42: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/Diaphragm.mo:33:3-35:37: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.0009596/2.563, allocations: 364 kB / 0.7024 GB, free: 3.707 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001172/2.564, allocations: 0.5046 MB / 0.7029 GB, free: 3.707 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.03038/2.595, allocations: 8.835 MB / 0.7115 GB, free: 3.617 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001951/2.597, allocations: 1.149 MB / 0.7127 GB, free: 3.613 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005335/2.597, allocations: 441.7 kB / 0.7131 GB, free: 3.57 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005965/2.598, allocations: 468.7 kB / 0.7135 GB, free: 3.57 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006108/2.598, allocations: 0.5992 MB / 0.7141 GB, free: 3.57 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 9.12e-05/2.599, allocations: 45.75 kB / 0.7142 GB, free: 3.57 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03952/2.638, allocations: 20.29 MB / 0.734 GB, free: 3.461 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0005704/2.639, allocations: 289.3 kB / 0.7342 GB, free: 3.461 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0008955/2.64, allocations: 0.5172 MB / 0.7347 GB, free: 3.438 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.01626/2.656, allocations: 7.456 MB / 0.742 GB, free: 0.625 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/2.656, allocations: 0 / 0.742 GB, free: 0.625 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.583e-06/2.656, allocations: 4 kB / 0.742 GB, free: 0.6211 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.205e-05/2.656, allocations: 0 / 0.742 GB, free: 0.6211 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 206 * Number of variables: 206 Notification: Performance of Generate backend data structure: time 0.007559/2.663, allocations: 2.625 MB / 0.7446 GB, free: 15 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.175e-05/2.664, allocations: 14.77 kB / 0.7446 GB, free: 15 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001973/2.664, allocations: 131.4 kB / 0.7447 GB, free: 14.93 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007534/2.664, allocations: 0.6734 MB / 0.7454 GB, free: 14.51 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.158e-05/2.665, allocations: 75.98 kB / 0.7455 GB, free: 14.48 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.994e-05/2.665, allocations: 62.23 kB / 0.7455 GB, free: 14.47 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001319/2.666, allocations: 0.9091 MB / 0.7464 GB, free: 14.13 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.169e-05/2.666, allocations: 5 kB / 0.7464 GB, free: 14.13 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.904e-05/2.666, allocations: 29.59 kB / 0.7464 GB, free: 14.13 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.883e-05/2.666, allocations: 34.38 kB / 0.7465 GB, free: 14.12 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001173/2.667, allocations: 0.7571 MB / 0.7472 GB, free: 14.02 MB / 0.5919 GB 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.02233/2.69, allocations: 12.69 MB / 0.7596 GB, free: 4.738 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001559/2.691, allocations: 0.6491 MB / 0.7602 GB, free: 4.625 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005615/2.692, allocations: 365.4 kB / 0.7606 GB, free: 4.586 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3018/2.994, allocations: 158.8 MB / 0.9157 GB, free: 10.29 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001081/2.995, allocations: 459.5 kB / 0.9162 GB, free: 9.961 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=109): time 2.916e-06/2.995, allocations: 0 / 0.9162 GB, free: 9.961 MB / 0.7637 GB Notification: Performance of matching and sorting (n=109): time 0.007798/3.003, allocations: 2.176 MB / 0.9183 GB, free: 8.172 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.892e-05/3.003, allocations: 158.7 kB / 0.9184 GB, free: 7.98 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001924/3.005, allocations: 1.28 MB / 0.9197 GB, free: 6.996 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 6.562e-05/3.005, allocations: 41.42 kB / 0.9197 GB, free: 6.961 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003413/3.005, allocations: 464 kB / 0.9202 GB, free: 6.688 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002792/3.005, allocations: 361.3 kB / 0.9205 GB, free: 6.383 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002684/3.006, allocations: 154.7 kB / 0.9207 GB, free: 6.277 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001179/3.006, allocations: 343.6 kB / 0.921 GB, free: 5.953 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006064/3.006, allocations: 356 kB / 0.9213 GB, free: 5.727 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007473/3.007, allocations: 0.5207 MB / 0.9218 GB, free: 5.285 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001427/3.009, allocations: 0.8387 MB / 0.9227 GB, free: 4.691 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.047e-05/3.009, allocations: 4 kB / 0.9227 GB, free: 4.688 MB / 0.7637 GB Notification: Performance of matching and sorting (n=135) (initialization): time 0.002237/3.011, allocations: 1.23 MB / 0.9239 GB, free: 3.836 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 2.216e-05/3.011, allocations: 9.203 kB / 0.9239 GB, free: 3.828 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.224e-05/3.011, allocations: 4 kB / 0.9239 GB, free: 3.824 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004338/3.015, allocations: 1.067 MB / 0.9249 GB, free: 2.832 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000491/3.016, allocations: 103.1 kB / 0.925 GB, free: 2.742 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001523/3.017, allocations: 1.124 MB / 0.9261 GB, free: 1.832 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008111/3.018, allocations: 109.1 kB / 0.9262 GB, free: 1.734 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.372e-05/3.018, allocations: 31.06 kB / 0.9262 GB, free: 1.707 MB / 0.7637 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 13 (diaphragm.C2.b,diaphragm.C1.a,bend.C2.b,bend.C1.a,sourceP.C.b,sinkP.C.a,pipe.C2.b,pipe.C1.a,reliefValve.C2.b,reliefValve.C1.a,reliefValve.clapper_is_free,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (56): * Single equations (assignments): 53 * 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 {(7,19)} Notification: Performance of prepare postOptimizeDAE: time 0.0005081/3.019, allocations: 333.7 kB / 0.9266 GB, free: 1.461 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002633/3.019, allocations: 110.5 kB / 0.9267 GB, free: 1.352 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003044/3.022, allocations: 1.687 MB / 0.9283 GB, free: 192 kB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002148/3.024, allocations: 1.175 MB / 0.9295 GB, free: 15.01 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.668e-06/3.024, allocations: 5.141 kB / 0.9295 GB, free: 15 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.126e-05/3.024, allocations: 7.984 kB / 0.9295 GB, free: 15 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004591/3.029, allocations: 2.794 MB / 0.9322 GB, free: 12.19 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.935e-06/3.029, allocations: 0 / 0.9322 GB, free: 12.19 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005707/3.029, allocations: 138.7 kB / 0.9323 GB, free: 12.06 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003359/3.033, allocations: 1.047 MB / 0.9334 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.874e-05/3.033, allocations: 20 kB / 0.9334 GB, free: 11 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001401/3.034, allocations: 1.216 MB / 0.9346 GB, free: 9.758 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.105e-06/3.034, allocations: 4 kB / 0.9346 GB, free: 9.754 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003357/3.038, allocations: 1.897 MB / 0.9364 GB, free: 7.84 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005197/3.038, allocations: 291.1 kB / 0.9367 GB, free: 7.535 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002004/3.038, allocations: 24 kB / 0.9367 GB, free: 7.512 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006577/3.039, allocations: 55.8 kB / 0.9368 GB, free: 7.457 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000153/3.039, allocations: 76.89 kB / 0.9368 GB, free: 7.383 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.899e-05/3.039, allocations: 23.98 kB / 0.9369 GB, free: 7.359 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.001281/3.041, allocations: 0.9476 MB / 0.9378 GB, free: 6.402 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/3.041, allocations: 0 / 0.9378 GB, free: 6.402 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.005105/3.046, allocations: 1.69 MB / 0.9394 GB, free: 4.711 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (reliefValve.z,reliefValve.v,reliefValve.Wdyn) * Number of discrete variables: 3 ($whenCondition2,$whenCondition1,reliefValve.clapper_is_free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 68 * 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 {(7,23)} Notification: Performance of Backend phase and start with SimCode phase: time 0.009195/3.055, allocations: 2.414 MB / 0.9418 GB, free: 2.594 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.002459/3.057, allocations: 1.183 MB / 0.943 GB, free: 1.406 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 4.649e-06/3.057, allocations: 0 / 0.943 GB, free: 1.406 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.00128/3.059, allocations: 0.5865 MB / 0.9435 GB, free: 0.8359 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001896/3.061, allocations: 343.8 kB / 0.9439 GB, free: 0.5039 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004722/3.065, allocations: 3.005 MB / 0.9468 GB, free: 13.48 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009551/3.066, allocations: 1.189 MB / 0.948 GB, free: 12.27 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002493/3.067, allocations: 79.42 kB / 0.948 GB, free: 12.19 MB / 0.795 GB Notification: Performance of SimCode: time 7.11e-07/3.067, allocations: 0 / 0.948 GB, free: 12.19 MB / 0.795 GB Notification: Performance of Templates: time 0.245/3.312, allocations: 42.81 MB / 0.9898 GB, free: 438.3 MB / 0.8106 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicReliefValve.makefile make -j1 -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicReliefValve.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/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/sundials" "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicReliefValveCalcHelperMain.o OMCppThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicReliefValveCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicReliefValveCalcHelperMain.o] Error 1