Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.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.MethanElectrosynthesis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis") translateModel(Chemical.Examples.ClimateChange.MethanElectrosynthesis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009574/0.0009574, allocations: 101.8 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.001036/0.001036, allocations: 178.6 kB / 16.58 MB, free: 6.141 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.578/1.578, allocations: 223.3 MB / 240.6 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.3385/0.3385, allocations: 15.26 MB / 307 MB, free: 15.72 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000491/0.0004911, allocations: 16 kB / 372.1 MB, free: 3.992 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3931/0.3936, allocations: 54.61 MB / 426.7 MB, free: 39.98 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.MethanElectrosynthesis): time 0.008125/0.4018, allocations: 9.694 MB / 436.4 MB, free: 36.23 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01862/0.4204, allocations: 20.28 MB / 456.7 MB, free: 21.51 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00197/0.4224, allocations: 42.5 kB / 456.7 MB, free: 21.49 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001521/0.424, allocations: 0.5181 MB / 457.2 MB, free: 21.21 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00433/0.4283, allocations: 1.311 MB / 458.6 MB, free: 20.39 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009876/0.4382, allocations: 2.664 MB / 461.2 MB, free: 18.85 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003537/0.4418, allocations: 2.211 MB / 463.4 MB, free: 17.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001575/0.4434, allocations: 1.202 MB / 464.6 MB, free: 17.27 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001215/0.4446, allocations: 0.8446 MB / 465.5 MB, free: 16.96 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001167/0.4458, allocations: 1.049 MB / 466.5 MB, free: 16.54 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002071/0.446, allocations: 122.8 kB / 466.7 MB, free: 16.54 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008387/0.4544, allocations: 2.15 MB / 468.8 MB, free: 16.03 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008259/0.4552, allocations: 413.9 kB / 469.2 MB, free: 15.81 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001144/0.4564, allocations: 401.3 kB / 469.6 MB, free: 15.61 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008391/0.4648, allocations: 3.628 MB / 473.2 MB, free: 14.27 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.183e-06/0.4649, allocations: 0.6562 kB / 473.2 MB, free: 14.27 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.885e-06/0.4649, allocations: 1.094 kB / 473.2 MB, free: 14.27 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.929e-05/0.465, allocations: 0 / 473.2 MB, free: 14.27 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: 484 * Number of variables: 484 Notification: Performance of Generate backend data structure: time 0.007965/0.4729, allocations: 2.286 MB / 475.5 MB, free: 12.92 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.391e-05/0.473, allocations: 13.89 kB / 475.5 MB, free: 12.91 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002357/0.4754, allocations: 0.4939 MB / 476 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002454/0.4778, allocations: 1.119 MB / 477.1 MB, free: 12.08 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001896/0.478, allocations: 198.6 kB / 477.3 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003749/0.4784, allocations: 191.8 kB / 477.5 MB, free: 11.89 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004728/0.4832, allocations: 2.628 MB / 480.1 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.767e-05/0.4832, allocations: 5.969 kB / 480.2 MB, free: 10.78 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001862/0.4834, allocations: 81.06 kB / 480.2 MB, free: 10.72 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.298e-05/0.4835, allocations: 47.69 kB / 480.3 MB, free: 10.72 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006172/0.4897, allocations: 3.26 MB / 483.5 MB, free: 9.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.01498/0.5047, allocations: 8.459 MB / 492 MB, free: 4.004 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001807/0.5065, allocations: 1.319 MB / 493.3 MB, free: 2.957 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007845/0.5073, allocations: 0.6302 MB / 493.9 MB, free: 2.316 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008485/0.5158, allocations: 5.457 MB / 499.4 MB, free: 12.34 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.966e-05/0.5159, allocations: 51.16 kB / 499.5 MB, free: 12.28 MB / 366.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009747/0.5169, allocations: 178.3 kB / 499.6 MB, free: 12.11 MB / 366.1 MB Notification: Performance of pre-optimization done (n=81): time 1.073e-05/0.5169, allocations: 3.984 kB / 499.6 MB, free: 12.1 MB / 366.1 MB Notification: Performance of matching and sorting (n=115): time 0.03639/0.5533, allocations: 7.087 MB / 0.4948 GB, free: 4.883 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001122/0.5535, allocations: 119.8 kB / 0.495 GB, free: 4.742 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004117/0.5576, allocations: 1.845 MB / 0.4968 GB, free: 2.879 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003619/0.558, allocations: 45.7 kB / 0.4968 GB, free: 2.828 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001114/0.5591, allocations: 1.006 MB / 0.4978 GB, free: 1.805 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000762/0.5599, allocations: 414.2 kB / 0.4982 GB, free: 1.395 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002909/0.5602, allocations: 40 kB / 0.4982 GB, free: 1.355 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002409/0.5605, allocations: 385.9 kB / 0.4986 GB, free: 0.9727 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001917/0.5624, allocations: 0.8356 MB / 0.4994 GB, free: 136 kB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00209/0.5645, allocations: 1.569 MB / 0.5009 GB, free: 14.22 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002354/0.5669, allocations: 1.053 MB / 0.502 GB, free: 13.16 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.342e-05/0.5669, allocations: 4 kB / 0.502 GB, free: 13.16 MB / 382.1 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.01124/0.5782, allocations: 3.244 MB / 0.5051 GB, free: 9.891 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.413e-05/0.5783, allocations: 16 kB / 0.5051 GB, free: 9.875 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.606e-05/0.5784, allocations: 24 kB / 0.5052 GB, free: 9.852 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006113/0.5845, allocations: 1.01 MB / 0.5062 GB, free: 8.828 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002353/0.5869, allocations: 435.3 kB / 0.5066 GB, free: 8.402 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01218/0.5991, allocations: 6.887 MB / 0.5133 GB, free: 1.082 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002352/0.6015, allocations: 115.7 kB / 0.5134 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004541/0.6019, allocations: 120 kB / 0.5135 GB, free: 0.8516 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 109 * 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 (226): * Single equations (assignments): 221 * 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 {(2,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 {2 15,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.001363/0.6033, allocations: 405.6 kB / 0.5139 GB, free: 456 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005143/0.6038, allocations: 146.1 kB / 0.514 GB, free: 308 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006662/0.6105, allocations: 2.141 MB / 0.5161 GB, free: 14.14 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.562e-05/0.6106, allocations: 20 kB / 0.5162 GB, free: 14.12 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.263e-05/0.6106, allocations: 0 / 0.5162 GB, free: 14.12 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.777e-05/0.6106, allocations: 7.984 kB / 0.5162 GB, free: 14.12 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009573/0.6202, allocations: 3.842 MB / 0.5199 GB, free: 10.18 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.868e-06/0.6202, allocations: 3.984 kB / 0.5199 GB, free: 10.18 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000709/0.621, allocations: 183.7 kB / 0.5201 GB, free: 9.996 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003953/0.6249, allocations: 0.9075 MB / 0.521 GB, free: 9.074 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001206/0.6251, allocations: 47.97 kB / 0.521 GB, free: 9.027 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008464/0.6335, allocations: 6.26 MB / 0.5271 GB, free: 2.34 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.729e-06/0.6336, allocations: 4 kB / 0.5271 GB, free: 2.336 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007382/0.641, allocations: 2.843 MB / 0.5299 GB, free: 15.44 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008029/0.6418, allocations: 239.2 kB / 0.5302 GB, free: 15.19 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005109/0.6423, allocations: 24 kB / 0.5302 GB, free: 15.16 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001251/0.6436, allocations: 47.92 kB / 0.5302 GB, free: 15.12 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002979/0.6439, allocations: 112.8 kB / 0.5303 GB, free: 15 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001488/0.6441, allocations: 51.92 kB / 0.5304 GB, free: 14.95 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002036/0.6461, allocations: 1.291 MB / 0.5316 GB, free: 13.66 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.6461, allocations: 0 / 0.5316 GB, free: 13.66 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004365/0.6505, allocations: 0.9603 MB / 0.5326 GB, free: 12.7 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (cathode.temperature,anode.temperature,solution1.temperature,H.logn,H2O.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 (90): * Single equations (assignments): 85 * 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 {(2,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 17,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.002496/0.653, allocations: 0.9639 MB / 0.5335 GB, free: 11.73 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004726/0.6577, allocations: 2.466 MB / 0.5359 GB, free: 9.207 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.361e-06/0.6578, allocations: 4.062 kB / 0.5359 GB, free: 9.203 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00207/0.6598, allocations: 1.205 MB / 0.5371 GB, free: 7.938 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001834/0.6617, allocations: 236 kB / 0.5373 GB, free: 7.711 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006251/0.6679, allocations: 3.959 MB / 0.5412 GB, free: 3.699 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009207/0.6689, allocations: 1.307 MB / 0.5425 GB, free: 2.363 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000597/0.6695, allocations: 223.3 kB / 0.5427 GB, free: 2.145 MB / 414.1 MB Notification: Performance of SimCode: time 6.61e-07/0.6695, allocations: 0 / 0.5427 GB, free: 2.145 MB / 414.1 MB Notification: Performance of Templates: time 0.3107/0.9802, allocations: 64.16 MB / 0.6053 GB, free: 137.7 MB / 462.1 MB make -j1 -f Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.makefile make -j1 -f Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.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.MethanElectrosynthesisCalcHelperMain.o OMCppChemical_Chemical.Examples.ClimateChange.MethanElectrosynthesisCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppChemical_Chemical.Examples.ClimateChange.MethanElectrosynthesisCalcHelperMain.o] Error 1