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.001801/0.001801, allocations: 104.8 kB / 16.45 MB, free: 6.453 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.00235/0.00235, allocations: 216.2 kB / 19.43 MB, free: 3.625 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.448/1.448, allocations: 230.6 MB / 252.8 MB, free: 8.941 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.1395/0.1395, allocations: 23.88 MB / 332.7 MB, free: 12.3 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.002233/0.002233, allocations: 71.89 kB / 466.5 MB, free: 9.52 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3142/0.3165, allocations: 59.83 MB / 0.514 GB, free: 9.145 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.0402/0.3567, allocations: 29.77 MB / 0.5431 GB, free: 11.04 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02508/0.3818, allocations: 17.9 MB / 0.5606 GB, free: 10.55 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001586/0.3833, allocations: 27.81 kB / 0.5606 GB, free: 10.52 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001451/0.3848, allocations: 497.6 kB / 0.5611 GB, free: 10.14 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004256/0.389, allocations: 1.314 MB / 0.5624 GB, free: 9.023 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007628/0.3967, allocations: 2.542 MB / 0.5648 GB, free: 6.949 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003971/0.4006, allocations: 2.293 MB / 0.5671 GB, free: 4.816 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00184/0.4025, allocations: 1.234 MB / 0.5683 GB, free: 3.527 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001385/0.4039, allocations: 1.052 MB / 0.5693 GB, free: 2.473 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001743/0.4056, allocations: 1.164 MB / 0.5705 GB, free: 1.305 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003907/0.406, allocations: 227.9 kB / 0.5707 GB, free: 1.082 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006075/0.4121, allocations: 1.829 MB / 0.5725 GB, free: 15.25 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006246/0.4127, allocations: 0.5024 MB / 0.5729 GB, free: 14.75 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001255/0.414, allocations: 1.097 MB / 0.574 GB, free: 13.64 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008641/0.4226, allocations: 4.346 MB / 0.5783 GB, free: 9.281 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.4226, allocations: 0 / 0.5783 GB, free: 9.281 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.4226, allocations: 0 / 0.5783 GB, free: 9.281 MB / 430.1 MB Notification: Performance of Transformations before backend: time 4.477e-05/0.4226, allocations: 0 / 0.5783 GB, free: 9.281 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.005026/0.4277, allocations: 2.549 MB / 0.5808 GB, free: 6.672 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.045e-05/0.4277, allocations: 12.03 kB / 0.5808 GB, free: 6.66 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001775/0.4295, allocations: 443 kB / 0.5812 GB, free: 6.227 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002002/0.4315, allocations: 1.135 MB / 0.5823 GB, free: 5.051 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001858/0.4317, allocations: 178 kB / 0.5825 GB, free: 4.871 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003309/0.432, allocations: 207.9 kB / 0.5827 GB, free: 4.668 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003702/0.4357, allocations: 2.128 MB / 0.5847 GB, free: 2.477 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.619e-05/0.4357, allocations: 3.938 kB / 0.5847 GB, free: 2.473 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001976/0.4359, allocations: 84 kB / 0.5848 GB, free: 2.391 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.352e-05/0.436, allocations: 48 kB / 0.5849 GB, free: 2.344 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003943/0.4399, allocations: 2.241 MB / 0.5871 GB, free: 100 kB / 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.01139/0.4513, allocations: 7.36 MB / 0.5942 GB, free: 8.383 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002998/0.4543, allocations: 1.675 MB / 0.5959 GB, free: 6.648 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009451/0.4553, allocations: 0.5256 MB / 0.5964 GB, free: 6.113 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009997/0.4653, allocations: 6.396 MB / 0.6026 GB, free: 14.97 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.246e-05/0.4653, allocations: 43.56 kB / 0.6027 GB, free: 14.92 MB / 462.1 MB Notification: Performance of pre-optimization done (n=88): time 3.356e-06/0.4653, allocations: 0 / 0.6027 GB, free: 14.92 MB / 462.1 MB Notification: Performance of matching and sorting (n=106): time 0.01955/0.4849, allocations: 4.903 MB / 0.6075 GB, free: 9.934 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.735e-05/0.4849, allocations: 115.8 kB / 0.6076 GB, free: 9.793 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001304/0.4862, allocations: 0.9197 MB / 0.6085 GB, free: 8.855 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001012/0.4863, allocations: 45.7 kB / 0.6085 GB, free: 8.805 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007778/0.4871, allocations: 0.9633 MB / 0.6095 GB, free: 7.828 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004105/0.4875, allocations: 404.6 kB / 0.6098 GB, free: 7.43 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005143/0.488, allocations: 347.4 kB / 0.6102 GB, free: 7.082 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001398/0.4882, allocations: 305.1 kB / 0.6105 GB, free: 6.781 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008767/0.4891, allocations: 455.8 kB / 0.6109 GB, free: 6.336 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001532/0.4906, allocations: 1.195 MB / 0.6121 GB, free: 4.789 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002607/0.4932, allocations: 1.794 MB / 0.6138 GB, free: 2.641 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.146e-05/0.4932, allocations: 8 kB / 0.6138 GB, free: 2.633 MB / 462.1 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.005534/0.4987, allocations: 2.073 MB / 0.6159 GB, free: 0.543 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.832e-05/0.4988, allocations: 16 kB / 0.6159 GB, free: 0.5273 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.939e-05/0.4988, allocations: 24 kB / 0.6159 GB, free: 0.5039 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002564/0.5014, allocations: 378.7 kB / 0.6163 GB, free: 128 kB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00188/0.5033, allocations: 451.3 kB / 0.6167 GB, free: 15.68 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006043/0.5093, allocations: 4.068 MB / 0.6207 GB, free: 11.31 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001341/0.5107, allocations: 95.72 kB / 0.6208 GB, free: 11.21 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002042/0.5109, allocations: 104 kB / 0.6209 GB, free: 11.11 MB / 478.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.0007476/0.5116, allocations: 381.1 kB / 0.6212 GB, free: 10.73 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003136/0.5119, allocations: 131.1 kB / 0.6213 GB, free: 10.6 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00509/0.517, allocations: 1.618 MB / 0.6229 GB, free: 8.969 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.209e-05/0.517, allocations: 8.141 kB / 0.6229 GB, free: 8.961 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.655e-05/0.517, allocations: 7.984 kB / 0.6229 GB, free: 8.953 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.397e-05/0.5171, allocations: 3.984 kB / 0.6229 GB, free: 8.949 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002609/0.5197, allocations: 1.481 MB / 0.6244 GB, free: 7.379 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.631e-06/0.5197, allocations: 0 / 0.6244 GB, free: 7.379 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001357/0.521, allocations: 247.9 kB / 0.6246 GB, free: 7.137 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002567/0.5236, allocations: 353.9 kB / 0.625 GB, free: 6.781 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001256/0.5237, allocations: 47.97 kB / 0.625 GB, free: 6.734 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005945/0.5297, allocations: 3.996 MB / 0.6289 GB, free: 2.434 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.5297, allocations: 4.031 kB / 0.6289 GB, free: 2.43 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005788/0.5355, allocations: 2.208 MB / 0.6311 GB, free: 168 kB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004564/0.5359, allocations: 196.4 kB / 0.6313 GB, free: 15.95 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002516/0.5362, allocations: 31.75 kB / 0.6313 GB, free: 15.92 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008229/0.537, allocations: 27.98 kB / 0.6313 GB, free: 15.89 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002634/0.5372, allocations: 100.8 kB / 0.6314 GB, free: 15.8 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001449/0.5374, allocations: 55.92 kB / 0.6315 GB, free: 15.74 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0009766/0.5384, allocations: 0.5737 MB / 0.632 GB, free: 15.16 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.5384, allocations: 7.938 kB / 0.632 GB, free: 15.15 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002494/0.5409, allocations: 0.7288 MB / 0.6327 GB, free: 14.42 MB / 494.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.001679/0.5425, allocations: 0.7301 MB / 0.6335 GB, free: 13.68 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.003173/0.5457, allocations: 1.464 MB / 0.6349 GB, free: 12.2 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.5457, allocations: 4.25 kB / 0.6349 GB, free: 12.2 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001484/0.5472, allocations: 0.7721 MB / 0.6356 GB, free: 11.39 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001455/0.5487, allocations: 243.9 kB / 0.6359 GB, free: 11.16 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005806/0.5545, allocations: 3.045 MB / 0.6388 GB, free: 8.047 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001244/0.5557, allocations: 1.255 MB / 0.6401 GB, free: 6.762 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001219/0.5569, allocations: 346.5 kB / 0.6404 GB, free: 6.418 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005074/0.5574, allocations: 215.3 kB / 0.6406 GB, free: 6.211 MB / 494.1 MB Notification: Performance of SimCode: time 8.01e-07/0.5574, allocations: 0 / 0.6406 GB, free: 6.211 MB / 494.1 MB Notification: Performance of Templates: time 0.04724/0.6047, allocations: 25.96 MB / 0.666 GB, free: 12.32 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: 5.929730494972318] Failed to read output from testmodel.py, exit status != 0: 0.6139003341086209 0.627605874 0.201901675 Calling exit ...