Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_Chemical.Obsolete.Examples.WaterElectrolysis.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.001275/0.001275, allocations: 96.42 kB / 19.7 MB, free: 2.133 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.001417/0.001417, allocations: 207.8 kB / 22.99 MB, free: 4.957 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.383/1.383, allocations: 230.6 MB / 256.8 MB, free: 7.805 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.1327/0.1327, allocations: 23.92 MB / 337.1 MB, free: 10.93 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.WaterElectrolysis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_master_Chemical.Obsolete.Examples.WaterElectrolysis") translateModel(Chemical.Obsolete.Examples.WaterElectrolysis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_master_Chemical.Obsolete.Examples.WaterElectrolysis") [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.002046/0.002046, allocations: 63.91 kB / 472.4 MB, free: 6.961 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3637/0.3657, allocations: 59.87 MB / 0.5198 GB, free: 9.762 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/Obsolete.mo:12638:6-12638:65: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:12638:6-12638:65: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.WaterElectrolysis): time 0.07442/0.4401, allocations: 28.64 MB / 0.5478 GB, free: 11.12 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02249/0.4626, allocations: 15.78 MB / 0.5632 GB, free: 12.77 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001858/0.4645, allocations: 35.69 kB / 0.5632 GB, free: 12.74 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001413/0.4659, allocations: 454.1 kB / 0.5637 GB, free: 12.4 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004348/0.4702, allocations: 1.29 MB / 0.5649 GB, free: 11.3 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007623/0.4779, allocations: 2.577 MB / 0.5674 GB, free: 9.027 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003755/0.4816, allocations: 2.284 MB / 0.5697 GB, free: 6.73 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001714/0.4833, allocations: 1.222 MB / 0.5709 GB, free: 5.453 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001307/0.4846, allocations: 1.06 MB / 0.5719 GB, free: 4.391 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001412/0.4861, allocations: 1.164 MB / 0.573 GB, free: 3.223 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003006/0.4864, allocations: 228 kB / 0.5733 GB, free: 3 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00528/0.4916, allocations: 1.763 MB / 0.575 GB, free: 1.234 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004946/0.4921, allocations: 0.5062 MB / 0.5755 GB, free: 0.7266 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009999/0.4931, allocations: 0.9182 MB / 0.5764 GB, free: 15.8 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007901/0.501, allocations: 4.334 MB / 0.5806 GB, free: 11.45 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.544e-06/0.501, allocations: 4 kB / 0.5806 GB, free: 11.45 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.501, allocations: 0 / 0.5806 GB, free: 11.45 MB / 430.1 MB Notification: Performance of Transformations before backend: time 2.823e-05/0.5011, allocations: 0 / 0.5806 GB, free: 11.45 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: 501 * Number of variables: 501 Notification: Performance of Generate backend data structure: time 0.004493/0.5056, allocations: 2.481 MB / 0.583 GB, free: 8.926 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.11e-05/0.5056, allocations: 12.03 kB / 0.583 GB, free: 8.914 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001668/0.5073, allocations: 439 kB / 0.5835 GB, free: 8.484 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001959/0.5092, allocations: 1.055 MB / 0.5845 GB, free: 7.402 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001853/0.5094, allocations: 207.7 kB / 0.5847 GB, free: 7.188 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003064/0.5097, allocations: 200 kB / 0.5849 GB, free: 6.992 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003606/0.5133, allocations: 2.157 MB / 0.587 GB, free: 4.766 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.414e-05/0.5134, allocations: 4 kB / 0.587 GB, free: 4.762 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001883/0.5136, allocations: 80 kB / 0.5871 GB, free: 4.684 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.823e-05/0.5136, allocations: 48 kB / 0.5871 GB, free: 4.637 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003609/0.5172, allocations: 2.222 MB / 0.5893 GB, free: 2.41 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.009812/0.527, allocations: 5.841 MB / 0.595 GB, free: 12.4 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002636/0.5297, allocations: 1.505 MB / 0.5965 GB, free: 10.88 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008546/0.5305, allocations: 0.5254 MB / 0.597 GB, free: 10.34 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007588/0.5381, allocations: 3.303 MB / 0.6002 GB, free: 7.008 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.525e-05/0.5382, allocations: 51.5 kB / 0.6002 GB, free: 6.949 MB / 446.1 MB Notification: Performance of pre-optimization done (n=88): time 2.775e-06/0.5382, allocations: 0 / 0.6002 GB, free: 6.949 MB / 446.1 MB Notification: Performance of matching and sorting (n=106): time 0.0198/0.558, allocations: 4.669 MB / 0.6048 GB, free: 2.254 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.752e-05/0.558, allocations: 119.8 kB / 0.6049 GB, free: 2.113 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00108/0.5591, allocations: 0.8631 MB / 0.6058 GB, free: 1.227 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 8.392e-05/0.5592, allocations: 45.7 kB / 0.6058 GB, free: 1.176 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006709/0.5599, allocations: 0.9749 MB / 0.6068 GB, free: 192 kB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003555/0.5602, allocations: 404.8 kB / 0.6071 GB, free: 15.79 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004776/0.5607, allocations: 351.3 kB / 0.6075 GB, free: 15.43 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001723/0.5609, allocations: 349.9 kB / 0.6078 GB, free: 15.09 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008139/0.5617, allocations: 459.8 kB / 0.6082 GB, free: 14.63 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001453/0.5631, allocations: 1.195 MB / 0.6094 GB, free: 13.09 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00243/0.5656, allocations: 1.79 MB / 0.6112 GB, free: 10.94 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.266e-05/0.5656, allocations: 8 kB / 0.6112 GB, free: 10.93 MB / 462.1 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.005527/0.5711, allocations: 2.065 MB / 0.6132 GB, free: 8.852 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.897e-05/0.5711, allocations: 19.94 kB / 0.6132 GB, free: 8.832 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.08e-05/0.5712, allocations: 24 kB / 0.6132 GB, free: 8.809 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002769/0.5739, allocations: 374.8 kB / 0.6136 GB, free: 8.434 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00175/0.5757, allocations: 455.3 kB / 0.614 GB, free: 7.988 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005651/0.5813, allocations: 3.804 MB / 0.6177 GB, free: 3.949 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001236/0.5826, allocations: 83.92 kB / 0.6178 GB, free: 3.867 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001786/0.5828, allocations: 104 kB / 0.6179 GB, free: 3.766 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 115 * 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): 216 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,7), (1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0006869/0.5834, allocations: 385 kB / 0.6183 GB, free: 3.379 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002687/0.5837, allocations: 119.2 kB / 0.6184 GB, free: 3.262 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005125/0.5888, allocations: 1.601 MB / 0.62 GB, free: 1.645 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.278e-05/0.5888, allocations: 15.94 kB / 0.62 GB, free: 1.629 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.5889, allocations: 0 / 0.62 GB, free: 1.629 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.426e-05/0.5889, allocations: 11.92 kB / 0.62 GB, free: 1.617 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001903/0.5908, allocations: 1.117 MB / 0.6211 GB, free: 448 kB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.153e-05/0.5908, allocations: 4 kB / 0.6211 GB, free: 444 kB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001427/0.5922, allocations: 235.7 kB / 0.6213 GB, free: 208 kB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00294/0.5951, allocations: 354.7 kB / 0.6216 GB, free: 15.85 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001011/0.5952, allocations: 47.98 kB / 0.6217 GB, free: 15.8 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00543/0.6007, allocations: 3.729 MB / 0.6253 GB, free: 11.84 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.6007, allocations: 7.938 kB / 0.6253 GB, free: 11.83 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005448/0.6061, allocations: 2.203 MB / 0.6275 GB, free: 9.57 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003164/0.6064, allocations: 111.1 kB / 0.6276 GB, free: 9.461 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001556/0.6066, allocations: 28 kB / 0.6276 GB, free: 9.434 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006808/0.6073, allocations: 27.98 kB / 0.6276 GB, free: 9.406 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002112/0.6075, allocations: 104.8 kB / 0.6277 GB, free: 9.305 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001038/0.6076, allocations: 51.98 kB / 0.6278 GB, free: 9.254 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0007006/0.6083, allocations: 0.5045 MB / 0.6283 GB, free: 8.738 MB / 478.1 MB Notification: Performance of sort global known variables: time 9e-08/0.6083, allocations: 4 kB / 0.6283 GB, free: 8.734 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002352/0.6107, allocations: 0.7289 MB / 0.629 GB, free: 8.004 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 7 (O2_gas.logn,H2_gas.logn,anode.temperature,cathode.temperature,water.temperature,air.temperature,liquidWater.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 (109): * Single equations (assignments): 106 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,8), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001414/0.6121, allocations: 0.7302 MB / 0.6297 GB, free: 7.266 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.002768/0.6148, allocations: 1.468 MB / 0.6312 GB, free: 5.777 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.6148, allocations: 448 / 0.6312 GB, free: 5.777 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00132/0.6162, allocations: 0.7683 MB / 0.6319 GB, free: 4.988 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001277/0.6174, allocations: 235.5 kB / 0.6321 GB, free: 4.762 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005349/0.6228, allocations: 3.059 MB / 0.6351 GB, free: 1.629 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007534/0.6235, allocations: 0.6838 MB / 0.6358 GB, free: 0.9102 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001065/0.6246, allocations: 326.1 kB / 0.6361 GB, free: 0.5898 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004347/0.625, allocations: 211.3 kB / 0.6363 GB, free: 392 kB / 478.1 MB Notification: Performance of SimCode: time 7.92e-07/0.625, allocations: 0 / 0.6363 GB, free: 392 kB / 478.1 MB Notification: Performance of Templates: time 0.0458/0.6708, allocations: 27.45 MB / 0.6631 GB, free: 5.121 MB / 0.4981 GB " [Timeout remaining time 659] make -j1 -f Chemical_master_Chemical.Obsolete.Examples.WaterElectrolysis.makefile [Timeout 660] (rm -f Chemical_master_Chemical.Obsolete.Examples.WaterElectrolysis.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.WaterElectrolysis.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.WaterElectrolysis.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.WaterElectrolysis.sim & ./Chemical_master_Chemical.Obsolete.Examples.WaterElectrolysis -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > Chemical_master_Chemical.Obsolete.Examples.WaterElectrolysis.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.909529476004536] Failed to read output from testmodel.py, exit status != 0: 0.6802604779950343 0.693649448 0.189619753 Calling exit ...