Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.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.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve") translateModel(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8218/0.8218, allocations: 150.9 MB / 166.6 MB, free: 14.38 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003269/0.0003269, allocations: 11.98 kB / 204.7 MB, free: 9.656 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2111/0.2114, allocations: 31.32 MB / 236 MB, free: 5.492 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.TestDynamicCheckValve): time 1.727/1.939, allocations: 292.9 MB / 0.5165 GB, free: 13.58 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.2198/2.159, allocations: 188.8 MB / 0.7009 GB, free: 376 kB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000417/2.159, allocations: 7.938 kB / 0.7009 GB, free: 368 kB / 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/DynamicCheckValve.mo:56:3-57: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/DynamicCheckValve.mo:58:3-59: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.0002547/2.159, allocations: 47.67 kB / 0.7009 GB, free: 320 kB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0003949/2.16, allocations: 135 kB / 0.7011 GB, free: 184 kB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.4109/2.571, allocations: 8.754 MB / 0.7096 GB, free: 3.73 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0008429/2.572, allocations: 472.5 kB / 0.7101 GB, free: 3.73 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003797/2.572, allocations: 239.3 kB / 0.7103 GB, free: 3.707 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002892/2.572, allocations: 179.9 kB / 0.7105 GB, free: 3.707 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002906/2.573, allocations: 213.7 kB / 0.7107 GB, free: 3.707 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 5.445e-05/2.573, allocations: 30.48 kB / 0.7107 GB, free: 3.707 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03674/2.609, allocations: 19.92 MB / 0.7301 GB, free: 3.617 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002422/2.61, allocations: 82.69 kB / 0.7302 GB, free: 3.617 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003678/2.61, allocations: 211.9 kB / 0.7304 GB, free: 3.617 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0136/2.624, allocations: 6.812 MB / 0.7371 GB, free: 2.047 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 7.755e-06/2.624, allocations: 0 / 0.7371 GB, free: 2.047 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.525e-06/2.624, allocations: 0 / 0.7371 GB, free: 2.047 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.549e-05/2.624, allocations: 1.203 kB / 0.7371 GB, free: 2.047 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: 95 * Number of variables: 95 Notification: Performance of Generate backend data structure: time 0.006414/2.63, allocations: 1.852 MB / 0.7389 GB, free: 0.8633 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.781e-05/2.63, allocations: 10.16 kB / 0.7389 GB, free: 0.8633 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001558/2.63, allocations: 54.53 kB / 0.7389 GB, free: 0.8359 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004093/2.631, allocations: 335.3 kB / 0.7393 GB, free: 0.5625 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.78e-05/2.631, allocations: 57.89 kB / 0.7393 GB, free: 0.5312 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.943e-05/2.631, allocations: 34.31 kB / 0.7393 GB, free: 0.5312 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006554/2.632, allocations: 409.5 kB / 0.7397 GB, free: 388 kB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.867e-05/2.632, allocations: 0.8125 kB / 0.7397 GB, free: 388 kB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.664e-05/2.632, allocations: 27.73 kB / 0.7398 GB, free: 380 kB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.277e-05/2.632, allocations: 10.22 kB / 0.7398 GB, free: 380 kB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005439/2.632, allocations: 282.7 kB / 0.74 GB, free: 336 kB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002153/2.634, allocations: 2.018 MB / 0.742 GB, free: 14.6 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005845/2.635, allocations: 220.5 kB / 0.7422 GB, free: 14.54 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000153/2.635, allocations: 84.25 kB / 0.7423 GB, free: 14.52 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2449/2.88, allocations: 122.5 MB / 0.862 GB, free: 2.105 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004369/2.881, allocations: 141.6 kB / 0.8621 GB, free: 1.988 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=21): time 3.847e-06/2.881, allocations: 0 / 0.8621 GB, free: 1.988 MB / 0.7012 GB Notification: Performance of matching and sorting (n=21): time 0.001274/2.882, allocations: 407.2 kB / 0.8625 GB, free: 1.633 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.672e-05/2.882, allocations: 55.41 kB / 0.8626 GB, free: 1.566 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004452/2.882, allocations: 323.1 kB / 0.8629 GB, free: 1.305 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 2.694e-05/2.882, allocations: 26.8 kB / 0.8629 GB, free: 1.273 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001793/2.883, allocations: 246.7 kB / 0.8631 GB, free: 1.078 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 6.235e-05/2.883, allocations: 65.2 kB / 0.8632 GB, free: 1.023 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001232/2.883, allocations: 78.66 kB / 0.8633 GB, free: 0.9648 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001252/2.883, allocations: 336.9 kB / 0.8636 GB, free: 0.6367 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001853/2.883, allocations: 91.61 kB / 0.8637 GB, free: 0.5781 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002294/2.883, allocations: 173.5 kB / 0.8638 GB, free: 404 kB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000393/2.884, allocations: 265.1 kB / 0.8641 GB, free: 168 kB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.047e-06/2.884, allocations: 4 kB / 0.8641 GB, free: 168 kB / 0.7012 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008612/2.885, allocations: 384.3 kB / 0.8645 GB, free: 15.88 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.123e-05/2.885, allocations: 8.438 kB / 0.8645 GB, free: 15.87 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.117e-06/2.885, allocations: 8 kB / 0.8645 GB, free: 15.86 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009998/2.886, allocations: 166.7 kB / 0.8646 GB, free: 15.71 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001907/2.886, allocations: 57.25 kB / 0.8647 GB, free: 15.67 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002481/2.888, allocations: 2.195 MB / 0.8668 GB, free: 13.47 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003091/2.889, allocations: 50.59 kB / 0.8669 GB, free: 13.43 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.133e-05/2.889, allocations: 15.5 kB / 0.8669 GB, free: 13.42 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 9 (sourceP1.C.ftype,puitsP1.fluid,checkValve.fluid,checkValve.libre,$whenCondition1,$whenCondition2,sourceP1.fluid1,sourceP1.C.diff_on_2,checkValve.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,2), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001889/2.889, allocations: 162.9 kB / 0.867 GB, free: 13.28 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.11e-05/2.889, allocations: 32.83 kB / 0.8671 GB, free: 13.25 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007723/2.89, allocations: 318.1 kB / 0.8674 GB, free: 12.99 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.867e-06/2.89, allocations: 0 / 0.8674 GB, free: 12.99 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-06/2.89, allocations: 4 kB / 0.8674 GB, free: 12.99 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.02e-06/2.89, allocations: 3.984 kB / 0.8674 GB, free: 12.98 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004325/2.89, allocations: 392.1 kB / 0.8678 GB, free: 12.63 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/2.89, allocations: 0 / 0.8678 GB, free: 12.63 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000251/2.891, allocations: 50.72 kB / 0.8678 GB, free: 12.59 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004825/2.891, allocations: 72.98 kB / 0.8679 GB, free: 12.52 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.633e-05/2.891, allocations: 19.3 kB / 0.8679 GB, free: 12.51 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005121/2.892, allocations: 0.5579 MB / 0.8684 GB, free: 11.94 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/2.892, allocations: 2.906 kB / 0.8684 GB, free: 11.94 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008002/2.892, allocations: 383.8 kB / 0.8688 GB, free: 11.64 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001441/2.893, allocations: 127.5 kB / 0.8689 GB, free: 11.5 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.466e-05/2.893, allocations: 7.625 kB / 0.8689 GB, free: 11.5 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001611/2.893, allocations: 19.36 kB / 0.869 GB, free: 11.48 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.797e-05/2.893, allocations: 27.58 kB / 0.869 GB, free: 11.46 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.514e-05/2.893, allocations: 11.92 kB / 0.869 GB, free: 11.45 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0002674/2.893, allocations: 230.4 kB / 0.8692 GB, free: 11.27 MB / 0.7169 GB Notification: Performance of sort global known variables: time 2.01e-07/2.893, allocations: 4.062 kB / 0.8692 GB, free: 11.26 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.004349/2.898, allocations: 1.471 MB / 0.8707 GB, free: 9.898 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (checkValve.theta,checkValve.omega) * Number of discrete variables: 3 ($whenCondition2,$whenCondition1,checkValve.libre) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 19 * 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,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.008336/2.906, allocations: 2.266 MB / 0.8729 GB, free: 7.98 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0009597/2.907, allocations: 354.2 kB / 0.8732 GB, free: 7.691 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/2.907, allocations: 0.875 kB / 0.8732 GB, free: 7.691 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002941/2.907, allocations: 117.9 kB / 0.8733 GB, free: 7.609 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005169/2.908, allocations: 73.12 kB / 0.8734 GB, free: 7.559 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001684/2.909, allocations: 0.9464 MB / 0.8743 GB, free: 6.637 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004254/2.91, allocations: 0.799 MB / 0.8751 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001072/2.91, allocations: 34.81 kB / 0.8751 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of SimCode: time 5.71e-07/2.91, allocations: 0 / 0.8751 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of Templates: time 0.0495/2.96, allocations: 30.95 MB / 0.9054 GB, free: 6.945 MB / 0.7481 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.makefile make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.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.TestDynamicCheckValveCalcHelperMain.o OMCppThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValveCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValveCalcHelperMain.o] Error 1