Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation.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.ClimateChange.ElectrolysisMethanation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation") translateModel(Chemical.Examples.ClimateChange.ElectrolysisMethanation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008902/0.0008909, allocations: 100.5 kB / 15.71 MB, free: 452 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.0009812/0.0009813, allocations: 176 kB / 16.58 MB, free: 6.422 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.524/1.524, allocations: 223.2 MB / 240.6 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.2836/0.2836, allocations: 15.26 MB / 307 MB, free: 15.76 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0004476/0.0004477, allocations: 8 kB / 372.1 MB, free: 3.984 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4147/0.4152, allocations: 54.62 MB / 426.7 MB, free: 40.63 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.ClimateChange.ElectrolysisMethanation): time 0.01096/0.4262, allocations: 11.3 MB / 438 MB, free: 35.34 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02855/0.4548, allocations: 26.45 MB / 464.5 MB, free: 16.14 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002781/0.4576, allocations: 51.09 kB / 464.5 MB, free: 16.12 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002102/0.4597, allocations: 0.6111 MB / 465.1 MB, free: 15.8 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008917/0.4687, allocations: 2.031 MB / 467.2 MB, free: 14.55 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01333/0.4821, allocations: 3.177 MB / 470.3 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005913/0.488, allocations: 2.837 MB / 473.2 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004211/0.4923, allocations: 1.543 MB / 474.7 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004176/0.4965, allocations: 1.169 MB / 475.9 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004646/0.5011, allocations: 1.46 MB / 477.4 MB, free: 9.758 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001581/0.5027, allocations: 156.2 kB / 477.5 MB, free: 9.758 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01534/0.5181, allocations: 2.859 MB / 480.4 MB, free: 9.086 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002501/0.5206, allocations: 0.5257 MB / 480.9 MB, free: 8.809 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002697/0.5234, allocations: 487.5 kB / 481.4 MB, free: 8.562 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01596/0.5393, allocations: 4.733 MB / 486.1 MB, free: 6.809 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.647e-05/0.5394, allocations: 4.703 kB / 486.1 MB, free: 6.805 MB / 350.1 MB Notification: Performance of FrontEnd: time 6.081e-06/0.5395, allocations: 0 / 486.1 MB, free: 6.805 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003379/0.5398, allocations: 0.9062 kB / 486.1 MB, free: 6.805 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: 609 * Number of variables: 609 Notification: Performance of Generate backend data structure: time 0.01397/0.5538, allocations: 2.792 MB / 488.9 MB, free: 5.207 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.562e-05/0.5539, allocations: 9.531 kB / 488.9 MB, free: 5.207 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003874/0.5577, allocations: 0.5687 MB / 489.5 MB, free: 5.016 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0045/0.5623, allocations: 1.303 MB / 490.8 MB, free: 4.266 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004564/0.5628, allocations: 266.9 kB / 491 MB, free: 4.086 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001653/0.5644, allocations: 243 kB / 491.3 MB, free: 4.004 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008458/0.5729, allocations: 3.018 MB / 494.3 MB, free: 2.152 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.112e-05/0.573, allocations: 5.344 kB / 494.3 MB, free: 2.148 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002575/0.5733, allocations: 96.78 kB / 494.4 MB, free: 2.074 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.275e-05/0.5733, allocations: 63.23 kB / 494.5 MB, free: 2.07 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005832/0.5792, allocations: 3.58 MB / 498 MB, free: 14.63 MB / 366.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.01858/0.5978, allocations: 10.4 MB / 0.4965 GB, free: 3.855 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003232/0.601, allocations: 2.238 MB / 0.4987 GB, free: 1.508 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00167/0.6027, allocations: 1.106 MB / 0.4998 GB, free: 408 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01304/0.6158, allocations: 8.607 MB / 0.5082 GB, free: 6.934 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.683e-05/0.6159, allocations: 47.88 kB / 0.5082 GB, free: 6.879 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001315/0.6172, allocations: 265.9 kB / 0.5085 GB, free: 6.617 MB / 382.1 MB Notification: Performance of pre-optimization done (n=134): time 3.667e-06/0.6172, allocations: 0 / 0.5085 GB, free: 6.617 MB / 382.1 MB Notification: Performance of matching and sorting (n=181): time 0.03327/0.6505, allocations: 9.755 MB / 0.518 GB, free: 12.74 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001139/0.6507, allocations: 124.9 kB / 0.5181 GB, free: 12.59 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002191/0.6529, allocations: 1.443 MB / 0.5195 GB, free: 11.14 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004246/0.6533, allocations: 57.7 kB / 0.5196 GB, free: 11.08 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001028/0.6543, allocations: 1.151 MB / 0.5207 GB, free: 9.91 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008392/0.6552, allocations: 0.6355 MB / 0.5213 GB, free: 9.266 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001574/0.6554, allocations: 56 kB / 0.5214 GB, free: 9.211 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002504/0.6556, allocations: 403.4 kB / 0.5218 GB, free: 8.812 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001784/0.6574, allocations: 0.9344 MB / 0.5227 GB, free: 7.875 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002604/0.66, allocations: 1.886 MB / 0.5245 GB, free: 5.551 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002089/0.6621, allocations: 1.197 MB / 0.5257 GB, free: 4.352 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.78e-05/0.6622, allocations: 8 kB / 0.5257 GB, free: 4.344 MB / 398.1 MB Notification: Performance of matching and sorting (n=342) (initialization): time 0.009817/0.672, allocations: 3.885 MB / 0.5295 GB, free: 444 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.58e-05/0.6721, allocations: 23.95 kB / 0.5295 GB, free: 420 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.087e-05/0.6721, allocations: 32 kB / 0.5296 GB, free: 388 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005286/0.6774, allocations: 1.195 MB / 0.5307 GB, free: 15.17 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00237/0.6798, allocations: 0.5811 MB / 0.5313 GB, free: 14.59 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0103/0.6901, allocations: 6.92 MB / 0.5381 GB, free: 7.242 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002817/0.693, allocations: 143.7 kB / 0.5382 GB, free: 7.102 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006489/0.6936, allocations: 163.9 kB / 0.5383 GB, free: 6.941 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 142 * 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 (305): * Single equations (assignments): 300 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(3,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 11,(1,100.0%) 3} * Non-linear torn systems: 2 {1 18,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.001757/0.6954, allocations: 485.4 kB / 0.5388 GB, free: 6.457 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006405/0.6961, allocations: 173.8 kB / 0.539 GB, free: 6.285 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01024/0.7063, allocations: 3.259 MB / 0.5422 GB, free: 3.008 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.799e-05/0.7064, allocations: 20 kB / 0.5422 GB, free: 2.988 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.981e-05/0.7064, allocations: 4 kB / 0.5422 GB, free: 2.984 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.391e-05/0.7065, allocations: 11.97 kB / 0.5422 GB, free: 2.973 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0148/0.7213, allocations: 5.429 MB / 0.5475 GB, free: 13.44 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.416e-05/0.7213, allocations: 4 kB / 0.5475 GB, free: 13.44 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001296/0.7226, allocations: 299.6 kB / 0.5478 GB, free: 13.14 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005033/0.7277, allocations: 1.069 MB / 0.5488 GB, free: 12.06 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000307/0.728, allocations: 71.91 kB / 0.5489 GB, free: 11.99 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008419/0.7365, allocations: 6.298 MB / 0.555 GB, free: 5.266 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.566e-06/0.7365, allocations: 8 kB / 0.5551 GB, free: 5.258 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01027/0.7468, allocations: 4.129 MB / 0.5591 GB, free: 1.066 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007992/0.7476, allocations: 246.8 kB / 0.5593 GB, free: 0.8047 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005305/0.7482, allocations: 32 kB / 0.5594 GB, free: 0.7734 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001486/0.7497, allocations: 83.75 kB / 0.5594 GB, free: 0.6914 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004001/0.7501, allocations: 173.7 kB / 0.5596 GB, free: 0.5195 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002099/0.7503, allocations: 83.95 kB / 0.5597 GB, free: 448 kB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001561/0.7519, allocations: 0.9351 MB / 0.5606 GB, free: 15.5 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.3e-07/0.7519, allocations: 4 kB / 0.5606 GB, free: 15.5 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005857/0.7578, allocations: 1.23 MB / 0.5618 GB, free: 14.27 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 8 (cathode.temperature,anode.temperature,solution1.temperature,H.logn,H2O.logn,CH4.logn,CO2.logn,H2.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 (156): * Single equations (assignments): 151 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(3,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 9,(1,100.0%) 3} * Non-linear torn systems: 2 {1 19,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.00444/0.7622, allocations: 1.267 MB / 0.563 GB, free: 12.99 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006372/0.7686, allocations: 3.004 MB / 0.566 GB, free: 9.938 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.881e-06/0.7686, allocations: 0 / 0.566 GB, free: 9.938 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00327/0.7719, allocations: 1.621 MB / 0.5676 GB, free: 8.262 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002605/0.7745, allocations: 301.7 kB / 0.5678 GB, free: 7.969 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009869/0.7844, allocations: 5.036 MB / 0.5728 GB, free: 2.852 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001486/0.7859, allocations: 1.474 MB / 0.5742 GB, free: 1.34 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001203/0.7872, allocations: 362.2 kB / 0.5745 GB, free: 0.9922 MB / 446.1 MB Notification: Performance of SimCode: time 1.833e-06/0.7872, allocations: 0 / 0.5745 GB, free: 0.9922 MB / 446.1 MB Notification: Performance of Templates: time 0.3303/1.117, allocations: 79.97 MB / 0.6526 GB, free: 100.7 MB / 462.1 MB make -j1 -f Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation.makefile make -j1 -f Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation.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.ClimateChange.ElectrolysisMethanationCalcHelperMain.o OMCppChemical_Chemical.Examples.ClimateChange.ElectrolysisMethanationCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppChemical_Chemical.Examples.ClimateChange.ElectrolysisMethanationCalcHelperMain.o] Error 1