Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.ElectrochemicalCell.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.ElectrochemicalCell,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.ElectrochemicalCell") translateModel(Chemical.Examples.ElectrochemicalCell,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.ElectrochemicalCell") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008738/0.0008737, allocations: 103 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.001065/0.001065, allocations: 173.1 kB / 16.58 MB, free: 6.035 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.553/1.553, allocations: 223.2 MB / 240.6 MB, free: 5.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.3205/0.3205, allocations: 15.27 MB / 307 MB, free: 15.84 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003784/0.0003784, allocations: 11.98 kB / 372.1 MB, free: 3.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4213/0.4217, allocations: 54.62 MB / 426.7 MB, free: 40.26 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.ElectrochemicalCell): time 0.009476/0.4312, allocations: 10.54 MB / 437.3 MB, free: 35.87 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02591/0.4572, allocations: 26.26 MB / 463.5 MB, free: 16.8 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002994/0.4602, allocations: 44.72 kB / 463.6 MB, free: 16.78 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001987/0.4623, allocations: 0.5883 MB / 464.1 MB, free: 16.47 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007726/0.47, allocations: 1.995 MB / 466.1 MB, free: 15.25 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01223/0.4823, allocations: 3.12 MB / 469.3 MB, free: 13.44 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005299/0.4876, allocations: 2.615 MB / 471.9 MB, free: 12.14 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003672/0.4913, allocations: 1.293 MB / 473.2 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004367/0.4957, allocations: 1.06 MB / 474.2 MB, free: 11.26 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004365/0.5001, allocations: 1.312 MB / 475.5 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001392/0.5015, allocations: 135.8 kB / 475.7 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01419/0.5157, allocations: 2.842 MB / 478.5 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002216/0.518, allocations: 467.2 kB / 479 MB, free: 9.852 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003117/0.5211, allocations: 453.6 kB / 479.4 MB, free: 9.621 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01246/0.5336, allocations: 4.477 MB / 483.9 MB, free: 7.914 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.055e-05/0.5337, allocations: 1.156 kB / 483.9 MB, free: 7.914 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.248e-06/0.5337, allocations: 0 / 483.9 MB, free: 7.914 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002275/0.5339, allocations: 0 / 483.9 MB, free: 7.914 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: 556 * Number of variables: 556 Notification: Performance of Generate backend data structure: time 0.0107/0.5446, allocations: 2.587 MB / 486.5 MB, free: 6.395 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.895e-05/0.5447, allocations: 10 kB / 486.5 MB, free: 6.395 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003787/0.5485, allocations: 0.5367 MB / 487 MB, free: 6.223 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004082/0.5526, allocations: 1.221 MB / 488.2 MB, free: 5.508 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004091/0.5531, allocations: 221.7 kB / 488.5 MB, free: 5.367 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001368/0.5545, allocations: 225.4 kB / 488.7 MB, free: 5.289 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007169/0.5617, allocations: 2.648 MB / 491.3 MB, free: 3.988 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.338e-05/0.5617, allocations: 5.234 kB / 491.3 MB, free: 3.984 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002141/0.5619, allocations: 91.09 kB / 491.4 MB, free: 3.914 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.647e-05/0.562, allocations: 52.25 kB / 491.5 MB, free: 3.914 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005301/0.5673, allocations: 3.294 MB / 494.8 MB, free: 1.758 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.01383/0.5812, allocations: 8.615 MB / 0.4916 GB, free: 8.801 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002686/0.5839, allocations: 1.986 MB / 0.4935 GB, free: 6.723 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00135/0.5853, allocations: 0.9173 MB / 0.4944 GB, free: 5.801 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01172/0.597, allocations: 7.747 MB / 0.502 GB, free: 13.2 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.53e-05/0.5971, allocations: 51.77 kB / 0.502 GB, free: 13.14 MB / 382.1 MB Notification: Performance of pre-optimization done (n=128): time 3.707e-06/0.5971, allocations: 0 / 0.502 GB, free: 13.14 MB / 382.1 MB Notification: Performance of matching and sorting (n=181): time 0.03064/0.6277, allocations: 8.276 MB / 0.5101 GB, free: 4.766 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001438/0.628, allocations: 103 kB / 0.5102 GB, free: 4.648 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002258/0.6302, allocations: 1.343 MB / 0.5115 GB, free: 3.289 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001422/0.6304, allocations: 61.73 kB / 0.5116 GB, free: 3.223 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000981/0.6314, allocations: 1.042 MB / 0.5126 GB, free: 2.164 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006867/0.6321, allocations: 0.6317 MB / 0.5132 GB, free: 1.523 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001416/0.6322, allocations: 52 kB / 0.5133 GB, free: 1.473 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002689/0.6325, allocations: 395.1 kB / 0.5136 GB, free: 1.082 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001587/0.6341, allocations: 0.8053 MB / 0.5144 GB, free: 280 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002287/0.6364, allocations: 1.646 MB / 0.516 GB, free: 14.23 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001821/0.6382, allocations: 1.044 MB / 0.5171 GB, free: 13.19 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.52e-05/0.6383, allocations: 8 kB / 0.5171 GB, free: 13.18 MB / 398.1 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.007981/0.6462, allocations: 3.026 MB / 0.52 GB, free: 10.14 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.833e-05/0.6463, allocations: 19.95 kB / 0.52 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.794e-05/0.6464, allocations: 32.34 kB / 0.5201 GB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003386/0.6498, allocations: 0.5377 MB / 0.5206 GB, free: 9.535 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003689/0.6535, allocations: 0.7958 MB / 0.5214 GB, free: 8.738 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00924/0.6628, allocations: 7.487 MB / 0.5287 GB, free: 0.668 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002597/0.6654, allocations: 139.8 kB / 0.5288 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002695/0.6657, allocations: 151.9 kB / 0.529 GB, free: 392 kB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 124 * 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 (311): * Single equations (assignments): 305 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 3 {1 6,1 1,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.00113/0.6668, allocations: 455.4 kB / 0.5294 GB, free: 15.93 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003538/0.6672, allocations: 161.9 kB / 0.5296 GB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007107/0.6743, allocations: 2.583 MB / 0.5321 GB, free: 13.16 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.552e-05/0.6744, allocations: 16 kB / 0.5321 GB, free: 13.14 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.206e-05/0.6744, allocations: 11.81 kB / 0.5321 GB, free: 13.13 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.085e-05/0.6744, allocations: 7.969 kB / 0.5321 GB, free: 13.12 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0108/0.6852, allocations: 4.751 MB / 0.5368 GB, free: 8.137 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.361e-05/0.6853, allocations: 16.14 kB / 0.5368 GB, free: 8.121 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001614/0.6869, allocations: 423.4 kB / 0.5372 GB, free: 7.707 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003412/0.6903, allocations: 0.5664 MB / 0.5377 GB, free: 7.121 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002025/0.6906, allocations: 87.95 kB / 0.5378 GB, free: 7.035 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008654/0.6992, allocations: 7.281 MB / 0.5449 GB, free: 15.16 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.268e-05/0.6993, allocations: 15.94 kB / 0.5449 GB, free: 15.14 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007555/0.7068, allocations: 3.454 MB / 0.5483 GB, free: 11.5 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009376/0.7078, allocations: 258.7 kB / 0.5486 GB, free: 11.23 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002724/0.7081, allocations: 52 kB / 0.5486 GB, free: 11.18 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00101/0.7091, allocations: 83.81 kB / 0.5487 GB, free: 11.1 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000303/0.7094, allocations: 184.9 kB / 0.5489 GB, free: 10.92 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001643/0.7096, allocations: 95.95 kB / 0.549 GB, free: 10.82 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.00134/0.711, allocations: 0.8772 MB / 0.5498 GB, free: 9.945 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.711, allocations: 0 / 0.5498 GB, free: 9.945 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.005319/0.7163, allocations: 1.179 MB / 0.551 GB, free: 8.766 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 51 * Number of states: 8 (cathode.temperature,Ag.logn,anode.temperature,solution1.temperature,Cl.logn,AgCl.logn,H.logn,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 (198): * Single equations (assignments): 192 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 5 {1 6,1 1,1 3,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.003527/0.7198, allocations: 1.26 MB / 0.5522 GB, free: 7.492 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005241/0.7251, allocations: 2.452 MB / 0.5546 GB, free: 5.016 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.045e-05/0.7251, allocations: 4 kB / 0.5546 GB, free: 5.012 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002149/0.7273, allocations: 1.414 MB / 0.556 GB, free: 3.547 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002644/0.7299, allocations: 342.9 kB / 0.5563 GB, free: 3.215 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007879/0.7378, allocations: 4.907 MB / 0.5611 GB, free: 14.12 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001208/0.7391, allocations: 1.425 MB / 0.5625 GB, free: 12.67 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001034/0.7401, allocations: 359.2 kB / 0.5628 GB, free: 12.32 MB / 446.1 MB Notification: Performance of SimCode: time 1.493e-06/0.7401, allocations: 0 / 0.5628 GB, free: 12.32 MB / 446.1 MB Notification: Performance of Templates: time 0.3998/1.14, allocations: 81.33 MB / 0.6422 GB, free: 114.4 MB / 462.1 MB make -j1 -f Chemical_Chemical.Examples.ElectrochemicalCell.makefile make -j1 -f Chemical_Chemical.Examples.ElectrochemicalCell.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.ElectrochemicalCellCalcHelperMain.o OMCppChemical_Chemical.Examples.ElectrochemicalCellCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppChemical_Chemical.Examples.ElectrochemicalCellCalcHelperMain.o] Error 1