Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.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.Fluid.Examples.SimpleExamples.TestIdealSwitchValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestIdealSwitchValve") translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestIdealSwitchValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestIdealSwitchValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8627/0.8627, allocations: 150.9 MB / 166.6 MB, free: 14.5 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003241/0.0003241, allocations: 15.98 kB / 204.7 MB, free: 10.07 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1848/0.1852, allocations: 31.33 MB / 236 MB, free: 5.438 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.TestIdealSwitchValve): time 1.743/1.928, allocations: 293.8 MB / 0.5173 GB, free: 12.46 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.6671/2.595, allocations: 195.1 MB / 0.7078 GB, free: 3.898 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004775/2.596, allocations: 10.16 kB / 0.7078 GB, free: 3.898 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/IdealSwitchValve.mo:22:3-24:37: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/IdealSwitchValve.mo:25:3-26:53: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.0002316/2.596, allocations: 57.06 kB / 0.7079 GB, free: 3.898 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0005091/2.596, allocations: 190.6 kB / 0.7081 GB, free: 3.898 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.03394/2.63, allocations: 10.22 MB / 0.718 GB, free: 3.734 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001159/2.632, allocations: 0.7616 MB / 0.7188 GB, free: 3.734 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004232/2.632, allocations: 391.2 kB / 0.7192 GB, free: 3.691 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003809/2.632, allocations: 306.6 kB / 0.7195 GB, free: 3.691 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003551/2.633, allocations: 357.3 kB / 0.7198 GB, free: 3.691 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 8.318e-05/2.633, allocations: 54.75 kB / 0.7198 GB, free: 3.691 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04978/2.683, allocations: 22.41 MB / 0.7417 GB, free: 2.887 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.000497/2.683, allocations: 151.1 kB / 0.7419 GB, free: 2.859 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0007866/2.684, allocations: 360.8 kB / 0.7422 GB, free: 2.836 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02327/2.707, allocations: 8.194 MB / 0.7502 GB, free: 0 / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 1.074e-05/2.707, allocations: 192 / 0.7502 GB, free: 0 / 0.5762 GB Notification: Performance of FrontEnd: time 3.437e-06/2.707, allocations: 64 / 0.7502 GB, free: 0 / 0.5762 GB Notification: Performance of Transformations before backend: time 4.953e-05/2.707, allocations: 1.203 kB / 0.7502 GB, free: 0 / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 172 * Number of variables: 172 Notification: Performance of Generate backend data structure: time 0.009042/2.716, allocations: 2.396 MB / 0.7526 GB, free: 14.47 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.594e-05/2.717, allocations: 8.656 kB / 0.7526 GB, free: 14.47 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002841/2.717, allocations: 83 kB / 0.7526 GB, free: 14.43 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007214/2.718, allocations: 428.8 kB / 0.7531 GB, free: 14.12 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.495e-05/2.718, allocations: 77.7 kB / 0.7531 GB, free: 14.08 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001018/2.718, allocations: 67.19 kB / 0.7532 GB, free: 14.08 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001291/2.719, allocations: 0.6768 MB / 0.7539 GB, free: 13.87 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.249e-05/2.719, allocations: 2.906 kB / 0.7539 GB, free: 13.87 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.001e-05/2.719, allocations: 30.75 kB / 0.7539 GB, free: 13.87 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.765e-05/2.719, allocations: 15.28 kB / 0.7539 GB, free: 13.87 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001026/2.72, allocations: 0.5565 MB / 0.7544 GB, free: 13.8 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.01118/2.731, allocations: 7.42 MB / 0.7617 GB, free: 7.613 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000908/2.732, allocations: 357.3 kB / 0.762 GB, free: 7.551 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002544/2.733, allocations: 133.7 kB / 0.7622 GB, free: 7.527 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.6704/3.403, allocations: 221.8 MB / 0.9787 GB, free: 453 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004905/3.404, allocations: 209.5 kB / 0.9789 GB, free: 452.9 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=35): time 2.214e-06/3.404, allocations: 0 / 0.9789 GB, free: 452.9 MB / 0.8106 GB Notification: Performance of matching and sorting (n=35): time 0.002566/3.406, allocations: 0.8314 MB / 0.9797 GB, free: 452.7 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.608e-05/3.406, allocations: 112.6 kB / 0.9798 GB, free: 452.6 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005312/3.407, allocations: 436.1 kB / 0.9803 GB, free: 452.5 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.586e-05/3.407, allocations: 30.58 kB / 0.9803 GB, free: 452.5 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002143/3.407, allocations: 329.2 kB / 0.9806 GB, free: 452.3 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 7.379e-05/3.407, allocations: 122.8 kB / 0.9807 GB, free: 452.3 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001581/3.407, allocations: 111.2 kB / 0.9808 GB, free: 452.2 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.163e-05/3.407, allocations: 355.4 kB / 0.9812 GB, free: 451.9 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002197/3.408, allocations: 115 kB / 0.9813 GB, free: 451.9 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002891/3.408, allocations: 234.4 kB / 0.9815 GB, free: 451.8 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004094/3.412, allocations: 1.137 MB / 0.9826 GB, free: 451.5 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/3.412, allocations: 2.25 kB / 0.9826 GB, free: 451.5 MB / 0.8106 GB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0008561/3.413, allocations: 0.5612 MB / 0.9832 GB, free: 451.4 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 3.343e-05/3.413, allocations: 39.3 kB / 0.9832 GB, free: 451.4 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/3.413, allocations: 5.375 kB / 0.9832 GB, free: 451.4 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001553/3.414, allocations: 290.1 kB / 0.9835 GB, free: 451.4 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002291/3.415, allocations: 72.84 kB / 0.9836 GB, free: 451.4 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005059/3.415, allocations: 0.7029 MB / 0.9842 GB, free: 450.9 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002894/3.416, allocations: 52.42 kB / 0.9843 GB, free: 450.8 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.199e-05/3.416, allocations: 15 kB / 0.9843 GB, free: 450.8 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: 11 (SourceP1.C.ftype,$PRE.pulse.T0,PuitsP1.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 (43): * Single equations (assignments): 41 * 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,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0002598/3.416, allocations: 236.6 kB / 0.9845 GB, free: 450.7 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.155e-05/3.416, allocations: 50.53 kB / 0.9846 GB, free: 450.6 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001017/3.417, allocations: 0.5344 MB / 0.9851 GB, free: 450.6 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.772e-06/3.417, allocations: 4.109 kB / 0.9851 GB, free: 450.6 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/3.417, allocations: 3.469 kB / 0.9851 GB, free: 450.6 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/3.417, allocations: 5.375 kB / 0.9851 GB, free: 450.6 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005049/3.417, allocations: 0.5379 MB / 0.9856 GB, free: 450.3 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/3.417, allocations: 7.156 kB / 0.9856 GB, free: 450.3 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001281/3.418, allocations: 31.67 kB / 0.9857 GB, free: 450.3 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001219/3.419, allocations: 259.8 kB / 0.9859 GB, free: 450.3 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.6e-05/3.419, allocations: 12.84 kB / 0.9859 GB, free: 450.3 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000478/3.419, allocations: 0.7148 MB / 0.9866 GB, free: 449.8 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/3.419, allocations: 2.781 kB / 0.9866 GB, free: 449.8 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008172/3.42, allocations: 485.1 kB / 0.9871 GB, free: 449.7 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001483/3.42, allocations: 172.5 kB / 0.9873 GB, free: 449.5 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.129e-05/3.42, allocations: 8.281 kB / 0.9873 GB, free: 449.5 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001788/3.421, allocations: 14.8 kB / 0.9873 GB, free: 449.5 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001062/3.421, allocations: 24.16 kB / 0.9873 GB, free: 449.5 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.6e-05/3.421, allocations: 13.31 kB / 0.9873 GB, free: 449.5 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0003617/3.421, allocations: 320.2 kB / 0.9876 GB, free: 449.4 MB / 0.8106 GB Notification: Performance of sort global known variables: time 2.8e-07/3.421, allocations: 0 / 0.9876 GB, free: 449.4 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.007513/3.429, allocations: 1.873 MB / 0.9895 GB, free: 449.4 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 (20): * Single equations (assignments): 18 * 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 Backend phase and start with SimCode phase: time 0.007993/3.437, allocations: 2.943 MB / 0.9923 GB, free: 449.2 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0007613/3.437, allocations: 399.4 kB / 0.9927 GB, free: 449.1 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/3.437, allocations: 4.188 kB / 0.9927 GB, free: 449.1 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0003775/3.438, allocations: 225.1 kB / 0.9929 GB, free: 449.1 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005163/3.438, allocations: 97.84 kB / 0.993 GB, free: 449 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001532/3.44, allocations: 1.198 MB / 0.9942 GB, free: 448.3 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003196/3.44, allocations: 0.8793 MB / 0.9951 GB, free: 447.6 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001041/3.44, allocations: 47.62 kB / 0.9951 GB, free: 447.6 MB / 0.8106 GB Notification: Performance of SimCode: time 2.51e-07/3.44, allocations: 2.844 kB / 0.9951 GB, free: 447.6 MB / 0.8106 GB Notification: Performance of Templates: time 0.05895/3.499, allocations: 37.74 MB / 1.032 GB, free: 428.6 MB / 0.8106 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestIdealSwitchValve.makefile make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.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.Fluid.Examples.SimpleExamples.TestIdealSwitchValveCalcHelperMain.o OMCppThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestIdealSwitchValveCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestIdealSwitchValveCalcHelperMain.o] Error 1