Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.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.SimpleExamples.TestSwitchValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSwitchValve") translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestSwitchValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSwitchValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8026/0.8026, allocations: 150.8 MB / 166.6 MB, free: 14.56 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003001/0.0003001, allocations: 23.97 kB / 204.7 MB, free: 10.05 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1812/0.1815, allocations: 31.33 MB / 236 MB, free: 5.465 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.SimpleExamples.TestSwitchValve): time 1.684/1.866, allocations: 293.9 MB / 0.5174 GB, free: 12.69 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.5443/2.41, allocations: 195.1 MB / 0.7079 GB, free: 3.734 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004606/2.411, allocations: 8.719 kB / 0.708 GB, free: 3.734 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.0002152/2.411, allocations: 55.44 kB / 0.708 GB, free: 3.734 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0004726/2.411, allocations: 203.9 kB / 0.7082 GB, free: 3.734 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.02944/2.441, allocations: 10.24 MB / 0.7182 GB, free: 3.562 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001045/2.442, allocations: 0.8101 MB / 0.719 GB, free: 3.559 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004188/2.442, allocations: 404.6 kB / 0.7194 GB, free: 3.52 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003524/2.443, allocations: 314.8 kB / 0.7197 GB, free: 3.52 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003201/2.443, allocations: 373.9 kB / 0.72 GB, free: 3.52 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 7.266e-05/2.443, allocations: 57.41 kB / 0.7201 GB, free: 3.52 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03908/2.482, allocations: 22.41 MB / 0.742 GB, free: 2.684 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0003199/2.483, allocations: 154.3 kB / 0.7421 GB, free: 2.656 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0005873/2.483, allocations: 383 kB / 0.7425 GB, free: 2.629 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.01534/2.498, allocations: 8.184 MB / 0.7505 GB, free: 15.67 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/2.499, allocations: 0 / 0.7505 GB, free: 15.67 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.405e-06/2.499, allocations: 3.562 kB / 0.7505 GB, free: 15.67 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.072e-05/2.499, allocations: 0 / 0.7505 GB, free: 15.67 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.006649/2.505, allocations: 2.424 MB / 0.7529 GB, free: 14.13 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.997e-05/2.505, allocations: 8.125 kB / 0.7529 GB, free: 14.13 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001715/2.505, allocations: 89.7 kB / 0.7529 GB, free: 14.09 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005313/2.506, allocations: 441.3 kB / 0.7534 GB, free: 13.77 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.537e-05/2.506, allocations: 81.92 kB / 0.7534 GB, free: 13.73 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.148e-05/2.506, allocations: 69.91 kB / 0.7535 GB, free: 13.73 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001001/2.507, allocations: 0.7088 MB / 0.7542 GB, free: 13.52 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.559e-05/2.507, allocations: 3.406 kB / 0.7542 GB, free: 13.52 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.977e-05/2.507, allocations: 26.03 kB / 0.7542 GB, free: 13.52 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.486e-05/2.507, allocations: 18.72 kB / 0.7542 GB, free: 13.52 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000879/2.508, allocations: 0.6093 MB / 0.7548 GB, free: 13.43 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.009849/2.518, allocations: 7.485 MB / 0.7622 GB, free: 7.23 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008389/2.519, allocations: 385.5 kB / 0.7625 GB, free: 7.168 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002194/2.519, allocations: 145.8 kB / 0.7627 GB, free: 7.145 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.6231/3.142, allocations: 221.8 MB / 0.9792 GB, free: 452.9 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004998/3.143, allocations: 226.6 kB / 0.9794 GB, free: 452.8 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=38): time 2.705e-06/3.143, allocations: 0 / 0.9794 GB, free: 452.8 MB / 0.8106 GB Notification: Performance of matching and sorting (n=38): time 0.002904/3.146, allocations: 0.9132 MB / 0.9803 GB, free: 452.6 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.488e-05/3.146, allocations: 111.1 kB / 0.9804 GB, free: 452.5 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005415/3.146, allocations: 450.2 kB / 0.9809 GB, free: 452.4 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.685e-05/3.146, allocations: 34.47 kB / 0.9809 GB, free: 452.3 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.000222/3.147, allocations: 338 kB / 0.9812 GB, free: 452.2 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 7.638e-05/3.147, allocations: 128.5 kB / 0.9813 GB, free: 452.1 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001492/3.147, allocations: 116.1 kB / 0.9815 GB, free: 452.1 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 7.782e-05/3.147, allocations: 348.6 kB / 0.9818 GB, free: 451.8 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002396/3.147, allocations: 129.4 kB / 0.9819 GB, free: 451.8 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002826/3.147, allocations: 248.3 kB / 0.9822 GB, free: 451.7 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004858/3.152, allocations: 1.31 MB / 0.9834 GB, free: 451.4 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/3.152, allocations: 0.6875 kB / 0.9834 GB, free: 451.4 MB / 0.8106 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0009079/3.153, allocations: 0.5927 MB / 0.984 GB, free: 451.3 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.958e-05/3.153, allocations: 34.22 kB / 0.984 GB, free: 451.3 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/3.153, allocations: 3.25 kB / 0.984 GB, free: 451.3 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002058/3.155, allocations: 381.1 kB / 0.9844 GB, free: 451.2 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002421/3.156, allocations: 76.41 kB / 0.9845 GB, free: 451.2 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005769/3.156, allocations: 0.7365 MB / 0.9852 GB, free: 450.7 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003144/3.156, allocations: 64.38 kB / 0.9853 GB, free: 450.7 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.961e-05/3.156, allocations: 28.11 kB / 0.9853 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.0002887/3.157, allocations: 222.3 kB / 0.9855 GB, free: 450.5 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.763e-05/3.157, allocations: 50.62 kB / 0.9856 GB, free: 450.5 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001095/3.158, allocations: 0.5998 MB / 0.9861 GB, free: 450.4 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.029e-06/3.158, allocations: 2.688 kB / 0.9861 GB, free: 450.4 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/3.158, allocations: 4.094 kB / 0.9861 GB, free: 450.4 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.04e-06/3.158, allocations: 1.609 kB / 0.9861 GB, free: 450.4 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005306/3.159, allocations: 0.5662 MB / 0.9867 GB, free: 450.2 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.744e-06/3.159, allocations: 0 / 0.9867 GB, free: 450.2 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001366/3.159, allocations: 36.2 kB / 0.9867 GB, free: 450.2 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001734/3.16, allocations: 355.1 kB / 0.9871 GB, free: 450.2 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.7e-05/3.16, allocations: 9.562 kB / 0.9871 GB, free: 450.2 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005351/3.161, allocations: 0.7529 MB / 0.9878 GB, free: 449.6 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.013e-06/3.161, allocations: 2.281 kB / 0.9878 GB, free: 449.6 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008277/3.162, allocations: 0.5326 MB / 0.9883 GB, free: 449.5 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001551/3.162, allocations: 182.2 kB / 0.9885 GB, free: 449.4 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.219e-05/3.162, allocations: 6.25 kB / 0.9885 GB, free: 449.4 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001878/3.162, allocations: 17.89 kB / 0.9885 GB, free: 449.4 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.224e-05/3.162, allocations: 26.5 kB / 0.9886 GB, free: 449.4 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.398e-05/3.162, allocations: 10.05 kB / 0.9886 GB, free: 449.4 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0002988/3.163, allocations: 335 kB / 0.9889 GB, free: 449.3 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/3.163, allocations: 0 / 0.9889 GB, free: 449.3 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.006393/3.169, allocations: 1.885 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.007469/3.177, allocations: 2.935 MB / 0.9936 GB, free: 449 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0008705/3.178, allocations: 437.2 kB / 0.994 GB, free: 449 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/3.178, allocations: 0 / 0.994 GB, free: 449 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0004456/3.178, allocations: 247.5 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.0005576/3.179, allocations: 113.7 kB / 0.9944 GB, free: 448.9 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001678/3.18, allocations: 1.252 MB / 0.9956 GB, free: 448.2 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003338/3.181, allocations: 0.8835 MB / 0.9964 GB, free: 447.5 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001094/3.181, allocations: 49.62 kB / 0.9965 GB, free: 447.5 MB / 0.8106 GB Notification: Performance of SimCode: time 2.11e-07/3.181, allocations: 0 / 0.9965 GB, free: 447.5 MB / 0.8106 GB Notification: Performance of Templates: time 0.04991/3.231, allocations: 38.16 MB / 1.034 GB, free: 427 MB / 0.8106 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSwitchValve.makefile make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.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.SimpleExamples.TestSwitchValveCalcHelperMain.o OMCppThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSwitchValveCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSwitchValveCalcHelperMain.o] Error 1