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.001617/0.001617, allocations: 104.4 kB / 19.7 MB, free: 2.125 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.001785/0.001785, allocations: 213.6 kB / 22.99 MB, free: 4.945 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.433/1.433, allocations: 230.6 MB / 256.8 MB, free: 7.797 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.1382/0.1382, allocations: 24 MB / 337.2 MB, free: 10.84 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.002101/0.002101, allocations: 63.91 kB / 472.5 MB, free: 6.844 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3409/0.343, allocations: 59.89 MB / 0.5199 GB, free: 9.688 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.07541/0.4184, allocations: 28.81 MB / 0.5481 GB, free: 10.85 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02495/0.4434, allocations: 15.78 MB / 0.5635 GB, free: 12.51 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002083/0.4454, allocations: 31.75 kB / 0.5635 GB, free: 12.48 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001664/0.4471, allocations: 449.5 kB / 0.5639 GB, free: 12.15 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004742/0.4519, allocations: 1.294 MB / 0.5652 GB, free: 11.05 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007988/0.4598, allocations: 2.583 MB / 0.5677 GB, free: 8.719 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003983/0.4638, allocations: 2.295 MB / 0.57 GB, free: 6.41 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001748/0.4656, allocations: 1.187 MB / 0.5711 GB, free: 5.168 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001538/0.4671, allocations: 1.052 MB / 0.5722 GB, free: 4.113 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001798/0.4689, allocations: 1.019 MB / 0.5732 GB, free: 3.09 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004565/0.4694, allocations: 224 kB / 0.5734 GB, free: 2.871 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005479/0.4748, allocations: 1.724 MB / 0.5751 GB, free: 1.145 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007339/0.4756, allocations: 0.5101 MB / 0.5756 GB, free: 0.6328 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001392/0.477, allocations: 0.9181 MB / 0.5764 GB, free: 15.71 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008886/0.4859, allocations: 4.338 MB / 0.5807 GB, free: 11.36 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.201e-06/0.4859, allocations: 3.938 kB / 0.5807 GB, free: 11.35 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.4859, allocations: 0 / 0.5807 GB, free: 11.35 MB / 430.1 MB Notification: Performance of Transformations before backend: time 7.04e-05/0.4859, allocations: 0 / 0.5807 GB, free: 11.35 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.005176/0.4911, allocations: 2.478 MB / 0.5831 GB, free: 8.832 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.51e-05/0.4912, allocations: 11.97 kB / 0.5831 GB, free: 8.82 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001694/0.4928, allocations: 439 kB / 0.5835 GB, free: 8.391 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002241/0.4951, allocations: 1.047 MB / 0.5846 GB, free: 7.316 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002282/0.4953, allocations: 219.6 kB / 0.5848 GB, free: 7.09 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000372/0.4957, allocations: 196 kB / 0.585 GB, free: 6.898 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003886/0.4996, allocations: 2.16 MB / 0.5871 GB, free: 4.668 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.116e-05/0.4996, allocations: 0 / 0.5871 GB, free: 4.668 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001867/0.4998, allocations: 80 kB / 0.5871 GB, free: 4.59 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.558e-05/0.4998, allocations: 52 kB / 0.5872 GB, free: 4.539 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003868/0.5037, allocations: 2.21 MB / 0.5894 GB, free: 2.324 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.01053/0.5142, allocations: 5.853 MB / 0.5951 GB, free: 12.3 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00281/0.5171, allocations: 1.497 MB / 0.5965 GB, free: 10.79 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009176/0.518, allocations: 0.5294 MB / 0.597 GB, free: 10.25 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008076/0.5261, allocations: 3.31 MB / 0.6003 GB, free: 6.91 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.466e-05/0.5261, allocations: 51.5 kB / 0.6003 GB, free: 6.852 MB / 446.1 MB Notification: Performance of pre-optimization done (n=88): time 3.717e-06/0.5261, allocations: 0 / 0.6003 GB, free: 6.852 MB / 446.1 MB Notification: Performance of matching and sorting (n=106): time 0.01853/0.5446, allocations: 4.661 MB / 0.6049 GB, free: 2.16 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.097e-05/0.5447, allocations: 119.8 kB / 0.605 GB, free: 2.02 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001163/0.5459, allocations: 0.8592 MB / 0.6058 GB, free: 1.137 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001082/0.546, allocations: 45.7 kB / 0.6059 GB, free: 1.086 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000728/0.5467, allocations: 0.9671 MB / 0.6068 GB, free: 108 kB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003911/0.5471, allocations: 408.8 kB / 0.6072 GB, free: 15.7 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005086/0.5476, allocations: 347.4 kB / 0.6075 GB, free: 15.35 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001793/0.5478, allocations: 349.9 kB / 0.6079 GB, free: 15 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008508/0.5486, allocations: 467.8 kB / 0.6083 GB, free: 14.54 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001532/0.5502, allocations: 1.187 MB / 0.6095 GB, free: 13 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002582/0.5528, allocations: 1.794 MB / 0.6112 GB, free: 10.85 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.455e-05/0.5528, allocations: 12 kB / 0.6112 GB, free: 10.84 MB / 462.1 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.005397/0.5582, allocations: 2.054 MB / 0.6132 GB, free: 8.777 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.651e-05/0.5582, allocations: 16 kB / 0.6133 GB, free: 8.762 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.344e-05/0.5582, allocations: 28 kB / 0.6133 GB, free: 8.734 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002438/0.5607, allocations: 374.3 kB / 0.6136 GB, free: 8.359 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001806/0.5625, allocations: 451.2 kB / 0.6141 GB, free: 7.918 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00583/0.5683, allocations: 3.82 MB / 0.6178 GB, free: 3.863 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001304/0.5696, allocations: 83.8 kB / 0.6179 GB, free: 3.781 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002169/0.5698, allocations: 112 kB / 0.618 GB, free: 3.672 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.0007554/0.5706, allocations: 382 kB / 0.6184 GB, free: 3.289 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003324/0.5709, allocations: 119.2 kB / 0.6185 GB, free: 3.172 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004834/0.5758, allocations: 1.605 MB / 0.62 GB, free: 1.547 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.556e-05/0.5758, allocations: 15.94 kB / 0.6201 GB, free: 1.531 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.284e-06/0.5758, allocations: 4 kB / 0.6201 GB, free: 1.527 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.46e-05/0.5758, allocations: 3.984 kB / 0.6201 GB, free: 1.523 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002161/0.5779, allocations: 1.121 MB / 0.6212 GB, free: 348 kB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.682e-06/0.578, allocations: 0 / 0.6212 GB, free: 348 kB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001278/0.5792, allocations: 244 kB / 0.6214 GB, free: 104 kB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002377/0.5816, allocations: 350 kB / 0.6217 GB, free: 15.75 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000142/0.5818, allocations: 43.98 kB / 0.6218 GB, free: 15.71 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005361/0.5871, allocations: 3.725 MB / 0.6254 GB, free: 11.75 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.594e-06/0.5871, allocations: 7.938 kB / 0.6254 GB, free: 11.74 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005247/0.5924, allocations: 2.192 MB / 0.6276 GB, free: 9.492 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003376/0.5927, allocations: 111.2 kB / 0.6277 GB, free: 9.383 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001586/0.5929, allocations: 27.94 kB / 0.6277 GB, free: 9.355 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006659/0.5935, allocations: 35.92 kB / 0.6277 GB, free: 9.32 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002421/0.5938, allocations: 100.8 kB / 0.6278 GB, free: 9.223 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001052/0.5939, allocations: 51.98 kB / 0.6279 GB, free: 9.172 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0007279/0.5946, allocations: 0.5085 MB / 0.6284 GB, free: 8.652 MB / 478.1 MB Notification: Performance of sort global known variables: time 7e-08/0.5946, allocations: 0 / 0.6284 GB, free: 8.652 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002408/0.597, allocations: 0.725 MB / 0.6291 GB, free: 7.926 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.001347/0.5984, allocations: 0.735 MB / 0.6298 GB, free: 7.18 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.002743/0.6011, allocations: 1.462 MB / 0.6312 GB, free: 5.691 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.6011, allocations: 2 kB / 0.6312 GB, free: 5.691 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001362/0.6025, allocations: 0.7768 MB / 0.632 GB, free: 4.895 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001332/0.6038, allocations: 239.4 kB / 0.6322 GB, free: 4.672 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005451/0.6093, allocations: 3.104 MB / 0.6352 GB, free: 1.492 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007756/0.61, allocations: 0.6682 MB / 0.6359 GB, free: 0.7891 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006504/0.6107, allocations: 271.2 kB / 0.6361 GB, free: 0.5234 MB / 478.1 MB Notification: Performance of SimCode: time 1.022e-06/0.6107, allocations: 0 / 0.6361 GB, free: 0.5234 MB / 478.1 MB Notification: Performance of Templates: time 0.05711/0.6678, allocations: 44.05 MB / 0.6792 GB, free: 4.488 MB / 0.5137 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 -lv LOG_STATS > Chemical_master_Chemical.Obsolete.Examples.WaterElectrolysis.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 10.050493236631155] Failed to read output from testmodel.py, exit status != 0: 0.6777551723644137 0.691883797 0.20259030600000003 Calling exit ...