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.6708/0.6708, allocations: 150.8 MB / 166.7 MB, free: 15.64 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.113e-05/1.115e-05, allocations: 4 kB / 205.4 MB, free: 10.21 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.1108, allocations: 31.99 MB / 237.4 MB, free: 5.418 MB / 190.1 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation. 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.294/1.404, allocations: 294.7 MB / 0.5197 GB, free: 12.32 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.3927/1.797, allocations: 192.7 MB / 0.7079 GB, free: 3.586 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003624/1.798, allocations: 11.12 kB / 0.7079 GB, free: 3.586 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0001379/1.798, allocations: 52.97 kB / 0.7079 GB, free: 3.586 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0005056/1.798, allocations: 202 kB / 0.7081 GB, free: 3.586 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.02148/1.82, allocations: 10.46 MB / 0.7184 GB, free: 3.438 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0006153/1.82, allocations: 0.804 MB / 0.7191 GB, free: 3.438 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003036/1.821, allocations: 360.6 kB / 0.7195 GB, free: 3.387 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002473/1.821, allocations: 280.6 kB / 0.7197 GB, free: 3.387 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002344/1.821, allocations: 319.3 kB / 0.7201 GB, free: 3.387 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 5.034e-05/1.821, allocations: 42.25 kB / 0.7201 GB, free: 3.383 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02683/1.848, allocations: 22.51 MB / 0.7421 GB, free: 1.926 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001554/1.848, allocations: 129.3 kB / 0.7422 GB, free: 1.902 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003573/1.849, allocations: 376.2 kB / 0.7426 GB, free: 1.844 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.009208/1.858, allocations: 8.065 MB / 0.7504 GB, free: 14.71 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 2.895e-06/1.858, allocations: 0 / 0.7504 GB, free: 14.71 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.152e-06/1.858, allocations: 0 / 0.7504 GB, free: 14.71 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 7.624e-06/1.858, allocations: 0 / 0.7504 GB, free: 14.71 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.004056/1.862, allocations: 2.282 MB / 0.7527 GB, free: 13.18 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 2.998e-05/1.862, allocations: 12.92 kB / 0.7527 GB, free: 13.17 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000113/1.862, allocations: 90.31 kB / 0.7528 GB, free: 13.13 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004219/1.862, allocations: 440 kB / 0.7532 GB, free: 12.81 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.851e-05/1.863, allocations: 79.36 kB / 0.7533 GB, free: 12.78 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.163e-05/1.863, allocations: 64.22 kB / 0.7533 GB, free: 12.78 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008406/1.863, allocations: 0.7141 MB / 0.754 GB, free: 12.56 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.566e-05/1.863, allocations: 0 / 0.754 GB, free: 12.56 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.484e-05/1.864, allocations: 32.19 kB / 0.754 GB, free: 12.56 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.121e-05/1.864, allocations: 17.81 kB / 0.7541 GB, free: 12.56 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007556/1.864, allocations: 0.6009 MB / 0.7546 GB, free: 12.48 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.008057/1.872, allocations: 7.501 MB / 0.762 GB, free: 6.27 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000632/1.873, allocations: 385.7 kB / 0.7623 GB, free: 6.203 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001867/1.873, allocations: 144.6 kB / 0.7625 GB, free: 6.18 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5364/2.41, allocations: 223.7 MB / 0.981 GB, free: 454.3 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003514/2.41, allocations: 223.2 kB / 0.9812 GB, free: 454.2 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=38): time 2.204e-06/2.41, allocations: 1.062 kB / 0.9812 GB, free: 454.2 MB / 0.8106 GB Notification: Performance of matching and sorting (n=38): time 0.002485/2.412, allocations: 0.9278 MB / 0.9821 GB, free: 454.1 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.129e-05/2.413, allocations: 109.6 kB / 0.9822 GB, free: 453.9 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003904/2.413, allocations: 460.7 kB / 0.9826 GB, free: 453.8 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.215e-05/2.413, allocations: 31.45 kB / 0.9827 GB, free: 453.8 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001399/2.413, allocations: 336.3 kB / 0.983 GB, free: 453.7 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 6.021e-05/2.413, allocations: 123.8 kB / 0.9831 GB, free: 453.6 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.623e-05/2.413, allocations: 56.16 kB / 0.9832 GB, free: 453.6 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 5.206e-05/2.413, allocations: 357 kB / 0.9835 GB, free: 453.2 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002045/2.413, allocations: 127.9 kB / 0.9836 GB, free: 453.2 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002214/2.414, allocations: 247.6 kB / 0.9839 GB, free: 453.1 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004412/2.418, allocations: 1.362 MB / 0.9852 GB, free: 452.8 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/2.418, allocations: 0.9375 kB / 0.9852 GB, free: 452.8 MB / 0.8106 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007513/2.419, allocations: 0.59 MB / 0.9858 GB, free: 452.7 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.371e-05/2.419, allocations: 36.83 kB / 0.9858 GB, free: 452.7 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.135e-06/2.419, allocations: 9.281 kB / 0.9858 GB, free: 452.7 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001959/2.421, allocations: 443.9 kB / 0.9862 GB, free: 452.7 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002128/2.421, allocations: 73.44 kB / 0.9863 GB, free: 452.7 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004686/2.422, allocations: 0.7405 MB / 0.987 GB, free: 452.1 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002685/2.422, allocations: 57.69 kB / 0.9871 GB, free: 452.1 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.122e-05/2.422, allocations: 34.64 kB / 0.9871 GB, free: 452.1 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.0001992/2.422, allocations: 223.8 kB / 0.9873 GB, free: 451.9 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.592e-05/2.422, allocations: 47.94 kB / 0.9874 GB, free: 451.9 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009479/2.423, allocations: 0.5974 MB / 0.988 GB, free: 451.8 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/2.423, allocations: 8.188 kB / 0.988 GB, free: 451.8 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/2.423, allocations: 0 / 0.988 GB, free: 451.8 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/2.423, allocations: 4.922 kB / 0.988 GB, free: 451.8 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004227/2.424, allocations: 0.5652 MB / 0.9885 GB, free: 451.6 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/2.424, allocations: 0 / 0.9885 GB, free: 451.6 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001198/2.424, allocations: 38.56 kB / 0.9886 GB, free: 451.6 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001668/2.425, allocations: 409.5 kB / 0.9889 GB, free: 451.6 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.214e-05/2.425, allocations: 9.266 kB / 0.989 GB, free: 451.6 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004523/2.426, allocations: 0.7512 MB / 0.9897 GB, free: 451 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/2.426, allocations: 4.594 kB / 0.9897 GB, free: 451 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000713/2.427, allocations: 0.5232 MB / 0.9902 GB, free: 450.9 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001286/2.427, allocations: 182.3 kB / 0.9904 GB, free: 450.8 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.383e-05/2.427, allocations: 9 kB / 0.9904 GB, free: 450.8 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001803/2.427, allocations: 19.48 kB / 0.9904 GB, free: 450.8 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.36e-05/2.427, allocations: 28.05 kB / 0.9904 GB, free: 450.8 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.023e-05/2.427, allocations: 16.81 kB / 0.9905 GB, free: 450.8 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0002435/2.427, allocations: 326.4 kB / 0.9908 GB, free: 450.7 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.1e-07/2.427, allocations: 0 / 0.9908 GB, free: 450.7 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.003319/2.431, allocations: 1.882 MB / 0.9926 GB, free: 450.6 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.005458/2.436, allocations: 2.9 MB / 0.9954 GB, free: 450.4 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0006019/2.437, allocations: 438.5 kB / 0.9958 GB, free: 450.3 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/2.437, allocations: 0 / 0.9958 GB, free: 450.3 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0003247/2.437, allocations: 251.9 kB / 0.9961 GB, free: 450.2 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004715/2.438, allocations: 108.2 kB / 0.9962 GB, free: 450.2 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001156/2.439, allocations: 1.287 MB / 0.9974 GB, free: 449.5 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000224/2.439, allocations: 0.8805 MB / 0.9983 GB, free: 448.8 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.971e-05/2.439, allocations: 51.39 kB / 0.9984 GB, free: 448.8 MB / 0.8106 GB Notification: Performance of SimCode: time 6.21e-07/2.439, allocations: 0 / 0.9984 GB, free: 448.8 MB / 0.8106 GB Notification: Performance of Templates: time 0.03345/2.473, allocations: 37.26 MB / 1.035 GB, free: 428.4 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