Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001608/0.001608, allocations: 110.2 kB / 19.69 MB, free: 2.254 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001841/0.001841, allocations: 215.6 kB / 23.01 MB, free: 4.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.443/1.443, allocations: 230.6 MB / 256.8 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo): time 0.1443/0.1443, allocations: 23.88 MB / 337.1 MB, free: 11.16 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Chemical.Obsolete.Examples.H2O_ElectrochemicalCell,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_master_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell") translateModel(Chemical.Obsolete.Examples.H2O_ElectrochemicalCell,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_master_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell") [Timeout 660] "Notification: Chemical requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002151/0.002151, allocations: 71.89 kB / 472.5 MB, free: 7.141 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3311/0.3333, allocations: 59.87 MB / 0.5199 GB, free: 9.844 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/Obsolete.mo:14335:7-14335: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 master/Obsolete.mo:14335:7-14335: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.Obsolete.Examples.H2O_ElectrochemicalCell): time 0.04256/0.3758, allocations: 29.18 MB / 0.5484 GB, free: 10.77 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02643/0.4023, allocations: 19.53 MB / 0.5674 GB, free: 8.781 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001525/0.4038, allocations: 23.81 kB / 0.5675 GB, free: 8.758 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001538/0.4053, allocations: 0.5032 MB / 0.568 GB, free: 8.363 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004096/0.4094, allocations: 1.239 MB / 0.5692 GB, free: 7.309 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008961/0.4184, allocations: 2.9 MB / 0.572 GB, free: 4.637 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003932/0.4223, allocations: 2.09 MB / 0.574 GB, free: 2.535 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001679/0.424, allocations: 1.065 MB / 0.5751 GB, free: 1.422 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001345/0.4253, allocations: 0.9348 MB / 0.576 GB, free: 496 kB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001655/0.427, allocations: 1.074 MB / 0.577 GB, free: 15.41 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003253/0.4273, allocations: 204 kB / 0.5772 GB, free: 15.21 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006806/0.4341, allocations: 2.079 MB / 0.5793 GB, free: 13.12 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006911/0.4348, allocations: 478.6 kB / 0.5797 GB, free: 12.66 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001358/0.4362, allocations: 0.98 MB / 0.5807 GB, free: 11.67 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01019/0.4463, allocations: 4.354 MB / 0.5849 GB, free: 7.301 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.153e-06/0.4464, allocations: 0 / 0.5849 GB, free: 7.301 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.335e-06/0.4464, allocations: 0 / 0.5849 GB, free: 7.301 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.45e-05/0.4464, allocations: 0 / 0.5849 GB, free: 7.301 MB / 430.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.004988/0.4514, allocations: 2.339 MB / 0.5872 GB, free: 4.918 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.238e-05/0.4514, allocations: 8.031 kB / 0.5872 GB, free: 4.91 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001812/0.4533, allocations: 450.8 kB / 0.5877 GB, free: 4.469 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002026/0.4553, allocations: 1.022 MB / 0.5887 GB, free: 3.414 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002268/0.4555, allocations: 238.4 kB / 0.5889 GB, free: 3.156 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003069/0.4558, allocations: 167.9 kB / 0.589 GB, free: 2.992 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003609/0.4594, allocations: 2.237 MB / 0.5912 GB, free: 0.6875 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.536e-05/0.4595, allocations: 4 kB / 0.5912 GB, free: 0.6836 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001592/0.4596, allocations: 72 kB / 0.5913 GB, free: 0.6133 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.105e-05/0.4597, allocations: 44 kB / 0.5913 GB, free: 0.5703 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004247/0.4639, allocations: 2.719 MB / 0.594 GB, free: 13.84 MB / 446.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.01183/0.4757, allocations: 7.219 MB / 0.601 GB, free: 6.352 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001786/0.4775, allocations: 0.9751 MB / 0.602 GB, free: 5.352 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000872/0.4784, allocations: 0.5174 MB / 0.6025 GB, free: 4.82 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00714/0.4855, allocations: 3.157 MB / 0.6056 GB, free: 1.641 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.478e-05/0.4856, allocations: 47.14 kB / 0.6056 GB, free: 1.586 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004879/0.4861, allocations: 115 kB / 0.6057 GB, free: 1.473 MB / 446.1 MB Notification: Performance of pre-optimization done (n=71): time 2.375e-06/0.4861, allocations: 0 / 0.6057 GB, free: 1.473 MB / 446.1 MB Notification: Performance of matching and sorting (n=95): time 0.01915/0.5052, allocations: 4.562 MB / 0.6102 GB, free: 12.85 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.877e-05/0.5053, allocations: 115.8 kB / 0.6103 GB, free: 12.71 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002236/0.5075, allocations: 1.501 MB / 0.6118 GB, free: 11.19 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001305/0.5077, allocations: 41.7 kB / 0.6118 GB, free: 11.14 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007724/0.5084, allocations: 0.924 MB / 0.6127 GB, free: 10.21 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003454/0.5088, allocations: 353.1 kB / 0.6131 GB, free: 9.859 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005175/0.5093, allocations: 367.3 kB / 0.6134 GB, free: 9.492 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001427/0.5095, allocations: 301.1 kB / 0.6137 GB, free: 9.195 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00108/0.5105, allocations: 0.6364 MB / 0.6143 GB, free: 8.559 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002243/0.5128, allocations: 1.345 MB / 0.6156 GB, free: 6.883 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003055/0.5158, allocations: 1.929 MB / 0.6175 GB, free: 4.625 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.581e-05/0.5158, allocations: 8 kB / 0.6175 GB, free: 4.617 MB / 462.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.006119/0.522, allocations: 2.386 MB / 0.6198 GB, free: 2.207 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.744e-05/0.522, allocations: 16 kB / 0.6199 GB, free: 2.191 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.215e-05/0.522, allocations: 27.94 kB / 0.6199 GB, free: 2.164 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002758/0.5248, allocations: 375.2 kB / 0.6202 GB, free: 1.785 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00284/0.5276, allocations: 0.5656 MB / 0.6208 GB, free: 1.219 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009785/0.5374, allocations: 7.501 MB / 0.6281 GB, free: 9.203 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001516/0.5389, allocations: 83.98 kB / 0.6282 GB, free: 9.121 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002019/0.5391, allocations: 108 kB / 0.6283 GB, free: 9.016 MB / 478.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.0008437/0.54, allocations: 369.7 kB / 0.6287 GB, free: 8.645 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003126/0.5403, allocations: 131.2 kB / 0.6288 GB, free: 8.516 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004928/0.5452, allocations: 1.534 MB / 0.6303 GB, free: 6.957 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.172e-05/0.5452, allocations: 12 kB / 0.6303 GB, free: 6.945 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.5452, allocations: 0 / 0.6303 GB, free: 6.945 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.265e-05/0.5453, allocations: 7.984 kB / 0.6303 GB, free: 6.938 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007546/0.5528, allocations: 2.975 MB / 0.6332 GB, free: 3.812 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-05/0.5528, allocations: 8 kB / 0.6332 GB, free: 3.805 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009076/0.5537, allocations: 215.7 kB / 0.6334 GB, free: 3.594 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002833/0.5566, allocations: 416.9 kB / 0.6338 GB, free: 3.168 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001178/0.5567, allocations: 43.98 kB / 0.6339 GB, free: 3.125 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009215/0.5659, allocations: 7.295 MB / 0.641 GB, free: 11.31 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.759e-06/0.5659, allocations: 8 kB / 0.641 GB, free: 11.3 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005442/0.5713, allocations: 2.168 MB / 0.6431 GB, free: 9.016 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004135/0.5718, allocations: 131.2 kB / 0.6432 GB, free: 8.887 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001874/0.5719, allocations: 27.98 kB / 0.6433 GB, free: 8.859 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007466/0.5727, allocations: 28 kB / 0.6433 GB, free: 8.832 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002144/0.5729, allocations: 112.2 kB / 0.6434 GB, free: 8.723 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001006/0.573, allocations: 51.98 kB / 0.6434 GB, free: 8.672 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001374/0.5744, allocations: 1.036 MB / 0.6445 GB, free: 7.629 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.5744, allocations: 0 / 0.6445 GB, free: 7.629 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.00291/0.5773, allocations: 0.826 MB / 0.6453 GB, free: 6.801 MB / 494.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.001844/0.5791, allocations: 0.8907 MB / 0.6461 GB, free: 5.895 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.00362/0.5828, allocations: 1.707 MB / 0.6478 GB, free: 4.16 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.571e-06/0.5828, allocations: 0.5 kB / 0.6478 GB, free: 4.16 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001576/0.5843, allocations: 0.9644 MB / 0.6487 GB, free: 3.145 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001623/0.586, allocations: 235.9 kB / 0.649 GB, free: 2.914 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005312/0.5913, allocations: 2.917 MB / 0.6518 GB, free: 15.87 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009957/0.5923, allocations: 1.215 MB / 0.653 GB, free: 14.63 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006262/0.5929, allocations: 227.3 kB / 0.6532 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of SimCode: time 1.583e-06/0.5929, allocations: 0 / 0.6532 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of Templates: time 0.0732/0.6661, allocations: 61.4 MB / 0.7132 GB, free: 0.9961 MB / 0.545 GB " [Timeout remaining time 659] make -j1 -f Chemical_master_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.makefile [Timeout 660] (rm -f Chemical_master_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.sim & ./Chemical_master_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_master_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 10.978013871004805] Failed to read output from testmodel.py, exit status != 0: 0.6758273940067738 0.690384235 0.240606444 Calling exit ...