Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.H2O_ElectrochemicalCell.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001722/0.001722, allocations: 102.8 kB / 16.45 MB, free: 6.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001783/0.001783, allocations: 187.8 kB / 19.4 MB, free: 3.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.489/1.489, allocations: 225.6 MB / 247.8 MB, free: 13.96 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1033/0.1033, allocations: 15.54 MB / 318.2 MB, free: 10.23 MB / 254.1 MB " [Timeout remaining time 180] Using package Chemical with version 1.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/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.H2O_ElectrochemicalCell,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.H2O_ElectrochemicalCell") translateModel(Chemical.Examples.H2O_ElectrochemicalCell,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.H2O_ElectrochemicalCell") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001952/0.001952, allocations: 71.88 kB / 445.4 MB, free: 13.09 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.1057, allocations: 56.55 MB / 0.4902 GB, free: 4.434 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:4740:7-4740:66: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.1-master/package.mo:4740:7-4740:66: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.H2O_ElectrochemicalCell): time 0.4704/0.5761, allocations: 28.72 MB / 0.5182 GB, free: 5.852 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02633/0.6024, allocations: 19.44 MB / 0.5372 GB, free: 12.1 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0022/0.6046, allocations: 22.03 kB / 0.5372 GB, free: 12.09 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00239/0.607, allocations: 0.4943 MB / 0.5377 GB, free: 11.81 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007467/0.6145, allocations: 1.239 MB / 0.5389 GB, free: 11.03 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01306/0.6276, allocations: 2.845 MB / 0.5417 GB, free: 9.352 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004985/0.6325, allocations: 2.1 MB / 0.5438 GB, free: 8.309 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002399/0.6349, allocations: 1.098 MB / 0.5448 GB, free: 7.746 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002382/0.6373, allocations: 0.9117 MB / 0.5457 GB, free: 7.363 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00247/0.6398, allocations: 1.068 MB / 0.5468 GB, free: 6.887 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003386/0.6401, allocations: 201.8 kB / 0.547 GB, free: 6.887 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01174/0.6519, allocations: 2.084 MB / 0.549 GB, free: 6.176 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001435/0.6533, allocations: 483.6 kB / 0.5495 GB, free: 5.781 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002511/0.6558, allocations: 0.9822 MB / 0.5504 GB, free: 5.117 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01682/0.6726, allocations: 4.22 MB / 0.5545 GB, free: 2.449 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.306e-06/0.6727, allocations: 0 / 0.5545 GB, free: 2.449 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.487e-06/0.6727, allocations: 4 kB / 0.5545 GB, free: 2.445 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.587e-05/0.6727, allocations: 0 / 0.5545 GB, free: 2.445 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 422 * Number of variables: 422 Notification: Performance of Generate backend data structure: time 0.005466/0.6782, allocations: 2.408 MB / 0.5569 GB, free: 0.7227 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.439e-05/0.6782, allocations: 7.5 kB / 0.5569 GB, free: 0.7227 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001735/0.68, allocations: 449 kB / 0.5573 GB, free: 0.4961 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001951/0.6819, allocations: 1.08 MB / 0.5584 GB, free: 15.66 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001692/0.6821, allocations: 186.3 kB / 0.5586 GB, free: 15.53 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002468/0.6823, allocations: 167.7 kB / 0.5587 GB, free: 15.47 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003998/0.6863, allocations: 2.216 MB / 0.5609 GB, free: 14.12 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.788e-05/0.6864, allocations: 0 / 0.5609 GB, free: 14.12 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001714/0.6865, allocations: 66.25 kB / 0.561 GB, free: 14.07 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.571e-05/0.6866, allocations: 43.09 kB / 0.561 GB, free: 14.07 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004044/0.6906, allocations: 2.684 MB / 0.5636 GB, free: 12.84 MB / 414.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.01179/0.7024, allocations: 7.246 MB / 0.5707 GB, free: 7.23 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001747/0.7042, allocations: 1.136 MB / 0.5718 GB, free: 6.5 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008677/0.705, allocations: 0.5177 MB / 0.5723 GB, free: 6.211 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008641/0.7137, allocations: 5.145 MB / 0.5773 GB, free: 0.7852 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.041e-05/0.7137, allocations: 39.12 kB / 0.5774 GB, free: 0.7383 MB / 414.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005659/0.7143, allocations: 115 kB / 0.5775 GB, free: 0.625 MB / 414.1 MB Notification: Performance of pre-optimization done (n=71): time 3.166e-06/0.7143, allocations: 4 kB / 0.5775 GB, free: 0.6211 MB / 414.1 MB Notification: Performance of matching and sorting (n=95): time 0.01898/0.7333, allocations: 4.858 MB / 0.5822 GB, free: 11.64 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001095/0.7334, allocations: 119.8 kB / 0.5823 GB, free: 11.5 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002195/0.7356, allocations: 1.474 MB / 0.5838 GB, free: 10.01 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000123/0.7357, allocations: 41.7 kB / 0.5838 GB, free: 9.965 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007892/0.7365, allocations: 0.9278 MB / 0.5847 GB, free: 9.023 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004067/0.7369, allocations: 357 kB / 0.5851 GB, free: 8.672 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005671/0.7374, allocations: 359.3 kB / 0.5854 GB, free: 8.312 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001416/0.7376, allocations: 305.1 kB / 0.5857 GB, free: 8.012 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00101/0.7386, allocations: 0.6247 MB / 0.5863 GB, free: 7.387 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001752/0.7404, allocations: 1.325 MB / 0.5876 GB, free: 5.73 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002873/0.7432, allocations: 1.925 MB / 0.5895 GB, free: 3.469 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.184e-05/0.7432, allocations: 11.94 kB / 0.5895 GB, free: 3.457 MB / 430.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.005694/0.7489, allocations: 2.367 MB / 0.5918 GB, free: 1.074 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.046e-05/0.749, allocations: 19.94 kB / 0.5918 GB, free: 1.055 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.811e-05/0.749, allocations: 27.94 kB / 0.5918 GB, free: 1.027 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002463/0.7515, allocations: 371.2 kB / 0.5922 GB, free: 0.6523 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00266/0.7541, allocations: 0.5617 MB / 0.5928 GB, free: 92 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009293/0.7634, allocations: 7.908 MB / 0.6005 GB, free: 7.566 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00169/0.7651, allocations: 79.86 kB / 0.6006 GB, free: 7.488 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002175/0.7653, allocations: 108 kB / 0.6007 GB, free: 7.383 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * 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): 213 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,1), (1,1), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0007803/0.7661, allocations: 373.1 kB / 0.601 GB, free: 7.008 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003795/0.7665, allocations: 131.2 kB / 0.6011 GB, free: 6.879 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00488/0.7714, allocations: 1.527 MB / 0.6026 GB, free: 5.316 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-05/0.7714, allocations: 12 kB / 0.6026 GB, free: 5.305 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.213e-06/0.7714, allocations: 0 / 0.6026 GB, free: 5.305 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.747e-05/0.7714, allocations: 7.969 kB / 0.6026 GB, free: 5.297 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007286/0.7787, allocations: 3.01 MB / 0.6056 GB, free: 2.125 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.898e-06/0.7787, allocations: 4.875 kB / 0.6056 GB, free: 2.121 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008377/0.7796, allocations: 219.7 kB / 0.6058 GB, free: 1.906 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00255/0.7821, allocations: 408.7 kB / 0.6062 GB, free: 1.488 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001002/0.7822, allocations: 43.98 kB / 0.6062 GB, free: 1.445 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008782/0.791, allocations: 7.715 MB / 0.6138 GB, free: 9.109 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.011e-05/0.791, allocations: 11.94 kB / 0.6138 GB, free: 9.098 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005379/0.7964, allocations: 2.16 MB / 0.6159 GB, free: 6.82 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005662/0.7969, allocations: 200.3 kB / 0.6161 GB, free: 6.605 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002053/0.7972, allocations: 35.98 kB / 0.6161 GB, free: 6.57 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007167/0.7979, allocations: 28 kB / 0.6161 GB, free: 6.543 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002548/0.7981, allocations: 112.3 kB / 0.6162 GB, free: 6.43 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001052/0.7982, allocations: 60.11 kB / 0.6163 GB, free: 6.371 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001466/0.7997, allocations: 1.009 MB / 0.6173 GB, free: 5.355 MB / 462.1 MB Notification: Performance of sort global known variables: time 1e-07/0.7997, allocations: 0 / 0.6173 GB, free: 5.355 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003838/0.8035, allocations: 0.8299 MB / 0.6181 GB, free: 4.523 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * 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 (101): * Single equations (assignments): 95 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 5 systems {(1,1), (1,1), (1,3), (1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002492/0.806, allocations: 0.8868 MB / 0.619 GB, free: 3.625 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00436/0.8104, allocations: 1.702 MB / 0.6206 GB, free: 1.902 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.036e-05/0.8104, allocations: 0 / 0.6206 GB, free: 1.902 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001786/0.8122, allocations: 0.9541 MB / 0.6216 GB, free: 0.8984 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001886/0.8141, allocations: 227.4 kB / 0.6218 GB, free: 0.6758 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005942/0.82, allocations: 2.874 MB / 0.6246 GB, free: 13.68 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001079/0.8211, allocations: 1.219 MB / 0.6258 GB, free: 12.43 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001257/0.8223, allocations: 334.3 kB / 0.6261 GB, free: 12.1 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004386/0.8228, allocations: 175.3 kB / 0.6263 GB, free: 11.93 MB / 478.1 MB Notification: Performance of SimCode: time 1.373e-06/0.8228, allocations: 4 kB / 0.6263 GB, free: 11.93 MB / 478.1 MB Notification: Performance of Templates: time 0.05097/0.8738, allocations: 28.28 MB / 0.6539 GB, free: 15.73 MB / 0.4982 GB " [Timeout remaining time 659] make -j1 -f Chemical_Chemical.Examples.H2O_ElectrochemicalCell.makefile [Timeout 660] (rm -f Chemical_Chemical.Examples.H2O_ElectrochemicalCell.pipe ; mkfifo Chemical_Chemical.Examples.H2O_ElectrochemicalCell.pipe ; head -c 1048576 < Chemical_Chemical.Examples.H2O_ElectrochemicalCell.pipe >> ../files/Chemical_Chemical.Examples.H2O_ElectrochemicalCell.sim & ./Chemical_Chemical.Examples.H2O_ElectrochemicalCell -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.H2O_ElectrochemicalCell.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.697355529293418]