Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.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.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve") translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.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.7544/0.7544, allocations: 150.9 MB / 166.6 MB, free: 14.61 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002886/0.0002886, allocations: 19.98 kB / 204.7 MB, free: 10.05 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1569/0.1572, allocations: 31.32 MB / 236 MB, free: 5.43 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.TestSwitchValve): time 1.497/1.654, allocations: 293.6 MB / 0.5171 GB, free: 12.88 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1892/1.843, allocations: 187.7 MB / 0.7005 GB, free: 0.7773 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003797/1.844, allocations: 7.938 kB / 0.7005 GB, free: 0.7695 MB / 0.5762 GB [/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/SwitchValve.mo:37:3-39:43: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/SwitchValve.mo:40:3-42:38: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/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). Notification: Performance of NFTyping.typeComponents: time 0.0004292/1.844, allocations: 108.1 kB / 0.7006 GB, free: 0.6641 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0003465/1.845, allocations: 166.7 kB / 0.7007 GB, free: 0.5 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.3395/2.184, allocations: 8.678 MB / 0.7092 GB, free: 3.938 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0008734/2.185, allocations: 0.6571 MB / 0.7098 GB, free: 3.938 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003378/2.185, allocations: 235.5 kB / 0.7101 GB, free: 3.914 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003456/2.186, allocations: 254.7 kB / 0.7103 GB, free: 3.914 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002225/2.186, allocations: 240.6 kB / 0.7105 GB, free: 3.914 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 4.574e-05/2.186, allocations: 27.12 kB / 0.7106 GB, free: 3.914 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02948/2.215, allocations: 20.06 MB / 0.7302 GB, free: 3.824 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001564/2.216, allocations: 89.44 kB / 0.7303 GB, free: 3.824 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0004333/2.216, allocations: 267.1 kB / 0.7305 GB, free: 3.824 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.01113/2.227, allocations: 6.879 MB / 0.7372 GB, free: 2.191 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/2.227, allocations: 0 / 0.7372 GB, free: 2.191 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.192e-06/2.227, allocations: 0 / 0.7372 GB, free: 2.191 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.048e-05/2.227, allocations: 0 / 0.7372 GB, free: 2.191 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: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.005174/2.232, allocations: 1.961 MB / 0.7391 GB, free: 0.9258 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.7e-05/2.232, allocations: 11.7 kB / 0.7392 GB, free: 0.9258 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.781e-05/2.233, allocations: 61.72 kB / 0.7392 GB, free: 0.8945 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002629/2.233, allocations: 329.4 kB / 0.7395 GB, free: 0.625 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.75e-05/2.233, allocations: 62.42 kB / 0.7396 GB, free: 0.5938 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.016e-05/2.233, allocations: 41.88 kB / 0.7396 GB, free: 0.5898 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005903/2.233, allocations: 0.5475 MB / 0.7402 GB, free: 376 kB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.286e-05/2.233, allocations: 7.125 kB / 0.7402 GB, free: 376 kB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.197e-05/2.234, allocations: 18.38 kB / 0.7402 GB, free: 376 kB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.731e-05/2.234, allocations: 20.98 kB / 0.7402 GB, free: 372 kB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004174/2.234, allocations: 350.4 kB / 0.7405 GB, free: 336 kB / 0.5762 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.03381/2.268, allocations: 19.37 MB / 0.7595 GB, free: 1.973 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006924/2.269, allocations: 325.3 kB / 0.7598 GB, free: 1.918 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002528/2.269, allocations: 193.5 kB / 0.7599 GB, free: 1.898 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2773/2.546, allocations: 150.5 MB / 0.9069 GB, free: 1.023 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005107/2.547, allocations: 294.9 kB / 0.9072 GB, free: 0.793 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=71): time 2.394e-06/2.547, allocations: 4 kB / 0.9072 GB, free: 0.7891 MB / 0.7481 GB Notification: Performance of matching and sorting (n=71): time 0.002993/2.55, allocations: 1.105 MB / 0.9082 GB, free: 15.91 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.891e-05/2.55, allocations: 170 kB / 0.9084 GB, free: 15.71 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003756/2.55, allocations: 356.2 kB / 0.9087 GB, free: 15.43 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 2.752e-05/2.55, allocations: 32.33 kB / 0.9088 GB, free: 15.4 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.000143/2.55, allocations: 229.7 kB / 0.909 GB, free: 15.22 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001682/2.55, allocations: 230.4 kB / 0.9092 GB, free: 15.02 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001271/2.551, allocations: 97.16 kB / 0.9093 GB, free: 14.95 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001234/2.551, allocations: 356.2 kB / 0.9096 GB, free: 14.61 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002189/2.551, allocations: 148.5 kB / 0.9098 GB, free: 14.53 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002747/2.551, allocations: 244.7 kB / 0.91 GB, free: 14.34 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00368/2.555, allocations: 1.177 MB / 0.9112 GB, free: 13.37 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.476e-06/2.555, allocations: 0 / 0.9112 GB, free: 13.37 MB / 0.7637 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.0009218/2.556, allocations: 0.6547 MB / 0.9118 GB, free: 12.92 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 3.397e-05/2.556, allocations: 33.7 kB / 0.9118 GB, free: 12.88 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.425e-06/2.556, allocations: 0 / 0.9118 GB, free: 12.88 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002192/2.558, allocations: 0.6573 MB / 0.9125 GB, free: 12.27 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.902e-05/2.558, allocations: 22.89 kB / 0.9125 GB, free: 12.25 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009392/2.559, allocations: 0.9357 MB / 0.9134 GB, free: 11.47 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002957/2.559, allocations: 59.02 kB / 0.9135 GB, free: 11.41 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.009e-05/2.56, allocations: 19.19 kB / 0.9135 GB, free: 11.4 MB / 0.7637 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: 11 * Number of states: 0 () * Number of discrete variables: 12 (perteDP1.C2.b,perteDP1.C1.a,perteDP2.C2.b,perteDP2.C1.a,SwitchValve.C2.b,SwitchValve.C1.a,PuitsP1.C.a,SourceP1.C.b,$PRE.pulse.T0,pulse.yL.signal,pulse.T0,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 1 * 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 {(5,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0002311/2.56, allocations: 202.3 kB / 0.9137 GB, free: 11.21 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.81e-05/2.56, allocations: 39.44 kB / 0.9137 GB, free: 11.18 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001445/2.561, allocations: 1.142 MB / 0.9148 GB, free: 10.34 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0008749/2.562, allocations: 0.6941 MB / 0.9155 GB, free: 9.867 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/2.562, allocations: 0 / 0.9155 GB, free: 9.867 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.252e-06/2.562, allocations: 7.984 kB / 0.9155 GB, free: 9.859 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002066/2.564, allocations: 1.703 MB / 0.9172 GB, free: 8.574 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/2.564, allocations: 4.125 kB / 0.9172 GB, free: 8.57 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000151/2.564, allocations: 54.8 kB / 0.9172 GB, free: 8.52 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001892/2.566, allocations: 0.6687 MB / 0.9179 GB, free: 7.914 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.02e-05/2.566, allocations: 15 kB / 0.9179 GB, free: 7.906 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008776/2.567, allocations: 0.993 MB / 0.9189 GB, free: 7.082 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/2.567, allocations: 0 / 0.9189 GB, free: 7.082 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009048/2.568, allocations: 0.8263 MB / 0.9197 GB, free: 6.457 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001743/2.568, allocations: 166 kB / 0.9198 GB, free: 6.293 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.114e-05/2.568, allocations: 14.78 kB / 0.9199 GB, free: 6.285 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002484/2.569, allocations: 26.77 kB / 0.9199 GB, free: 6.266 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.162e-05/2.569, allocations: 31.83 kB / 0.9199 GB, free: 6.238 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.336e-05/2.569, allocations: 22.36 kB / 0.9199 GB, free: 6.223 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0002943/2.569, allocations: 316.6 kB / 0.9202 GB, free: 5.984 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.042e-06/2.569, allocations: 0 / 0.9202 GB, free: 5.984 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.004408/2.574, allocations: 1.546 MB / 0.9217 GB, free: 4.547 MB / 0.7637 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 (36): * Single equations (assignments): 34 * 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 {(5,14)} Notification: Performance of Backend phase and start with SimCode phase: time 0.008597/2.582, allocations: 2.353 MB / 0.924 GB, free: 2.551 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.001127/2.583, allocations: 0.6947 MB / 0.9247 GB, free: 2.004 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/2.583, allocations: 0 / 0.9247 GB, free: 2.004 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0006046/2.584, allocations: 362.9 kB / 0.9251 GB, free: 1.734 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001117/2.585, allocations: 239.6 kB / 0.9253 GB, free: 1.547 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001899/2.587, allocations: 1.368 MB / 0.9266 GB, free: 292 kB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004702/2.587, allocations: 0.8948 MB / 0.9275 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.841e-05/2.588, allocations: 46.8 kB / 0.9276 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of SimCode: time 6.01e-07/2.588, allocations: 0 / 0.9276 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of Templates: time 0.04761/2.635, allocations: 33.72 MB / 0.9605 GB, free: 13.78 MB / 0.8106 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve.makefile make -j1 -f ThermoSysPro_ThermoSysPro.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.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValveCalcHelperMain.o OMCppThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValveCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValveCalcHelperMain.o] Error 1