Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve.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.Book.SimpleExamples.PressureLoss.TestSwitchValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve") translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.6866/0.6866, allocations: 150.8 MB / 166.7 MB, free: 15.62 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.18e-05/1.181e-05, allocations: 4 kB / 205.4 MB, free: 10.21 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1205/0.1205, allocations: 31.98 MB / 237.4 MB, free: 5.648 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.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve): time 1.302/1.423, allocations: 294.5 MB / 0.5194 GB, free: 12.49 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1587/1.582, allocations: 185.5 MB / 0.7006 GB, free: 2.594 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002704/1.582, allocations: 7.938 kB / 0.7006 GB, free: 2.586 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0002994/1.582, allocations: 107.3 kB / 0.7007 GB, free: 2.48 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0003813/1.583, allocations: 174.7 kB / 0.7009 GB, free: 2.309 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.2486/1.831, allocations: 8.846 MB / 0.7095 GB, free: 5.727 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0006925/1.832, allocations: 0.6595 MB / 0.7102 GB, free: 5.727 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002767/1.832, allocations: 212.3 kB / 0.7104 GB, free: 5.703 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003778/1.833, allocations: 237.1 kB / 0.7106 GB, free: 5.703 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000271/1.833, allocations: 220.1 kB / 0.7108 GB, free: 5.703 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 4.055e-05/1.833, allocations: 19.3 kB / 0.7108 GB, free: 5.703 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02363/1.857, allocations: 20.16 MB / 0.7305 GB, free: 5.613 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 8.415e-05/1.857, allocations: 69.73 kB / 0.7306 GB, free: 5.613 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003268/1.857, allocations: 280.3 kB / 0.7308 GB, free: 5.582 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.007148/1.864, allocations: 6.778 MB / 0.7375 GB, free: 3.926 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/1.864, allocations: 3.562 kB / 0.7375 GB, free: 3.926 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.233e-06/1.864, allocations: 5.906 kB / 0.7375 GB, free: 3.926 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 5.861e-06/1.864, allocations: 0 / 0.7375 GB, free: 3.926 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: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.003378/1.868, allocations: 1.861 MB / 0.7393 GB, free: 2.676 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 2.755e-05/1.868, allocations: 8.562 kB / 0.7393 GB, free: 2.676 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.084e-05/1.868, allocations: 60.31 kB / 0.7393 GB, free: 2.645 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000227/1.868, allocations: 334.7 kB / 0.7397 GB, free: 2.375 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.289e-05/1.868, allocations: 60.7 kB / 0.7397 GB, free: 2.344 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.125e-05/1.868, allocations: 41.47 kB / 0.7398 GB, free: 2.34 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005211/1.869, allocations: 0.5456 MB / 0.7403 GB, free: 2.121 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.132e-05/1.869, allocations: 0 / 0.7403 GB, free: 2.121 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.817e-05/1.869, allocations: 21.5 kB / 0.7403 GB, free: 2.121 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.524e-05/1.869, allocations: 19.14 kB / 0.7403 GB, free: 2.117 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000367/1.869, allocations: 350 kB / 0.7407 GB, free: 2.082 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.03143/1.9, allocations: 19.5 MB / 0.7597 GB, free: 3.715 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005509/1.901, allocations: 332.5 kB / 0.76 GB, free: 3.656 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001977/1.901, allocations: 191.6 kB / 0.7602 GB, free: 3.637 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2692/2.17, allocations: 151.8 MB / 0.9084 GB, free: 3.117 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004086/2.171, allocations: 289.6 kB / 0.9087 GB, free: 2.883 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=71): time 1.683e-06/2.171, allocations: 0 / 0.9087 GB, free: 2.883 MB / 0.7481 GB Notification: Performance of matching and sorting (n=71): time 0.002771/2.174, allocations: 1.12 MB / 0.9098 GB, free: 1.996 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.79e-05/2.174, allocations: 176.9 kB / 0.91 GB, free: 1.793 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003235/2.174, allocations: 355.3 kB / 0.9103 GB, free: 1.508 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 2.47e-05/2.174, allocations: 29.39 kB / 0.9103 GB, free: 1.477 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001253/2.174, allocations: 231.4 kB / 0.9105 GB, free: 1.297 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001311/2.174, allocations: 225.3 kB / 0.9108 GB, free: 1.105 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.722e-05/2.174, allocations: 59.92 kB / 0.9108 GB, free: 1.059 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001094/2.175, allocations: 353.3 kB / 0.9111 GB, free: 0.7227 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001995/2.175, allocations: 151.8 kB / 0.9113 GB, free: 0.6367 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002394/2.175, allocations: 247.8 kB / 0.9115 GB, free: 448 kB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003421/2.178, allocations: 1.226 MB / 0.9127 GB, free: 15.42 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/2.178, allocations: 0 / 0.9127 GB, free: 15.42 MB / 0.7637 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.0008211/2.179, allocations: 0.6562 MB / 0.9134 GB, free: 14.97 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 3.004e-05/2.179, allocations: 33.7 kB / 0.9134 GB, free: 14.93 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/2.179, allocations: 9.062 kB / 0.9134 GB, free: 14.93 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0021/2.181, allocations: 0.7069 MB / 0.9141 GB, free: 14.27 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.243e-05/2.182, allocations: 30.58 kB / 0.9141 GB, free: 14.24 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008573/2.182, allocations: 0.9209 MB / 0.915 GB, free: 13.46 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002608/2.183, allocations: 70.64 kB / 0.9151 GB, free: 13.4 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.674e-05/2.183, allocations: 12.12 kB / 0.9151 GB, free: 13.39 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,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0002136/2.183, allocations: 211.6 kB / 0.9153 GB, free: 13.21 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.436e-05/2.183, allocations: 55.19 kB / 0.9154 GB, free: 13.16 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001347/2.184, allocations: 1.131 MB / 0.9165 GB, free: 12.34 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000804/2.185, allocations: 0.6925 MB / 0.9171 GB, free: 11.86 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/2.185, allocations: 3.984 kB / 0.9171 GB, free: 11.85 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.059e-06/2.185, allocations: 4 kB / 0.9171 GB, free: 11.85 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001853/2.187, allocations: 1.701 MB / 0.9188 GB, free: 10.56 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/2.187, allocations: 0 / 0.9188 GB, free: 10.56 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001386/2.187, allocations: 50.77 kB / 0.9189 GB, free: 10.52 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001819/2.189, allocations: 0.7142 MB / 0.9196 GB, free: 9.867 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.362e-05/2.189, allocations: 11.38 kB / 0.9196 GB, free: 9.863 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008189/2.19, allocations: 0.9969 MB / 0.9205 GB, free: 9.035 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/2.19, allocations: 0 / 0.9205 GB, free: 9.035 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008297/2.191, allocations: 0.8176 MB / 0.9213 GB, free: 8.418 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001791/2.191, allocations: 208.6 kB / 0.9215 GB, free: 8.223 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.489e-05/2.191, allocations: 11.38 kB / 0.9215 GB, free: 8.219 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002268/2.191, allocations: 23.3 kB / 0.9216 GB, free: 8.203 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.393e-05/2.191, allocations: 36.06 kB / 0.9216 GB, free: 8.172 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.257e-05/2.191, allocations: 15.69 kB / 0.9216 GB, free: 8.16 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0002722/2.192, allocations: 316.9 kB / 0.9219 GB, free: 7.922 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.1e-07/2.192, allocations: 0 / 0.9219 GB, free: 7.922 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.003018/2.195, allocations: 1.541 MB / 0.9234 GB, free: 6.48 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 (36): * Single equations (assignments): 34 * 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,14)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005589/2.2, allocations: 2.338 MB / 0.9257 GB, free: 4.469 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.0009362/2.201, allocations: 0.6897 MB / 0.9264 GB, free: 3.926 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 2.165e-06/2.201, allocations: 0 / 0.9264 GB, free: 3.926 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0005396/2.202, allocations: 370.1 kB / 0.9267 GB, free: 3.652 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001123/2.203, allocations: 233.4 kB / 0.927 GB, free: 3.469 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001509/2.204, allocations: 1.393 MB / 0.9283 GB, free: 2.18 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003772/2.205, allocations: 0.9026 MB / 0.9292 GB, free: 1.246 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.48e-05/2.205, allocations: 45.28 kB / 0.9292 GB, free: 1.207 MB / 0.7637 GB Notification: Performance of SimCode: time 2e-07/2.205, allocations: 0 / 0.9292 GB, free: 1.207 MB / 0.7637 GB Notification: Performance of Templates: time 0.03704/2.242, allocations: 33.03 MB / 0.9615 GB, free: 364 kB / 0.795 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve.makefile make -j1 -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve.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.Book.SimpleExamples.PressureLoss.TestSwitchValveCalcHelperMain.o OMCppThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValveCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValveCalcHelperMain.o] Error 1