Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.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.Book.SimpleExamples.PressureLoss.TestCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve") translateModel(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8359/0.8359, allocations: 150.9 MB / 166.6 MB, free: 14.72 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003175/0.0003175, allocations: 19.97 kB / 204.7 MB, free: 10.13 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1938/0.1941, allocations: 31.32 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.Book.SimpleExamples.PressureLoss.TestCheckValve): time 1.756/1.95, allocations: 292.7 MB / 0.5163 GB, free: 13.75 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.2148/2.165, allocations: 188.4 MB / 0.7003 GB, free: 0.9648 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004721/2.166, allocations: 7.938 kB / 0.7003 GB, free: 0.957 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/CheckValve.mo:37:3-38:68: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/CheckValve.mo:39:3-40:66: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.0002427/2.166, allocations: 36.56 kB / 0.7003 GB, free: 0.9219 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0005964/2.166, allocations: 95.22 kB / 0.7004 GB, free: 0.8281 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.4675/2.634, allocations: 8.642 MB / 0.7089 GB, free: 4.227 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0005788/2.635, allocations: 392.9 kB / 0.7092 GB, free: 4.227 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002978/2.635, allocations: 203.8 kB / 0.7094 GB, free: 4.215 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002072/2.635, allocations: 145.8 kB / 0.7096 GB, free: 4.215 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002109/2.635, allocations: 173.6 kB / 0.7097 GB, free: 4.215 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 5.874e-05/2.635, allocations: 28.41 kB / 0.7098 GB, free: 4.215 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03698/2.672, allocations: 19.9 MB / 0.7292 GB, free: 4.141 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001933/2.673, allocations: 73.55 kB / 0.7293 GB, free: 4.141 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003658/2.673, allocations: 182.9 kB / 0.7294 GB, free: 4.141 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.01416/2.687, allocations: 6.766 MB / 0.7361 GB, free: 2.953 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 6.812e-06/2.687, allocations: 3.031 kB / 0.7361 GB, free: 2.953 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.043e-06/2.687, allocations: 0 / 0.7361 GB, free: 2.953 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 7.313e-06/2.687, allocations: 0 / 0.7361 GB, free: 2.953 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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.005997/2.693, allocations: 1.79 MB / 0.7378 GB, free: 1.801 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.299e-05/2.693, allocations: 9.969 kB / 0.7378 GB, free: 1.801 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.793e-05/2.693, allocations: 43.81 kB / 0.7379 GB, free: 1.781 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002933/2.694, allocations: 293.6 kB / 0.7381 GB, free: 1.527 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.086e-05/2.694, allocations: 53.17 kB / 0.7382 GB, free: 1.496 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.032e-05/2.694, allocations: 39.19 kB / 0.7382 GB, free: 1.496 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005466/2.694, allocations: 380.8 kB / 0.7386 GB, free: 1.34 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.231e-05/2.694, allocations: 0 / 0.7386 GB, free: 1.34 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.964e-05/2.694, allocations: 14.81 kB / 0.7386 GB, free: 1.34 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.024e-05/2.694, allocations: 10.16 kB / 0.7386 GB, free: 1.34 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004403/2.695, allocations: 254.5 kB / 0.7389 GB, free: 1.305 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001575/2.696, allocations: 1.942 MB / 0.7408 GB, free: 15.6 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000242/2.697, allocations: 102 kB / 0.7409 GB, free: 15.56 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001156/2.697, allocations: 60.33 kB / 0.7409 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2347/2.932, allocations: 122.5 MB / 0.8606 GB, free: 3.605 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003455/2.932, allocations: 124.6 kB / 0.8607 GB, free: 3.492 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=16): time 4.9e-06/2.932, allocations: 3.984 kB / 0.8607 GB, free: 3.488 MB / 0.7012 GB Notification: Performance of matching and sorting (n=16): time 0.001065/2.933, allocations: 345.6 kB / 0.861 GB, free: 3.172 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.879e-05/2.933, allocations: 55.41 kB / 0.8611 GB, free: 3.105 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004371/2.934, allocations: 271.2 kB / 0.8613 GB, free: 2.883 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 2.644e-05/2.934, allocations: 33.44 kB / 0.8614 GB, free: 2.848 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002168/2.934, allocations: 226.9 kB / 0.8616 GB, free: 2.66 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 5.249e-05/2.934, allocations: 46 kB / 0.8616 GB, free: 2.625 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001386/2.934, allocations: 70.41 kB / 0.8617 GB, free: 2.57 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001628/2.934, allocations: 333.2 kB / 0.862 GB, free: 2.246 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001732/2.934, allocations: 68.23 kB / 0.8621 GB, free: 2.199 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002618/2.935, allocations: 184.4 kB / 0.8622 GB, free: 1.996 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001567/2.936, allocations: 474.2 kB / 0.8627 GB, free: 1.57 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.953e-06/2.936, allocations: 4 kB / 0.8627 GB, free: 1.566 MB / 0.7012 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0006982/2.937, allocations: 313.5 kB / 0.863 GB, free: 1.332 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 2.398e-05/2.937, allocations: 10.81 kB / 0.863 GB, free: 1.324 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.241e-05/2.937, allocations: 7.938 kB / 0.863 GB, free: 1.316 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006196/2.938, allocations: 95.27 kB / 0.8631 GB, free: 1.23 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000178/2.938, allocations: 49.09 kB / 0.8631 GB, free: 1.191 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004951/2.938, allocations: 0.5609 MB / 0.8637 GB, free: 0.625 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002544/2.939, allocations: 38.55 kB / 0.8637 GB, free: 0.5938 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.394e-05/2.939, allocations: 12 kB / 0.8637 GB, free: 0.582 MB / 0.7012 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: 18 * Number of states: 0 () * Number of discrete variables: 17 ($PRE.checkValve3.touvert,$whenCondition3,$PRE.checkValve3.tferme,$whenCondition2,$whenCondition1,sourceP1.C.ftype,$PRE.pulse.T0,puitsP1.fluid,checkValve3.fluid,checkValve3.tferme,checkValve3.touvert,checkValve3.ouvert,$PRE.checkValve3.ouvert,pulse.T0,sourceP1.fluid1,sourceP1.C.diff_on_2,checkValve3.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * 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 {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0002609/2.939, allocations: 165.7 kB / 0.8639 GB, free: 448 kB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.321e-05/2.939, allocations: 27.78 kB / 0.8639 GB, free: 420 kB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005441/2.94, allocations: 233.8 kB / 0.8642 GB, free: 228 kB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.732e-06/2.94, allocations: 5.203 kB / 0.8642 GB, free: 224 kB / 0.7012 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/2.94, allocations: 0 / 0.8642 GB, free: 224 kB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/2.94, allocations: 3.984 kB / 0.8642 GB, free: 220 kB / 0.7012 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004592/2.94, allocations: 335.3 kB / 0.8645 GB, free: 15.9 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.941e-06/2.94, allocations: 4 kB / 0.8645 GB, free: 15.89 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.969e-05/2.94, allocations: 14.98 kB / 0.8645 GB, free: 15.88 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005725/2.941, allocations: 91.77 kB / 0.8646 GB, free: 15.8 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.724e-05/2.941, allocations: 3.125 kB / 0.8646 GB, free: 15.8 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000421/2.941, allocations: 0.55 MB / 0.8651 GB, free: 15.24 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/2.941, allocations: 4.109 kB / 0.8651 GB, free: 15.24 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004947/2.942, allocations: 242.4 kB / 0.8654 GB, free: 15.02 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 9.699e-05/2.942, allocations: 104.8 kB / 0.8655 GB, free: 14.9 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.55e-05/2.942, allocations: 3.625 kB / 0.8655 GB, free: 14.9 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001151/2.942, allocations: 15.36 kB / 0.8655 GB, free: 14.89 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.989e-05/2.942, allocations: 7.984 kB / 0.8655 GB, free: 14.88 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.484e-05/2.942, allocations: 11.98 kB / 0.8655 GB, free: 14.87 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0002363/2.942, allocations: 201 kB / 0.8657 GB, free: 14.71 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.51e-07/2.942, allocations: 0 / 0.8657 GB, free: 14.71 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.005926/2.948, allocations: 1.456 MB / 0.8671 GB, free: 13.36 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition3,$whenCondition2,$whenCondition1,pulse.T0,checkValve3.ouvert,checkValve3.touvert,checkValve3.tferme) * Number of discrete states: 2 (checkValve3.touvert,checkValve3.tferme) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01082/2.959, allocations: 2.267 MB / 0.8693 GB, free: 11.43 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0006228/2.96, allocations: 180.6 kB / 0.8695 GB, free: 11.31 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/2.96, allocations: 0 / 0.8695 GB, free: 11.31 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002156/2.96, allocations: 80.75 kB / 0.8696 GB, free: 11.25 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004608/2.96, allocations: 64.78 kB / 0.8696 GB, free: 11.2 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001409/2.962, allocations: 0.6605 MB / 0.8703 GB, free: 10.54 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004348/2.962, allocations: 0.7675 MB / 0.871 GB, free: 9.746 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.304e-05/2.962, allocations: 27.44 kB / 0.8711 GB, free: 9.719 MB / 0.7169 GB Notification: Performance of SimCode: time 1.403e-06/2.962, allocations: 0 / 0.8711 GB, free: 9.719 MB / 0.7169 GB Notification: Performance of Templates: time 0.05337/3.016, allocations: 29.22 MB / 0.8996 GB, free: 12.62 MB / 0.7481 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.makefile make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.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.Book.SimpleExamples.PressureLoss.TestCheckValveCalcHelperMain.o OMCppThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestCheckValveCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestCheckValveCalcHelperMain.o] Error 1