Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_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.001559/0.001559, allocations: 109.1 kB / 18.99 MB, free: 2.609 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.001653/0.001653, allocations: 214.7 kB / 22.3 MB, free: 5.281 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.526/1.526, allocations: 230.6 MB / 256.1 MB, free: 7.754 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo): time 0.2198/0.2198, allocations: 23.89 MB / 336.4 MB, free: 10.92 MB / 270.1 MB " [Timeout remaining time 179] Using package Chemical with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/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_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell") translateModel(Chemical.Obsolete.Examples.H2O_ElectrochemicalCell,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_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.002072/0.002072, allocations: 75.02 kB / 471.7 MB, free: 6.957 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4107/0.4128, allocations: 59.86 MB / 0.5191 GB, free: 9.754 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/Obsolete.mo:14337:7-14337: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 2.0.0/Obsolete.mo:14337:7-14337: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.08198/0.4947, allocations: 28.23 MB / 0.5467 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03049/0.5252, allocations: 17.13 MB / 0.5634 GB, free: 11.99 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002426/0.5277, allocations: 27.75 kB / 0.5634 GB, free: 11.96 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002307/0.53, allocations: 467.1 kB / 0.5639 GB, free: 11.62 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006074/0.536, allocations: 1.201 MB / 0.5651 GB, free: 10.6 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01017/0.5462, allocations: 2.902 MB / 0.5679 GB, free: 7.887 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.004077/0.5503, allocations: 2.09 MB / 0.5699 GB, free: 5.785 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001817/0.5521, allocations: 1.054 MB / 0.571 GB, free: 4.68 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001502/0.5536, allocations: 0.9348 MB / 0.5719 GB, free: 3.742 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001663/0.5553, allocations: 0.9413 MB / 0.5728 GB, free: 2.797 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003418/0.5556, allocations: 200 kB / 0.573 GB, free: 2.602 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00662/0.5622, allocations: 1.958 MB / 0.5749 GB, free: 0.6406 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007132/0.5629, allocations: 478.5 kB / 0.5754 GB, free: 176 kB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001389/0.5643, allocations: 0.8248 MB / 0.5762 GB, free: 15.34 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01317/0.5775, allocations: 4.346 MB / 0.5804 GB, free: 10.98 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.073e-06/0.5775, allocations: 0 / 0.5804 GB, free: 10.98 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.5775, allocations: 0 / 0.5804 GB, free: 10.98 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.669e-05/0.5776, allocations: 3.984 kB / 0.5804 GB, free: 10.98 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.005626/0.5832, allocations: 2.327 MB / 0.5827 GB, free: 8.605 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.49e-05/0.5833, allocations: 8.031 kB / 0.5827 GB, free: 8.598 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001896/0.5851, allocations: 447 kB / 0.5831 GB, free: 8.16 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00216/0.5873, allocations: 1.007 MB / 0.5841 GB, free: 7.121 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002522/0.5876, allocations: 246.4 kB / 0.5843 GB, free: 6.855 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002754/0.5878, allocations: 164 kB / 0.5845 GB, free: 6.695 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003851/0.5917, allocations: 2.241 MB / 0.5867 GB, free: 4.387 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.836e-05/0.5917, allocations: 3.938 kB / 0.5867 GB, free: 4.383 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001715/0.5919, allocations: 68 kB / 0.5867 GB, free: 4.316 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.672e-05/0.5919, allocations: 40 kB / 0.5868 GB, free: 4.277 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004698/0.5966, allocations: 2.699 MB / 0.5894 GB, free: 1.57 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.01198/0.6086, allocations: 6.134 MB / 0.5954 GB, free: 11.3 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001852/0.6105, allocations: 0.9873 MB / 0.5964 GB, free: 10.29 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008766/0.6113, allocations: 0.5096 MB / 0.5969 GB, free: 9.766 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007091/0.6184, allocations: 2.979 MB / 0.5998 GB, free: 6.762 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.923e-05/0.6185, allocations: 43.16 kB / 0.5998 GB, free: 6.711 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005243/0.619, allocations: 107.1 kB / 0.5999 GB, free: 6.605 MB / 446.1 MB Notification: Performance of pre-optimization done (n=71): time 2.454e-06/0.619, allocations: 0 / 0.5999 GB, free: 6.605 MB / 446.1 MB Notification: Performance of matching and sorting (n=95): time 0.0181/0.6371, allocations: 4.555 MB / 0.6044 GB, free: 1.996 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.31e-05/0.6372, allocations: 119.8 kB / 0.6045 GB, free: 1.852 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00191/0.6391, allocations: 1.449 MB / 0.6059 GB, free: 392 kB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 9.268e-05/0.6392, allocations: 45.7 kB / 0.6059 GB, free: 340 kB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007587/0.64, allocations: 0.928 MB / 0.6069 GB, free: 15.39 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003555/0.6403, allocations: 365 kB / 0.6072 GB, free: 15.03 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005245/0.6408, allocations: 355.3 kB / 0.6075 GB, free: 14.67 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001954/0.641, allocations: 357.9 kB / 0.6079 GB, free: 14.31 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00103/0.6421, allocations: 0.6325 MB / 0.6085 GB, free: 13.68 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00172/0.6438, allocations: 1.345 MB / 0.6098 GB, free: 12 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002739/0.6465, allocations: 1.933 MB / 0.6117 GB, free: 9.738 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.407e-05/0.6465, allocations: 8 kB / 0.6117 GB, free: 9.73 MB / 462.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.005823/0.6524, allocations: 2.375 MB / 0.614 GB, free: 7.34 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.806e-05/0.6524, allocations: 16.47 kB / 0.614 GB, free: 7.324 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.882e-05/0.6524, allocations: 31.94 kB / 0.6141 GB, free: 7.293 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002497/0.6549, allocations: 378.8 kB / 0.6144 GB, free: 6.91 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002706/0.6576, allocations: 0.5539 MB / 0.615 GB, free: 6.355 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009348/0.667, allocations: 7.378 MB / 0.6222 GB, free: 14.51 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001635/0.6686, allocations: 88.09 kB / 0.6223 GB, free: 14.43 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002118/0.6688, allocations: 108 kB / 0.6224 GB, free: 14.32 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.000797/0.6696, allocations: 369.1 kB / 0.6227 GB, free: 13.95 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003147/0.67, allocations: 119.3 kB / 0.6228 GB, free: 13.83 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004776/0.6747, allocations: 1.518 MB / 0.6243 GB, free: 12.29 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.597e-05/0.6747, allocations: 12 kB / 0.6243 GB, free: 12.28 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.868e-06/0.6748, allocations: 3.984 kB / 0.6243 GB, free: 12.28 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.095e-05/0.6748, allocations: 3.984 kB / 0.6243 GB, free: 12.27 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00699/0.6818, allocations: 2.662 MB / 0.6269 GB, free: 9.473 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.536e-05/0.6818, allocations: 8 kB / 0.6269 GB, free: 9.465 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009234/0.6827, allocations: 219.6 kB / 0.6271 GB, free: 9.25 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002626/0.6853, allocations: 412.9 kB / 0.6275 GB, free: 8.828 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001185/0.6854, allocations: 39.98 kB / 0.6276 GB, free: 8.789 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008665/0.6941, allocations: 7.168 MB / 0.6346 GB, free: 1.152 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.13e-05/0.6941, allocations: 7.938 kB / 0.6346 GB, free: 1.145 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005959/0.7001, allocations: 2.16 MB / 0.6367 GB, free: 14.86 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004755/0.7005, allocations: 127.1 kB / 0.6368 GB, free: 14.73 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003219/0.7009, allocations: 28 kB / 0.6368 GB, free: 14.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008678/0.7017, allocations: 28 kB / 0.6369 GB, free: 14.68 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002936/0.702, allocations: 116.2 kB / 0.637 GB, free: 14.56 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001135/0.7021, allocations: 47.98 kB / 0.637 GB, free: 14.52 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001611/0.7038, allocations: 0.9713 MB / 0.638 GB, free: 13.54 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.7038, allocations: 4 kB / 0.638 GB, free: 13.53 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003569/0.7073, allocations: 0.8182 MB / 0.6388 GB, free: 12.71 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.002385/0.7097, allocations: 0.8975 MB / 0.6397 GB, free: 11.8 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.004001/0.7137, allocations: 1.703 MB / 0.6413 GB, free: 10.08 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.42e-05/0.7137, allocations: 8.125 kB / 0.6413 GB, free: 10.07 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001617/0.7153, allocations: 0.9605 MB / 0.6423 GB, free: 9.062 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001853/0.7172, allocations: 230.9 kB / 0.6425 GB, free: 8.84 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005659/0.7229, allocations: 2.868 MB / 0.6453 GB, free: 5.848 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009493/0.7238, allocations: 0.6369 MB / 0.6459 GB, free: 5.176 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001209/0.725, allocations: 313.8 kB / 0.6462 GB, free: 4.867 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000457/0.7255, allocations: 180.4 kB / 0.6464 GB, free: 4.691 MB / 494.1 MB Notification: Performance of SimCode: time 1.353e-06/0.7255, allocations: 4 kB / 0.6464 GB, free: 4.688 MB / 494.1 MB Notification: Performance of Templates: time 0.05144/0.7769, allocations: 27.79 MB / 0.6735 GB, free: 9.059 MB / 0.5137 GB " [Timeout remaining time 659] make -j1 -f Chemical_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.makefile [Timeout 660] (rm -f Chemical_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe ; mkfifo Chemical_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe ; head -c 1048576 < Chemical_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe >> ../files/Chemical_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.sim & ./Chemical_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.843220392242074] Failed to read output from testmodel.py, exit status != 0: 0.7888615969568491 0.807001256 0.22562800799999996 Calling exit ...