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.6867/0.6867, allocations: 150.8 MB / 166.7 MB, free: 15.34 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.094e-05/1.095e-05, allocations: 4 kB / 205.4 MB, free: 9.781 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1171/0.1171, allocations: 31.98 MB / 237.4 MB, free: 5.469 MB / 190.1 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation. 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.312/1.429, allocations: 293.7 MB / 0.5186 GB, free: 13.3 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1625/1.591, allocations: 186.2 MB / 0.7004 GB, free: 2.738 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001607/1.592, allocations: 7.938 kB / 0.7004 GB, free: 2.73 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 6.159e-05/1.592, allocations: 27.77 kB / 0.7005 GB, free: 2.703 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0002476/1.592, allocations: 107.2 kB / 0.7006 GB, free: 2.598 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.2462/1.838, allocations: 8.817 MB / 0.7092 GB, free: 5.312 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0004331/1.839, allocations: 392 kB / 0.7096 GB, free: 5.312 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002097/1.839, allocations: 172.1 kB / 0.7097 GB, free: 5.305 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000136/1.839, allocations: 129 kB / 0.7098 GB, free: 5.305 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001331/1.839, allocations: 146.6 kB / 0.71 GB, free: 5.305 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 2.693e-05/1.839, allocations: 16.16 kB / 0.71 GB, free: 5.305 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0242/1.863, allocations: 20 MB / 0.7295 GB, free: 5.238 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 7.602e-05/1.863, allocations: 60.12 kB / 0.7296 GB, free: 5.238 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0001983/1.864, allocations: 187.9 kB / 0.7298 GB, free: 5.207 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.007287/1.871, allocations: 6.664 MB / 0.7363 GB, free: 3.812 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/1.871, allocations: 3.984 kB / 0.7363 GB, free: 3.809 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.423e-06/1.871, allocations: 0 / 0.7363 GB, free: 3.809 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 5.61e-06/1.871, allocations: 1.234 kB / 0.7363 GB, free: 3.809 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.002972/1.874, allocations: 1.721 MB / 0.738 GB, free: 2.664 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 2.911e-05/1.874, allocations: 11.31 kB / 0.738 GB, free: 2.664 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.14e-05/1.874, allocations: 45.59 kB / 0.738 GB, free: 2.645 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002153/1.874, allocations: 292.7 kB / 0.7383 GB, free: 2.391 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.871e-05/1.874, allocations: 56.14 kB / 0.7383 GB, free: 2.359 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.441e-05/1.874, allocations: 34.56 kB / 0.7384 GB, free: 2.359 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004602/1.875, allocations: 385.3 kB / 0.7387 GB, free: 2.203 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.043e-05/1.875, allocations: 3.312 kB / 0.7388 GB, free: 2.203 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.595e-05/1.875, allocations: 13.81 kB / 0.7388 GB, free: 2.203 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.634e-06/1.875, allocations: 9.562 kB / 0.7388 GB, free: 2.203 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003975/1.875, allocations: 257.4 kB / 0.739 GB, free: 2.168 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001261/1.877, allocations: 1.944 MB / 0.7409 GB, free: 16.46 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002046/1.877, allocations: 114 kB / 0.741 GB, free: 16.43 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001013/1.877, allocations: 60.3 kB / 0.7411 GB, free: 16.41 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2094/2.086, allocations: 123.5 MB / 0.8617 GB, free: 5.492 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002565/2.087, allocations: 128.6 kB / 0.8618 GB, free: 5.379 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=16): time 2.134e-06/2.087, allocations: 0 / 0.8618 GB, free: 5.379 MB / 0.7012 GB Notification: Performance of matching and sorting (n=16): time 0.000793/2.087, allocations: 352.2 kB / 0.8622 GB, free: 5.055 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.844e-05/2.087, allocations: 63.08 kB / 0.8622 GB, free: 4.984 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002509/2.088, allocations: 258.9 kB / 0.8625 GB, free: 4.77 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 1.788e-05/2.088, allocations: 29.33 kB / 0.8625 GB, free: 4.738 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001224/2.088, allocations: 230.4 kB / 0.8627 GB, free: 4.547 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 3.814e-05/2.088, allocations: 48.86 kB / 0.8628 GB, free: 4.512 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.749e-05/2.088, allocations: 32.89 kB / 0.8628 GB, free: 4.484 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001008/2.088, allocations: 337.8 kB / 0.8631 GB, free: 4.156 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001451/2.088, allocations: 70.52 kB / 0.8632 GB, free: 4.105 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001993/2.088, allocations: 191.9 kB / 0.8634 GB, free: 3.891 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001289/2.09, allocations: 0.4986 MB / 0.8639 GB, free: 3.434 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/2.09, allocations: 4 kB / 0.8639 GB, free: 3.43 MB / 0.7012 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0005447/2.09, allocations: 322.1 kB / 0.8642 GB, free: 3.188 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 1.488e-05/2.09, allocations: 8 kB / 0.8642 GB, free: 3.18 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.335e-06/2.09, allocations: 11.97 kB / 0.8642 GB, free: 3.168 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005633/2.091, allocations: 122.9 kB / 0.8643 GB, free: 3.055 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001545/2.091, allocations: 50.44 kB / 0.8644 GB, free: 3.012 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003231/2.091, allocations: 0.5539 MB / 0.8649 GB, free: 2.453 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001931/2.092, allocations: 54.09 kB / 0.865 GB, free: 2.406 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2e-05/2.092, allocations: 15.81 kB / 0.865 GB, free: 2.395 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.0001537/2.092, allocations: 156.6 kB / 0.8651 GB, free: 2.258 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.871e-05/2.092, allocations: 23.72 kB / 0.8651 GB, free: 2.234 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004627/2.092, allocations: 245.5 kB / 0.8654 GB, free: 2.031 MB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/2.092, allocations: 4 kB / 0.8654 GB, free: 2.027 MB / 0.7012 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-06/2.092, allocations: 0 / 0.8654 GB, free: 2.027 MB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/2.092, allocations: 0 / 0.8654 GB, free: 2.027 MB / 0.7012 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002788/2.093, allocations: 335.8 kB / 0.8657 GB, free: 1.711 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/2.093, allocations: 2.906 kB / 0.8657 GB, free: 1.711 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.157e-05/2.093, allocations: 15.98 kB / 0.8657 GB, free: 1.695 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005181/2.093, allocations: 116 kB / 0.8658 GB, free: 1.586 MB / 0.7012 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.102e-05/2.093, allocations: 7.562 kB / 0.8658 GB, free: 1.582 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002951/2.093, allocations: 0.5576 MB / 0.8664 GB, free: 1.02 MB / 0.7012 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/2.094, allocations: 0 / 0.8664 GB, free: 1.02 MB / 0.7012 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003728/2.094, allocations: 237 kB / 0.8666 GB, free: 0.8047 MB / 0.7012 GB Notification: Performance of postOpt removeConstants (simulation): time 6.73e-05/2.094, allocations: 114.1 kB / 0.8667 GB, free: 0.6797 MB / 0.7012 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.179e-05/2.094, allocations: 1.859 kB / 0.8667 GB, free: 0.6797 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000105/2.094, allocations: 19.67 kB / 0.8667 GB, free: 0.6641 MB / 0.7012 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.257e-05/2.094, allocations: 11.97 kB / 0.8668 GB, free: 0.6523 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.446e-05/2.094, allocations: 7.688 kB / 0.8668 GB, free: 0.6484 MB / 0.7012 GB Notification: Performance of sorting global known variables: time 0.000169/2.094, allocations: 199.1 kB / 0.867 GB, free: 496 kB / 0.7012 GB Notification: Performance of sort global known variables: time 1.1e-07/2.094, allocations: 0 / 0.867 GB, free: 496 kB / 0.7012 GB Notification: Performance of remove unused functions: time 0.002795/2.097, allocations: 1.447 MB / 0.8684 GB, free: 15.13 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.004642/2.102, allocations: 2.255 MB / 0.8706 GB, free: 13.19 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004066/2.102, allocations: 187.9 kB / 0.8707 GB, free: 13.06 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/2.102, allocations: 4.062 kB / 0.8708 GB, free: 13.05 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001733/2.102, allocations: 78.22 kB / 0.8708 GB, free: 13 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000353/2.103, allocations: 68.45 kB / 0.8709 GB, free: 12.95 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009395/2.104, allocations: 0.6701 MB / 0.8715 GB, free: 12.28 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000272/2.104, allocations: 0.7714 MB / 0.8723 GB, free: 11.48 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.319e-05/2.104, allocations: 31.42 kB / 0.8723 GB, free: 11.45 MB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/2.104, allocations: 3.562 kB / 0.8723 GB, free: 11.45 MB / 0.7169 GB Notification: Performance of Templates: time 0.03082/2.135, allocations: 28.53 MB / 0.9002 GB, free: 15.05 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