Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestIdealSwitchValve.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.TestIdealSwitchValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestIdealSwitchValve") translateModel(ThermoSysPro.Examples.SimpleExamples.TestIdealSwitchValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestIdealSwitchValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8205/0.8205, allocations: 150.8 MB / 166.6 MB, free: 14.63 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003066/0.0003066, allocations: 15.97 kB / 204.7 MB, free: 10.13 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1982/0.1985, allocations: 31.33 MB / 236 MB, free: 5.707 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.TestIdealSwitchValve): time 1.749/1.947, allocations: 293.5 MB / 0.517 GB, free: 13.23 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.2156/2.163, allocations: 187.7 MB / 0.7003 GB, free: 1.176 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004276/2.163, allocations: 4 kB / 0.7003 GB, free: 1.172 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/IdealSwitchValve.mo:23:3-25: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/IdealSwitchValve.mo:26:3-28: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.0004787/2.164, allocations: 104.3 kB / 0.7004 GB, free: 1.07 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0003557/2.164, allocations: 146.8 kB / 0.7005 GB, free: 0.9258 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.4375/2.602, allocations: 8.661 MB / 0.709 GB, free: 4.344 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0009513/2.603, allocations: 0.5853 MB / 0.7096 GB, free: 4.344 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003351/2.603, allocations: 218.9 kB / 0.7098 GB, free: 4.324 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00039/2.604, allocations: 232 kB / 0.71 GB, free: 4.324 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002696/2.604, allocations: 223.1 kB / 0.7102 GB, free: 4.324 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 5.829e-05/2.604, allocations: 29.31 kB / 0.7103 GB, free: 4.324 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03633/2.64, allocations: 20.07 MB / 0.7298 GB, free: 4.234 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001838/2.64, allocations: 79.75 kB / 0.7299 GB, free: 4.234 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0004747/2.641, allocations: 248.1 kB / 0.7302 GB, free: 4.234 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.01418/2.655, allocations: 6.843 MB / 0.7368 GB, free: 2.832 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 8.166e-06/2.655, allocations: 0 / 0.7368 GB, free: 2.832 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.813e-06/2.655, allocations: 0 / 0.7368 GB, free: 2.832 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 8.055e-06/2.655, allocations: 0 / 0.7368 GB, free: 2.832 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: 131 * Number of variables: 131 Notification: Performance of Generate backend data structure: time 0.006433/2.662, allocations: 1.914 MB / 0.7387 GB, free: 1.598 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.535e-05/2.662, allocations: 10.12 kB / 0.7387 GB, free: 1.598 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.647e-05/2.662, allocations: 56.11 kB / 0.7388 GB, free: 1.566 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000282/2.662, allocations: 319.5 kB / 0.7391 GB, free: 1.301 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.427e-05/2.662, allocations: 52.73 kB / 0.7391 GB, free: 1.27 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.486e-05/2.662, allocations: 44.97 kB / 0.7392 GB, free: 1.266 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006267/2.663, allocations: 0.5104 MB / 0.7397 GB, free: 1.047 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.482e-05/2.663, allocations: 6.891 kB / 0.7397 GB, free: 1.043 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.446e-05/2.663, allocations: 18.56 kB / 0.7397 GB, free: 1.043 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.832e-05/2.663, allocations: 21.11 kB / 0.7397 GB, free: 1.039 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004113/2.663, allocations: 310.1 kB / 0.74 GB, free: 1.008 MB / 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.03702/2.7, allocations: 19.19 MB / 0.7588 GB, free: 2.789 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008168/2.701, allocations: 306 kB / 0.759 GB, free: 2.738 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002979/2.702, allocations: 175.1 kB / 0.7592 GB, free: 2.715 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2944/2.996, allocations: 150.4 MB / 0.9061 GB, free: 2.148 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006375/2.997, allocations: 265.2 kB / 0.9064 GB, free: 1.93 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=60): time 4.048e-06/2.997, allocations: 0 / 0.9064 GB, free: 1.93 MB / 0.7481 GB Notification: Performance of matching and sorting (n=60): time 0.002831/3, allocations: 0.9219 MB / 0.9073 GB, free: 1.191 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001221/3, allocations: 169 kB / 0.9074 GB, free: 0.9961 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005342/3, allocations: 339.6 kB / 0.9078 GB, free: 0.7227 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 3.794e-05/3, allocations: 33.08 kB / 0.9078 GB, free: 0.6875 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002266/3.001, allocations: 221.6 kB / 0.908 GB, free: 0.5117 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002079/3.001, allocations: 197 kB / 0.9082 GB, free: 352 kB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001909/3.001, allocations: 85.38 kB / 0.9083 GB, free: 288 kB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0002176/3.001, allocations: 353.5 kB / 0.9086 GB, free: 15.95 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002525/3.001, allocations: 136.4 kB / 0.9087 GB, free: 15.87 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003122/3.002, allocations: 223 kB / 0.909 GB, free: 15.68 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003533/3.005, allocations: 1.04 MB / 0.91 GB, free: 14.82 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.462e-06/3.005, allocations: 4 kB / 0.91 GB, free: 14.82 MB / 0.7637 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001086/3.006, allocations: 0.5827 MB / 0.9105 GB, free: 14.42 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 7.222e-05/3.006, allocations: 38.89 kB / 0.9106 GB, free: 14.38 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.871e-05/3.007, allocations: 7.219 kB / 0.9106 GB, free: 14.37 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001856/3.008, allocations: 475.5 kB / 0.911 GB, free: 13.95 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001315/3.009, allocations: 26.89 kB / 0.9111 GB, free: 13.92 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001105/3.01, allocations: 0.8445 MB / 0.9119 GB, free: 13.19 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004015/3.01, allocations: 50.56 kB / 0.9119 GB, free: 13.14 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.006e-05/3.01, allocations: 19.8 kB / 0.912 GB, free: 13.12 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,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0004003/3.011, allocations: 199.9 kB / 0.9122 GB, free: 12.95 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001181/3.011, allocations: 43.44 kB / 0.9122 GB, free: 12.91 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001575/3.012, allocations: 0.9354 MB / 0.9131 GB, free: 12.18 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0008667/3.013, allocations: 0.5456 MB / 0.9136 GB, free: 11.8 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.313e-06/3.013, allocations: 0 / 0.9136 GB, free: 11.8 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.837e-06/3.013, allocations: 0 / 0.9136 GB, free: 11.8 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002475/3.016, allocations: 1.414 MB / 0.915 GB, free: 10.7 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.558e-06/3.016, allocations: 0 / 0.915 GB, free: 10.7 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001312/3.016, allocations: 42.27 kB / 0.9151 GB, free: 10.66 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001459/3.017, allocations: 473.1 kB / 0.9155 GB, free: 10.25 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.211e-05/3.017, allocations: 7.812 kB / 0.9155 GB, free: 10.24 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009605/3.018, allocations: 0.9001 MB / 0.9164 GB, free: 9.469 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/3.018, allocations: 0 / 0.9164 GB, free: 9.469 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0012/3.019, allocations: 0.7064 MB / 0.9171 GB, free: 8.918 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002221/3.02, allocations: 146.8 kB / 0.9172 GB, free: 8.766 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.636e-05/3.02, allocations: 18.84 kB / 0.9172 GB, free: 8.754 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002461/3.02, allocations: 22.89 kB / 0.9173 GB, free: 8.738 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001052/3.02, allocations: 31.52 kB / 0.9173 GB, free: 8.711 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.526e-05/3.02, allocations: 15.31 kB / 0.9173 GB, free: 8.699 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0003657/3.021, allocations: 304.6 kB / 0.9176 GB, free: 8.469 MB / 0.7637 GB Notification: Performance of sort global known variables: time 4e-07/3.021, allocations: 1.094 kB / 0.9176 GB, free: 8.469 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.006524/3.027, allocations: 1.53 MB / 0.9191 GB, free: 7.047 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 (26): * Single equations (assignments): 24 * 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,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01285/3.04, allocations: 2.362 MB / 0.9214 GB, free: 5.027 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.001635/3.042, allocations: 0.559 MB / 0.922 GB, free: 4.594 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 5.44e-06/3.042, allocations: 0 / 0.922 GB, free: 4.594 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0006903/3.042, allocations: 307.3 kB / 0.9222 GB, free: 4.363 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001266/3.044, allocations: 194.2 kB / 0.9224 GB, free: 4.211 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002071/3.046, allocations: 1.155 MB / 0.9236 GB, free: 3.125 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005419/3.046, allocations: 0.8596 MB / 0.9244 GB, free: 2.238 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00011/3.046, allocations: 38.73 kB / 0.9244 GB, free: 2.203 MB / 0.7637 GB Notification: Performance of SimCode: time 2.91e-07/3.046, allocations: 0 / 0.9244 GB, free: 2.203 MB / 0.7637 GB Notification: Performance of Templates: time 0.05713/3.104, allocations: 32.62 MB / 0.9563 GB, free: 1.75 MB / 0.795 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestIdealSwitchValve.makefile make -j1 -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestIdealSwitchValve.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.TestIdealSwitchValveCalcHelperMain.o OMCppThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestIdealSwitchValveCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestIdealSwitchValveCalcHelperMain.o] Error 1