Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.WaterElectrolysis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo", uses=false) Using package Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Chemical.Examples.WaterElectrolysis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.WaterElectrolysis") translateModel(Chemical.Examples.WaterElectrolysis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.WaterElectrolysis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001067/0.001067, allocations: 102.6 kB / 15.71 MB, free: 460 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002224/0.002224, allocations: 175.7 kB / 16.58 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.531/1.531, allocations: 223.3 MB / 240.6 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.3348/0.3348, allocations: 15.26 MB / 307 MB, free: 15.79 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003799/0.0003799, allocations: 8.219 kB / 372.1 MB, free: 4.016 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4432/0.4436, allocations: 54.62 MB / 426.7 MB, free: 40.16 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo:3011:6-3011:65:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo:3011:6-3011:65:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer "system" component but an inner "system" component is not defined. For simulation drag Modelica.Fluid.System into your model to specify system properties. Notification: Performance of NFInst.instantiate(Chemical.Examples.WaterElectrolysis): time 0.009097/0.4528, allocations: 9.131 MB / 435.8 MB, free: 36.77 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01991/0.4727, allocations: 16.4 MB / 452.2 MB, free: 24.85 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00289/0.4757, allocations: 38.19 kB / 452.3 MB, free: 24.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001596/0.4773, allocations: 425.7 kB / 452.7 MB, free: 24.62 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00496/0.4823, allocations: 1.261 MB / 454 MB, free: 23.82 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008617/0.4909, allocations: 2.032 MB / 456 MB, free: 22.64 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004291/0.4952, allocations: 2.096 MB / 458.1 MB, free: 21.59 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001764/0.497, allocations: 1.163 MB / 459.2 MB, free: 21.11 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001638/0.4987, allocations: 0.8249 MB / 460.1 MB, free: 20.81 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001417/0.5001, allocations: 1.003 MB / 461.1 MB, free: 20.41 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002766/0.5004, allocations: 118.2 kB / 461.2 MB, free: 20.41 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00706/0.5075, allocations: 1.654 MB / 462.8 MB, free: 20.02 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005487/0.5081, allocations: 385.9 kB / 463.2 MB, free: 19.81 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009536/0.509, allocations: 394 kB / 463.6 MB, free: 19.61 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00626/0.5153, allocations: 3.105 MB / 466.7 MB, free: 18.49 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.778e-06/0.5154, allocations: 1.469 kB / 466.7 MB, free: 18.49 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.406e-06/0.5154, allocations: 0 / 466.7 MB, free: 18.49 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.84e-05/0.5154, allocations: 0 / 466.7 MB, free: 18.49 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 501 * Number of variables: 501 Notification: Performance of Generate backend data structure: time 0.00599/0.5214, allocations: 2.118 MB / 468.8 MB, free: 17.24 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.547e-05/0.5215, allocations: 8.375 kB / 468.8 MB, free: 17.24 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001963/0.5235, allocations: 436.3 kB / 469.3 MB, free: 17.09 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002351/0.5258, allocations: 1.048 MB / 470.3 MB, free: 16.46 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002159/0.5261, allocations: 180.3 kB / 470.5 MB, free: 16.36 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000351/0.5264, allocations: 199.6 kB / 470.7 MB, free: 16.3 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004363/0.5308, allocations: 2.12 MB / 472.8 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.787e-05/0.5309, allocations: 1.375 kB / 472.8 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001779/0.531, allocations: 80.5 kB / 472.9 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.006e-05/0.5311, allocations: 49.5 kB / 472.9 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004422/0.5355, allocations: 2.225 MB / 475.2 MB, free: 14.66 MB / 350.1 MB 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.01353/0.5491, allocations: 7.334 MB / 482.5 MB, free: 9.789 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003388/0.5525, allocations: 1.729 MB / 484.2 MB, free: 8.945 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001086/0.5536, allocations: 0.57 MB / 484.8 MB, free: 8.699 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01013/0.5638, allocations: 6.256 MB / 491 MB, free: 3.395 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.999e-05/0.5639, allocations: 53 kB / 491.1 MB, free: 3.34 MB / 350.1 MB Notification: Performance of pre-optimization done (n=88): time 1.341e-05/0.5639, allocations: 7.938 kB / 491.1 MB, free: 3.332 MB / 350.1 MB Notification: Performance of matching and sorting (n=106): time 0.01806/0.582, allocations: 4.89 MB / 496 MB, free: 15.37 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.824e-05/0.5821, allocations: 119.8 kB / 496.1 MB, free: 15.23 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001308/0.5834, allocations: 0.9039 MB / 497 MB, free: 14.31 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001074/0.5836, allocations: 45.77 kB / 497.1 MB, free: 14.26 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007438/0.5843, allocations: 0.9323 MB / 498 MB, free: 13.31 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003722/0.5847, allocations: 386.6 kB / 498.4 MB, free: 12.93 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.022e-05/0.5848, allocations: 32 kB / 498.4 MB, free: 12.9 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002067/0.585, allocations: 377.9 kB / 498.8 MB, free: 12.52 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008376/0.5858, allocations: 447.8 kB / 499.2 MB, free: 12.09 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001406/0.5873, allocations: 1.199 MB / 0.4887 GB, free: 10.54 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001069/0.5883, allocations: 0.6197 MB / 0.4893 GB, free: 9.914 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.203e-05/0.5884, allocations: 8 kB / 0.4893 GB, free: 9.906 MB / 366.1 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.005433/0.5938, allocations: 2.045 MB / 0.4913 GB, free: 7.844 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.773e-05/0.5938, allocations: 16 kB / 0.4913 GB, free: 7.828 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.952e-05/0.5939, allocations: 28 kB / 0.4913 GB, free: 7.801 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002533/0.5964, allocations: 394.6 kB / 0.4917 GB, free: 7.406 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001643/0.5981, allocations: 455.3 kB / 0.4921 GB, free: 6.961 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005869/0.604, allocations: 3.857 MB / 0.4959 GB, free: 2.82 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001846/0.6058, allocations: 123.7 kB / 0.496 GB, free: 2.699 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003561/0.6062, allocations: 108 kB / 0.4961 GB, free: 2.594 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 115 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (219): * Single equations (assignments): 216 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 2 {1 7,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.001111/0.6073, allocations: 381 kB / 0.4965 GB, free: 2.211 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004167/0.6078, allocations: 126.4 kB / 0.4966 GB, free: 2.086 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005419/0.6132, allocations: 1.633 MB / 0.4982 GB, free: 460 kB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.923e-05/0.6132, allocations: 12 kB / 0.4982 GB, free: 448 kB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.035e-05/0.6132, allocations: 4 kB / 0.4982 GB, free: 444 kB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.739e-05/0.6133, allocations: 3.984 kB / 0.4982 GB, free: 440 kB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003342/0.6166, allocations: 1.477 MB / 0.4997 GB, free: 14.86 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.033e-05/0.6167, allocations: 4 kB / 0.4997 GB, free: 14.86 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001198/0.6179, allocations: 235.7 kB / 0.4999 GB, free: 14.63 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002481/0.6204, allocations: 378.2 kB / 0.5003 GB, free: 14.25 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000136/0.6205, allocations: 47.97 kB / 0.5003 GB, free: 14.2 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005332/0.6259, allocations: 3.78 MB / 0.504 GB, free: 10.13 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.438e-06/0.6259, allocations: 4 kB / 0.504 GB, free: 10.12 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005588/0.6315, allocations: 2.207 MB / 0.5062 GB, free: 7.859 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000677/0.6322, allocations: 187.5 kB / 0.5063 GB, free: 7.656 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004152/0.6326, allocations: 31.98 kB / 0.5064 GB, free: 7.625 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00104/0.6337, allocations: 43.89 kB / 0.5064 GB, free: 7.582 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000245/0.6339, allocations: 100.8 kB / 0.5065 GB, free: 7.484 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001396/0.6341, allocations: 60.16 kB / 0.5066 GB, free: 7.426 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001046/0.6351, allocations: 0.5697 MB / 0.5071 GB, free: 6.844 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6351, allocations: 0 / 0.5071 GB, free: 6.844 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003313/0.6384, allocations: 0.7144 MB / 0.5078 GB, free: 6.129 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 7 (O2_gas.logn,H2_gas.logn,anode.temperature,cathode.temperature,water.temperature,air.temperature,liquidWater.logn) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (109): * Single equations (assignments): 106 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 2 {1 8,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.002115/0.6406, allocations: 0.702 MB / 0.5085 GB, free: 5.414 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00311/0.6437, allocations: 1.522 MB / 0.51 GB, free: 3.871 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.152e-06/0.6437, allocations: 0 / 0.51 GB, free: 3.871 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001465/0.6452, allocations: 0.8285 MB / 0.5108 GB, free: 3.016 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001909/0.6471, allocations: 227.4 kB / 0.511 GB, free: 2.793 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006996/0.6541, allocations: 3.819 MB / 0.5147 GB, free: 14.91 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00127/0.6554, allocations: 1.255 MB / 0.516 GB, free: 13.62 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007444/0.6562, allocations: 271.5 kB / 0.5162 GB, free: 13.36 MB / 398.1 MB Notification: Performance of SimCode: time 6.61e-07/0.6562, allocations: 0 / 0.5162 GB, free: 13.36 MB / 398.1 MB Notification: Performance of Templates: time 0.06247/0.7187, allocations: 42.78 MB / 0.558 GB, free: 2.617 MB / 430.1 MB make -j1 -f Chemical_Chemical.Examples.WaterElectrolysis.makefile make -j1 -f Chemical_Chemical.Examples.WaterElectrolysis.makefile clang++ NOTFOUND -Winvalid-pch -O0 -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"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppChemical_Chemical.Examples.WaterElectrolysisCalcHelperMain.o OMCppChemical_Chemical.Examples.WaterElectrolysisCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppChemical_Chemical.Examples.WaterElectrolysisCalcHelperMain.o] Error 1