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 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001299/0.001299, allocations: 106.6 kB / 18.19 MB, free: 4.117 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001312/0.001312, allocations: 192.4 kB / 21.34 MB, free: 0.9766 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.44/1.44, allocations: 225.6 MB / 249.9 MB, free: 3.227 MB / 190.1 MB [Timeout remaining time 88] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08861/0.08861, allocations: 15.54 MB / 320.6 MB, free: 13.21 MB / 254.1 MB [Timeout remaining time 90] 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=500,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.H2O_ElectrochemicalCell") translateModel(Chemical.Examples.H2O_ElectrochemicalCell,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.H2O_ElectrochemicalCell") [Timeout 660] Notification: Performance of FrontEnd - loaded program: time 0.001971/0.001971, allocations: 64.92 kB / 448.6 MB, free: 47 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.11/0.112, allocations: 56.57 MB / 0.4933 GB, free: 19.48 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.03596/0.1479, allocations: 28.67 MB / 0.5213 GB, free: 8.91 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0255/0.1734, allocations: 19.44 MB / 0.5403 GB, free: 5.398 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001512/0.175, allocations: 19.88 kB / 0.5404 GB, free: 5.379 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001664/0.1766, allocations: 0.4963 MB / 0.5408 GB, free: 4.879 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004015/0.1806, allocations: 1.237 MB / 0.542 GB, free: 3.633 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00821/0.1888, allocations: 2.85 MB / 0.5448 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004128/0.193, allocations: 2.098 MB / 0.5469 GB, free: 14.66 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001869/0.1948, allocations: 1.096 MB / 0.5479 GB, free: 13.51 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0017/0.1965, allocations: 0.9153 MB / 0.5488 GB, free: 12.59 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001683/0.1982, allocations: 1.07 MB / 0.5499 GB, free: 11.52 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003295/0.1986, allocations: 200 kB / 0.5501 GB, free: 11.32 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007937/0.2065, allocations: 2.079 MB / 0.5521 GB, free: 9.242 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006778/0.2072, allocations: 474.6 kB / 0.5526 GB, free: 8.777 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001459/0.2086, allocations: 0.98 MB / 0.5535 GB, free: 7.793 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01107/0.2197, allocations: 4.225 MB / 0.5576 GB, free: 3.551 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.79e-06/0.2197, allocations: 0 / 0.5576 GB, free: 3.551 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.2197, allocations: 4 kB / 0.5576 GB, free: 3.547 MB / 414.1 MB Notification: Performance of Transformations before backend: time 3.468e-05/0.2197, allocations: 0 / 0.5576 GB, free: 3.547 MB / 414.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.005/0.2247, allocations: 2.403 MB / 0.56 GB, free: 1.082 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.412e-05/0.2248, allocations: 8.031 kB / 0.56 GB, free: 1.074 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001765/0.2266, allocations: 443 kB / 0.5604 GB, free: 0.6406 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002013/0.2286, allocations: 1.08 MB / 0.5615 GB, free: 15.52 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002006/0.2288, allocations: 187 kB / 0.5617 GB, free: 15.32 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003013/0.2291, allocations: 168 kB / 0.5618 GB, free: 15.16 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003711/0.2328, allocations: 2.218 MB / 0.564 GB, free: 12.87 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.164e-05/0.2328, allocations: 0 / 0.564 GB, free: 12.87 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001817/0.233, allocations: 79.92 kB / 0.5641 GB, free: 12.79 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.737e-05/0.233, allocations: 40 kB / 0.5641 GB, free: 12.75 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004279/0.2373, allocations: 2.684 MB / 0.5667 GB, free: 10.06 MB / 430.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.01197/0.2493, allocations: 7.252 MB / 0.5738 GB, free: 2.535 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001938/0.2512, allocations: 1.142 MB / 0.5749 GB, free: 1.336 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008865/0.2521, allocations: 0.5096 MB / 0.5754 GB, free: 0.8125 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008756/0.2609, allocations: 5.14 MB / 0.5804 GB, free: 11.15 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.836e-05/0.2609, allocations: 43.12 kB / 0.5805 GB, free: 11.1 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005721/0.2615, allocations: 115 kB / 0.5806 GB, free: 10.99 MB / 446.1 MB Notification: Performance of pre-optimization done (n=71): time 3.236e-06/0.2615, allocations: 0 / 0.5806 GB, free: 10.99 MB / 446.1 MB Notification: Performance of matching and sorting (n=95): time 0.02007/0.2816, allocations: 4.872 MB / 0.5853 GB, free: 5.996 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.089e-05/0.2817, allocations: 111.8 kB / 0.5854 GB, free: 5.863 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001906/0.2836, allocations: 1.474 MB / 0.5869 GB, free: 4.375 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001253/0.2837, allocations: 41.7 kB / 0.5869 GB, free: 4.328 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007009/0.2844, allocations: 0.9241 MB / 0.5878 GB, free: 3.391 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003537/0.2847, allocations: 365 kB / 0.5882 GB, free: 3.031 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005265/0.2853, allocations: 355.3 kB / 0.5885 GB, free: 2.676 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001269/0.2854, allocations: 301.1 kB / 0.5888 GB, free: 2.379 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001032/0.2864, allocations: 0.6285 MB / 0.5894 GB, free: 1.75 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001647/0.2881, allocations: 1.325 MB / 0.5907 GB, free: 96 kB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002679/0.2908, allocations: 1.925 MB / 0.5926 GB, free: 13.83 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.01e-05/0.2908, allocations: 4 kB / 0.5926 GB, free: 13.83 MB / 462.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.005851/0.2966, allocations: 2.363 MB / 0.5949 GB, free: 11.45 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.982e-05/0.2967, allocations: 20.06 kB / 0.5949 GB, free: 11.43 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.762e-05/0.2967, allocations: 27.94 kB / 0.5949 GB, free: 11.4 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002741/0.2994, allocations: 374.8 kB / 0.5953 GB, free: 11.02 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002923/0.3024, allocations: 0.5656 MB / 0.5959 GB, free: 10.46 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009584/0.3119, allocations: 7.912 MB / 0.6036 GB, free: 1.93 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001832/0.3138, allocations: 84.11 kB / 0.6037 GB, free: 1.848 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002507/0.314, allocations: 104 kB / 0.6038 GB, free: 1.746 MB / 462.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.0009006/0.3149, allocations: 380.2 kB / 0.6041 GB, free: 1.367 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003971/0.3153, allocations: 127.2 kB / 0.6042 GB, free: 1.242 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2545/0.5698, allocations: 1.528 MB / 0.6057 GB, free: 96.57 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.01e-05/0.5698, allocations: 12.66 kB / 0.6058 GB, free: 96.57 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.105e-06/0.5698, allocations: 0 / 0.6058 GB, free: 96.57 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-05/0.5699, allocations: 5.234 kB / 0.6058 GB, free: 96.57 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007331/0.5772, allocations: 3.004 MB / 0.6087 GB, free: 95.99 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.448e-05/0.5772, allocations: 7.922 kB / 0.6087 GB, free: 95.99 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009208/0.5781, allocations: 216.8 kB / 0.6089 GB, free: 95.99 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002909/0.581, allocations: 406 kB / 0.6093 GB, free: 95.94 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000108/0.5811, allocations: 42.77 kB / 0.6093 GB, free: 95.94 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006742/0.5879, allocations: 7.714 MB / 0.6169 GB, free: 89.19 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.007e-05/0.5879, allocations: 11.31 kB / 0.6169 GB, free: 89.18 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005091/0.593, allocations: 2.169 MB / 0.619 GB, free: 88.24 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004178/0.5934, allocations: 206.8 kB / 0.6192 GB, free: 88.14 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001666/0.5936, allocations: 24.97 kB / 0.6192 GB, free: 88.13 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007525/0.5943, allocations: 28.38 kB / 0.6192 GB, free: 88.11 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002254/0.5946, allocations: 109.5 kB / 0.6193 GB, free: 88.09 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.842e-05/0.5946, allocations: 49.81 kB / 0.6194 GB, free: 88.08 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001477/0.5961, allocations: 1.021 MB / 0.6204 GB, free: 87.62 MB / 462.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5961, allocations: 0.625 kB / 0.6204 GB, free: 87.62 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003549/0.5997, allocations: 0.8242 MB / 0.6212 GB, free: 87.55 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.001787/0.6015, allocations: 0.8878 MB / 0.6221 GB, free: 87.42 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003215/0.6047, allocations: 1.695 MB / 0.6237 GB, free: 86.72 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.05e-05/0.6047, allocations: 1.625 kB / 0.6237 GB, free: 86.72 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001252/0.6059, allocations: 0.9606 MB / 0.6247 GB, free: 86.09 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001539/0.6075, allocations: 230.7 kB / 0.6249 GB, free: 86.01 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004019/0.6115, allocations: 2.926 MB / 0.6277 GB, free: 84.42 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006816/0.6122, allocations: 1.217 MB / 0.6289 GB, free: 83.7 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005468/0.6127, allocations: 225.8 kB / 0.6291 GB, free: 83.68 MB / 462.1 MB Notification: Performance of SimCode: time 8.91e-07/0.6127, allocations: 0 / 0.6291 GB, free: 83.68 MB / 462.1 MB Notification: Performance of Templates: time 0.04689/0.6596, allocations: 60.9 MB / 0.6886 GB, free: 28.37 MB / 462.1 MB [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]