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.001256/0.001256, allocations: 78.09 kB / 19.76 MB, free: 1.875 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.001354/0.001354, allocations: 165.2 kB / 23.01 MB, free: 4.598 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.347/1.347, allocations: 177.2 MB / 203.4 MB, free: 8.984 MB / 190.1 MB " [Timeout remaining time 179] 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.1203/0.1203, allocations: 17.44 MB / 277.2 MB, free: 15.23 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.001989/0.001989, allocations: 59.91 kB / 412.6 MB, free: 5.605 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09741/0.0994, allocations: 59.88 MB / 472.5 MB, free: 9.605 MB / 446.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.4003/0.4997, allocations: 28.22 MB / 0.4889 GB, free: 38.5 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.01614/0.5158, allocations: 17.13 MB / 0.5057 GB, free: 29.68 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009615/0.5168, allocations: 24.28 kB / 0.5057 GB, free: 29.66 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001074/0.5178, allocations: 475.9 kB / 0.5061 GB, free: 29.41 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002506/0.5203, allocations: 1.209 MB / 0.5073 GB, free: 28.67 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005974/0.5263, allocations: 2.89 MB / 0.5101 GB, free: 26.98 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.00185/0.5282, allocations: 2.086 MB / 0.5122 GB, free: 25.94 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009325/0.5291, allocations: 1.057 MB / 0.5132 GB, free: 25.41 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007686/0.5299, allocations: 0.9342 MB / 0.5141 GB, free: 25.02 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001035/0.5309, allocations: 0.9451 MB / 0.515 GB, free: 24.67 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002521/0.5312, allocations: 200 kB / 0.5152 GB, free: 24.67 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00445/0.5356, allocations: 1.953 MB / 0.5171 GB, free: 24.25 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000314/0.5359, allocations: 471.4 kB / 0.5176 GB, free: 23.95 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006871/0.5366, allocations: 0.8319 MB / 0.5184 GB, free: 23.51 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005707/0.5423, allocations: 4.347 MB / 0.5226 GB, free: 21.66 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.5423, allocations: 0 / 0.5226 GB, free: 21.66 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.5423, allocations: 1.094 kB / 0.5227 GB, free: 21.66 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.424e-05/0.5423, allocations: 0 / 0.5227 GB, free: 21.66 MB / 446.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.003505/0.5458, allocations: 2.334 MB / 0.5249 GB, free: 20.26 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.056e-05/0.5459, allocations: 9.625 kB / 0.5249 GB, free: 20.26 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001448/0.5473, allocations: 448.6 kB / 0.5254 GB, free: 20.11 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001451/0.5488, allocations: 1.011 MB / 0.5264 GB, free: 19.54 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001467/0.5489, allocations: 238.1 kB / 0.5266 GB, free: 19.35 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002226/0.5491, allocations: 168.6 kB / 0.5267 GB, free: 19.29 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002618/0.5518, allocations: 2.237 MB / 0.5289 GB, free: 18.35 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.497e-05/0.5518, allocations: 7.562 kB / 0.5289 GB, free: 18.35 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001331/0.5519, allocations: 66.25 kB / 0.529 GB, free: 18.3 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.039e-05/0.552, allocations: 39.31 kB / 0.529 GB, free: 18.3 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002881/0.5548, allocations: 2.694 MB / 0.5317 GB, free: 17.45 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.00763/0.5625, allocations: 6.129 MB / 0.5377 GB, free: 13.21 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001273/0.5637, allocations: 0.9834 MB / 0.5386 GB, free: 12.3 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000633/0.5644, allocations: 0.5185 MB / 0.5391 GB, free: 11.82 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00539/0.5698, allocations: 2.96 MB / 0.542 GB, free: 9.301 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.901e-05/0.5698, allocations: 55.91 kB / 0.5421 GB, free: 9.238 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000349/0.5701, allocations: 107.2 kB / 0.5422 GB, free: 9.137 MB / 446.1 MB Notification: Performance of pre-optimization done (n=71): time 2.415e-06/0.5701, allocations: 0 / 0.5422 GB, free: 9.137 MB / 446.1 MB Notification: Performance of matching and sorting (n=95): time 0.01584/0.586, allocations: 4.56 MB / 0.5466 GB, free: 5.137 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.165e-05/0.586, allocations: 115.8 kB / 0.5467 GB, free: 4.996 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001246/0.5872, allocations: 1.448 MB / 0.5481 GB, free: 3.707 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 7.035e-05/0.5873, allocations: 42.45 kB / 0.5482 GB, free: 3.66 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003582/0.5877, allocations: 0.9331 MB / 0.5491 GB, free: 2.805 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001874/0.5879, allocations: 359.1 kB / 0.5494 GB, free: 2.484 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003784/0.5882, allocations: 363.1 kB / 0.5498 GB, free: 2.16 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.891e-05/0.5883, allocations: 354 kB / 0.5501 GB, free: 1.824 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007965/0.5891, allocations: 0.6305 MB / 0.5507 GB, free: 1.273 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001105/0.5902, allocations: 1.345 MB / 0.552 GB, free: 15.7 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002605/0.5928, allocations: 1.936 MB / 0.5539 GB, free: 13.52 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.354e-05/0.5928, allocations: 8 kB / 0.5539 GB, free: 13.51 MB / 462.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.005678/0.5985, allocations: 2.382 MB / 0.5563 GB, free: 11.38 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.756e-05/0.5985, allocations: 17.27 kB / 0.5563 GB, free: 11.36 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.424e-05/0.5986, allocations: 28 kB / 0.5563 GB, free: 11.33 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0025/0.6011, allocations: 372.8 kB / 0.5567 GB, free: 11.05 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002704/0.6038, allocations: 0.568 MB / 0.5572 GB, free: 10.57 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008899/0.6127, allocations: 7.369 MB / 0.5644 GB, free: 2.988 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001413/0.6141, allocations: 94.08 kB / 0.5645 GB, free: 2.898 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001889/0.6143, allocations: 102.8 kB / 0.5646 GB, free: 2.805 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.0007132/0.615, allocations: 368.4 kB / 0.565 GB, free: 2.441 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002723/0.6153, allocations: 119.9 kB / 0.5651 GB, free: 2.324 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004587/0.6199, allocations: 1.521 MB / 0.5666 GB, free: 1.027 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.959e-06/0.6199, allocations: 8 kB / 0.5666 GB, free: 1.02 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.685e-06/0.6199, allocations: 4.656 kB / 0.5666 GB, free: 1.016 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.431e-05/0.6199, allocations: 4.781 kB / 0.5666 GB, free: 1.016 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006685/0.6266, allocations: 2.657 MB / 0.5692 GB, free: 14.62 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.248e-06/0.6266, allocations: 4 kB / 0.5692 GB, free: 14.62 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008789/0.6275, allocations: 219.1 kB / 0.5694 GB, free: 14.44 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002544/0.63, allocations: 406.9 kB / 0.5698 GB, free: 14.12 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.535e-05/0.6301, allocations: 44.02 kB / 0.5698 GB, free: 14.08 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008114/0.6382, allocations: 7.178 MB / 0.5768 GB, free: 6.664 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.467e-06/0.6382, allocations: 11.94 kB / 0.5768 GB, free: 6.652 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004982/0.6432, allocations: 2.153 MB / 0.5789 GB, free: 4.531 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003705/0.6436, allocations: 127.1 kB / 0.5791 GB, free: 4.406 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001603/0.6437, allocations: 24 kB / 0.5791 GB, free: 4.383 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006682/0.6444, allocations: 31.98 kB / 0.5791 GB, free: 4.352 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002033/0.6446, allocations: 112.2 kB / 0.5792 GB, free: 4.242 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.048e-05/0.6447, allocations: 51.98 kB / 0.5793 GB, free: 4.191 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001209/0.6459, allocations: 0.9713 MB / 0.5802 GB, free: 3.211 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6459, allocations: 4 kB / 0.5802 GB, free: 3.207 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.00278/0.6487, allocations: 0.8182 MB / 0.581 GB, free: 2.387 MB / 478.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.001755/0.6504, allocations: 0.8953 MB / 0.5819 GB, free: 1.477 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.003408/0.6539, allocations: 1.699 MB / 0.5836 GB, free: 15.76 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.112e-06/0.6539, allocations: 4.062 kB / 0.5836 GB, free: 15.75 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001442/0.6553, allocations: 0.9643 MB / 0.5845 GB, free: 14.74 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001449/0.6568, allocations: 230.6 kB / 0.5847 GB, free: 14.52 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004639/0.6614, allocations: 2.873 MB / 0.5875 GB, free: 11.52 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007232/0.6621, allocations: 0.6368 MB / 0.5881 GB, free: 10.84 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001037/0.6632, allocations: 317.8 kB / 0.5885 GB, free: 10.53 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003704/0.6635, allocations: 168.4 kB / 0.5886 GB, free: 10.37 MB / 494.1 MB Notification: Performance of SimCode: time 7.92e-07/0.6635, allocations: 4 kB / 0.5886 GB, free: 10.36 MB / 494.1 MB Notification: Performance of Templates: time 0.04647/0.71, allocations: 27.81 MB / 0.6158 GB, free: 14.7 MB / 0.5138 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 -s ida -lv LOG_STATS > Chemical_master_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.77765839593485] Failed to read output from testmodel.py, exit status != 0: 0.7187123569892719 0.732794865 0.187514955 Calling exit ...