Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve.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.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve") translateModel(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8341/0.8341, allocations: 150.9 MB / 166.6 MB, free: 14.55 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002681/0.0002681, allocations: 7.984 kB / 204.7 MB, free: 10.04 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1932/0.1935, 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.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve): time 1.764/1.957, allocations: 293.8 MB / 0.5174 GB, free: 12.67 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.605/2.562, allocations: 195.1 MB / 0.7079 GB, free: 3.77 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005402/2.563, allocations: 9.406 kB / 0.7079 GB, free: 3.77 MB / 0.5762 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SourceP.mo:58:3-59:65:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SinkP.mo:46:3-47:67:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/SwitchValve.mo:36:3-37:55:writable] Warning: Connector C1 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/SwitchValve.mo:38:3-40:35:writable] Warning: Connector C2 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/LumpedStraightPipe.mo:54:3-55:67:writable] Warning: Connector C1 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/LumpedStraightPipe.mo:56:3-57:65:writable] Warning: Connector C2 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/LumpedStraightPipe.mo:54:3-55:67:writable] Warning: Connector C1 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/LumpedStraightPipe.mo:56:3-57:65:writable] Warning: Connector C2 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0002439/2.563, allocations: 58.39 kB / 0.7079 GB, free: 3.77 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.000581/2.564, allocations: 199 kB / 0.7081 GB, free: 3.77 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.03744/2.601, allocations: 10.24 MB / 0.7181 GB, free: 3.598 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001301/2.603, allocations: 0.805 MB / 0.7189 GB, free: 3.598 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004704/2.603, allocations: 401.5 kB / 0.7193 GB, free: 3.559 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004083/2.603, allocations: 318.9 kB / 0.7196 GB, free: 3.559 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003617/2.604, allocations: 377.2 kB / 0.72 GB, free: 3.559 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 7.636e-05/2.604, allocations: 61.81 kB / 0.72 GB, free: 3.559 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04701/2.651, allocations: 22.4 MB / 0.7419 GB, free: 2.73 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0003998/2.651, allocations: 165.6 kB / 0.7421 GB, free: 2.699 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0006636/2.652, allocations: 381.8 kB / 0.7424 GB, free: 2.672 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02212/2.674, allocations: 8.183 MB / 0.7504 GB, free: 15.7 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 7.424e-06/2.674, allocations: 2.938 kB / 0.7504 GB, free: 15.7 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.385e-06/2.674, allocations: 0 / 0.7504 GB, free: 15.7 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.451e-05/2.674, allocations: 0 / 0.7504 GB, free: 15.7 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.008676/2.683, allocations: 2.419 MB / 0.7528 GB, free: 14.16 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 5.874e-05/2.683, allocations: 7.906 kB / 0.7528 GB, free: 14.16 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001888/2.683, allocations: 88.75 kB / 0.7529 GB, free: 14.11 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005758/2.684, allocations: 443.2 kB / 0.7533 GB, free: 13.8 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.183e-05/2.684, allocations: 80.45 kB / 0.7534 GB, free: 13.76 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.724e-05/2.684, allocations: 66.91 kB / 0.7534 GB, free: 13.76 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001121/2.685, allocations: 0.7113 MB / 0.7541 GB, free: 13.54 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.917e-05/2.685, allocations: 2.906 kB / 0.7541 GB, free: 13.54 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.792e-05/2.685, allocations: 31.16 kB / 0.7542 GB, free: 13.54 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.733e-05/2.685, allocations: 17.12 kB / 0.7542 GB, free: 13.54 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009204/2.686, allocations: 0.6003 MB / 0.7548 GB, free: 13.46 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.01052/2.697, allocations: 7.489 MB / 0.7621 GB, free: 7.258 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008862/2.698, allocations: 392.2 kB / 0.7624 GB, free: 7.188 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002595/2.698, allocations: 137.1 kB / 0.7626 GB, free: 7.172 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.6671/3.365, allocations: 221.8 MB / 0.9791 GB, free: 452.9 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006003/3.366, allocations: 228.4 kB / 0.9794 GB, free: 452.8 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=38): time 2.855e-06/3.366, allocations: 1.75 kB / 0.9794 GB, free: 452.8 MB / 0.8106 GB Notification: Performance of matching and sorting (n=38): time 0.003017/3.369, allocations: 0.9108 MB / 0.9803 GB, free: 452.6 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.48e-05/3.369, allocations: 112.4 kB / 0.9804 GB, free: 452.5 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006171/3.369, allocations: 455.7 kB / 0.9808 GB, free: 452.4 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.679e-05/3.369, allocations: 31.2 kB / 0.9808 GB, free: 452.4 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002432/3.37, allocations: 339 kB / 0.9812 GB, free: 452.2 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 9.171e-05/3.37, allocations: 133.9 kB / 0.9813 GB, free: 452.2 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000165/3.37, allocations: 115.8 kB / 0.9814 GB, free: 452.1 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001047/3.37, allocations: 353.1 kB / 0.9817 GB, free: 451.8 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002638/3.37, allocations: 130.2 kB / 0.9818 GB, free: 451.8 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003356/3.371, allocations: 244.3 kB / 0.9821 GB, free: 451.7 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004914/3.376, allocations: 1.302 MB / 0.9834 GB, free: 451.4 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.302e-06/3.376, allocations: 0 / 0.9834 GB, free: 451.4 MB / 0.8106 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0009207/3.376, allocations: 0.5991 MB / 0.9839 GB, free: 451.3 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 3.39e-05/3.377, allocations: 34.2 kB / 0.984 GB, free: 451.3 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.448e-06/3.377, allocations: 2.812 kB / 0.984 GB, free: 451.3 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002073/3.379, allocations: 384.5 kB / 0.9843 GB, free: 451.3 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002435/3.379, allocations: 76.16 kB / 0.9844 GB, free: 451.3 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000629/3.38, allocations: 0.7353 MB / 0.9851 GB, free: 450.7 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003475/3.38, allocations: 57.69 kB / 0.9852 GB, free: 450.7 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.056e-05/3.38, allocations: 35.08 kB / 0.9852 GB, free: 450.7 MB / 0.8106 GB Warning: Assuming fixed start value for the following 1 variables: pulse.T0:DISCRETE(fixed = true protected = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 12 (SourceP1.C.ftype,$PRE.pulse.T0,PuitsP1.fluid,SwitchValve.fluid,perteDP2.fluid,perteDP1.fluid,pulse.yL.signal,pulse.T0,$whenCondition1,SourceP1.fluid1,perteDP2.C1.diff_on_2,perteDP1.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 1 * 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 {(3,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0003461/3.38, allocations: 222.7 kB / 0.9854 GB, free: 450.6 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.277e-05/3.38, allocations: 54.12 kB / 0.9855 GB, free: 450.5 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001104/3.381, allocations: 0.592 MB / 0.9861 GB, free: 450.4 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.512e-06/3.381, allocations: 5.344 kB / 0.9861 GB, free: 450.4 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/3.381, allocations: 0 / 0.9861 GB, free: 450.4 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.803e-06/3.382, allocations: 2.328 kB / 0.9861 GB, free: 450.4 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006365/3.382, allocations: 0.5693 MB / 0.9866 GB, free: 450.2 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/3.382, allocations: 3.422 kB / 0.9866 GB, free: 450.2 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001411/3.382, allocations: 40.64 kB / 0.9867 GB, free: 450.2 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001767/3.384, allocations: 348 kB / 0.987 GB, free: 450.2 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.217e-05/3.384, allocations: 16.3 kB / 0.987 GB, free: 450.2 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005718/3.385, allocations: 0.7498 MB / 0.9877 GB, free: 449.7 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/3.385, allocations: 0 / 0.9877 GB, free: 449.7 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008629/3.386, allocations: 0.5284 MB / 0.9883 GB, free: 449.5 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001685/3.386, allocations: 179.9 kB / 0.9884 GB, free: 449.4 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.461e-05/3.386, allocations: 5.562 kB / 0.9884 GB, free: 449.4 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001891/3.386, allocations: 18.83 kB / 0.9885 GB, free: 449.4 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.5e-05/3.386, allocations: 25.17 kB / 0.9885 GB, free: 449.4 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.66e-05/3.386, allocations: 16.58 kB / 0.9885 GB, free: 449.4 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0003308/3.386, allocations: 330.9 kB / 0.9888 GB, free: 449.3 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.5e-07/3.387, allocations: 0 / 0.9888 GB, free: 449.3 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0067/3.393, allocations: 1.884 MB / 0.9907 GB, free: 449.2 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,pulse.T0,pulse.yL.signal) * Number of discrete states: 3 (pulse.yL.signal,pulse.T0,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 1 * 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 {(3,14)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01105/3.404, allocations: 2.941 MB / 0.9935 GB, free: 449 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.001212/3.406, allocations: 439.8 kB / 0.9939 GB, free: 449 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 6.412e-06/3.406, allocations: 2.531 kB / 0.9939 GB, free: 449 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0004681/3.406, allocations: 241.7 kB / 0.9942 GB, free: 448.9 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007037/3.407, allocations: 115 kB / 0.9943 GB, free: 448.9 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002291/3.409, allocations: 1.246 MB / 0.9955 GB, free: 448.2 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004986/3.41, allocations: 0.8832 MB / 0.9964 GB, free: 447.5 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001402/3.41, allocations: 55.75 kB / 0.9964 GB, free: 447.5 MB / 0.8106 GB Notification: Performance of SimCode: time 5.31e-07/3.41, allocations: 0 / 0.9964 GB, free: 447.5 MB / 0.8106 GB Notification: Performance of Templates: time 0.05714/3.467, allocations: 38.16 MB / 1.034 GB, free: 427 MB / 0.8106 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve.makefile make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve.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.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValveCalcHelperMain.o OMCppThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValveCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValveCalcHelperMain.o] Error 1