Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.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.Examples.SimpleExamples.TestSwitchValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSwitchValve") translateModel(ThermoSysPro.Examples.SimpleExamples.TestSwitchValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSwitchValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7844/0.7844, allocations: 150.8 MB / 166.6 MB, free: 14.54 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003198/0.0003198, allocations: 23.97 kB / 204.6 MB, free: 10.07 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1629/0.1632, allocations: 31.33 MB / 236 MB, free: 5.445 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.TestSwitchValve): time 1.577/1.74, allocations: 293.7 MB / 0.5172 GB, free: 12.83 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1911/1.931, allocations: 187.7 MB / 0.7006 GB, free: 0.7344 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003789/1.932, allocations: 4 kB / 0.7006 GB, free: 0.7305 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.000443/1.932, allocations: 109.2 kB / 0.7007 GB, free: 0.625 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0003883/1.933, allocations: 178.6 kB / 0.7008 GB, free: 460 kB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.3373/2.27, allocations: 8.675 MB / 0.7093 GB, free: 3.961 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001109/2.271, allocations: 0.6607 MB / 0.7099 GB, free: 3.961 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000392/2.271, allocations: 232.4 kB / 0.7102 GB, free: 3.938 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003757/2.272, allocations: 251.7 kB / 0.7104 GB, free: 3.938 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002677/2.272, allocations: 241.5 kB / 0.7106 GB, free: 3.938 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 5.363e-05/2.272, allocations: 28.03 kB / 0.7107 GB, free: 3.938 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03378/2.306, allocations: 20.07 MB / 0.7303 GB, free: 3.848 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001839/2.306, allocations: 87.69 kB / 0.7303 GB, free: 3.848 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0004811/2.307, allocations: 269.4 kB / 0.7306 GB, free: 3.848 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.01227/2.319, allocations: 6.878 MB / 0.7373 GB, free: 2.203 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/2.319, allocations: 0 / 0.7373 GB, free: 2.203 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.044e-06/2.319, allocations: 0 / 0.7373 GB, free: 2.203 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 7.975e-06/2.319, allocations: 0 / 0.7373 GB, free: 2.203 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.005727/2.325, allocations: 1.96 MB / 0.7392 GB, free: 0.9336 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.778e-05/2.325, allocations: 13.12 kB / 0.7392 GB, free: 0.9336 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001023/2.325, allocations: 60.78 kB / 0.7393 GB, free: 0.9023 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002971/2.325, allocations: 332.1 kB / 0.7396 GB, free: 0.6367 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.488e-05/2.325, allocations: 59.2 kB / 0.7397 GB, free: 0.6055 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.88e-05/2.325, allocations: 38.19 kB / 0.7397 GB, free: 0.6016 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006246/2.326, allocations: 0.557 MB / 0.7403 GB, free: 384 kB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.312e-05/2.326, allocations: 0 / 0.7403 GB, free: 384 kB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.137e-05/2.326, allocations: 13.38 kB / 0.7403 GB, free: 384 kB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.875e-05/2.326, allocations: 24.33 kB / 0.7403 GB, free: 380 kB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004249/2.326, allocations: 346.7 kB / 0.7406 GB, free: 344 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.03458/2.361, allocations: 19.38 MB / 0.7595 GB, free: 1.98 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006912/2.362, allocations: 318.9 kB / 0.7599 GB, free: 1.93 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002327/2.362, allocations: 194.3 kB / 0.76 GB, free: 1.91 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2747/2.637, allocations: 150.5 MB / 0.907 GB, free: 1.027 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006273/2.637, allocations: 289.3 kB / 0.9072 GB, free: 0.7969 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=71): time 2.344e-06/2.637, allocations: 0 / 0.9072 GB, free: 0.7969 MB / 0.7481 GB Notification: Performance of matching and sorting (n=71): time 0.003136/2.641, allocations: 1.111 MB / 0.9083 GB, free: 15.92 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.573e-05/2.641, allocations: 169.3 kB / 0.9085 GB, free: 15.72 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003742/2.641, allocations: 358.6 kB / 0.9088 GB, free: 15.43 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 2.565e-05/2.641, allocations: 29.33 kB / 0.9089 GB, free: 15.4 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001635/2.641, allocations: 228.9 kB / 0.9091 GB, free: 15.22 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001422/2.641, allocations: 226.1 kB / 0.9093 GB, free: 15.03 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001328/2.642, allocations: 93.72 kB / 0.9094 GB, free: 14.96 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001434/2.642, allocations: 364.9 kB / 0.9097 GB, free: 14.62 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002285/2.642, allocations: 148 kB / 0.9099 GB, free: 14.54 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002716/2.642, allocations: 237.3 kB / 0.9101 GB, free: 14.34 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003659/2.646, allocations: 1.178 MB / 0.9113 GB, free: 13.37 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/2.646, allocations: 3.844 kB / 0.9113 GB, free: 13.37 MB / 0.7637 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.000919/2.647, allocations: 0.6567 MB / 0.9119 GB, free: 12.92 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 4.303e-05/2.647, allocations: 37.27 kB / 0.9119 GB, free: 12.88 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.919e-06/2.647, allocations: 0 / 0.9119 GB, free: 12.88 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002167/2.649, allocations: 0.6541 MB / 0.9126 GB, free: 12.28 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000102/2.649, allocations: 25.77 kB / 0.9126 GB, free: 12.25 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009418/2.65, allocations: 0.9309 MB / 0.9135 GB, free: 11.47 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002943/2.65, allocations: 62.27 kB / 0.9136 GB, free: 11.41 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.994e-05/2.65, allocations: 12 kB / 0.9136 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.0002744/2.651, allocations: 217 kB / 0.9138 GB, free: 11.21 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.441e-05/2.651, allocations: 39.44 kB / 0.9138 GB, free: 11.18 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001478/2.652, allocations: 1.137 MB / 0.9149 GB, free: 10.35 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0008983/2.653, allocations: 0.6936 MB / 0.9156 GB, free: 9.867 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.321e-06/2.653, allocations: 0 / 0.9156 GB, free: 9.867 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.182e-06/2.653, allocations: 7.984 kB / 0.9156 GB, free: 9.859 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002088/2.655, allocations: 1.697 MB / 0.9173 GB, free: 8.582 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.041e-06/2.655, allocations: 4.125 kB / 0.9173 GB, free: 8.578 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001525/2.656, allocations: 54.08 kB / 0.9173 GB, free: 8.531 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001913/2.657, allocations: 0.6805 MB / 0.918 GB, free: 7.914 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.812e-05/2.657, allocations: 11 kB / 0.918 GB, free: 7.91 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009119/2.658, allocations: 0.9867 MB / 0.919 GB, free: 7.086 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/2.658, allocations: 0 / 0.919 GB, free: 7.086 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000934/2.659, allocations: 0.8298 MB / 0.9198 GB, free: 6.461 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001725/2.66, allocations: 162.3 kB / 0.9199 GB, free: 6.297 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.979e-05/2.66, allocations: 17.97 kB / 0.9199 GB, free: 6.289 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002433/2.66, allocations: 24.67 kB / 0.92 GB, free: 6.27 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.809e-05/2.66, allocations: 35.39 kB / 0.92 GB, free: 6.242 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.7e-05/2.66, allocations: 15.23 kB / 0.92 GB, free: 6.23 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0003099/2.66, allocations: 316.5 kB / 0.9203 GB, free: 5.992 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.3e-07/2.66, allocations: 0 / 0.9203 GB, free: 5.992 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.004508/2.665, allocations: 1.548 MB / 0.9218 GB, free: 4.551 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.007451/2.672, allocations: 2.352 MB / 0.9241 GB, free: 2.551 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.00136/2.674, allocations: 0.6923 MB / 0.9248 GB, free: 2.004 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/2.674, allocations: 0 / 0.9248 GB, free: 2.004 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.000671/2.674, allocations: 366.7 kB / 0.9252 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.001242/2.676, allocations: 234.8 kB / 0.9254 GB, free: 1.551 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001941/2.678, allocations: 1.361 MB / 0.9267 GB, free: 300 kB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004931/2.678, allocations: 0.8978 MB / 0.9276 GB, free: 15.37 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.64e-05/2.678, allocations: 50.98 kB / 0.9276 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of SimCode: time 1.442e-06/2.678, allocations: 0 / 0.9276 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of Templates: time 0.04788/2.726, allocations: 33.72 MB / 0.9606 GB, free: 13.78 MB / 0.8106 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSwitchValve.makefile make -j1 -f ThermoSysPro_ThermoSysPro.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.Examples.SimpleExamples.TestSwitchValveCalcHelperMain.o OMCppThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSwitchValveCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSwitchValveCalcHelperMain.o] Error 1