Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_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.001874/0.001874, 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.001976/0.001976, allocations: 216.4 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.513/1.513, allocations: 230.6 MB / 256.1 MB, free: 7.777 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.1628/0.1628, allocations: 23.89 MB / 336.4 MB, free: 11.02 MB / 270.1 MB " [Timeout remaining time 180] 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.WaterElectrolysis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Obsolete.Examples.WaterElectrolysis") translateModel(Chemical.Obsolete.Examples.WaterElectrolysis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_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.002167/0.002167, allocations: 67.91 kB / 471.7 MB, free: 6.969 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3628/0.365, allocations: 59.87 MB / 0.5191 GB, free: 9.707 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/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 2.0.0/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.08075/0.4457, allocations: 28.77 MB / 0.5472 GB, free: 11.02 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02545/0.4712, allocations: 15.77 MB / 0.5626 GB, free: 12.69 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003283/0.4745, allocations: 31.75 kB / 0.5627 GB, free: 12.66 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002437/0.4769, allocations: 449.8 kB / 0.5631 GB, free: 12.32 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006712/0.4836, allocations: 1.301 MB / 0.5644 GB, free: 11.21 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01076/0.4944, allocations: 2.581 MB / 0.5669 GB, free: 8.914 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005264/0.4996, allocations: 2.28 MB / 0.5691 GB, free: 6.621 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002088/0.5017, allocations: 1.196 MB / 0.5703 GB, free: 5.371 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001702/0.5034, allocations: 1.052 MB / 0.5713 GB, free: 4.316 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001723/0.5051, allocations: 1.019 MB / 0.5723 GB, free: 3.293 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003607/0.5055, allocations: 224 kB / 0.5725 GB, free: 3.074 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006453/0.512, allocations: 1.736 MB / 0.5742 GB, free: 1.336 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007749/0.5127, allocations: 0.4907 MB / 0.5747 GB, free: 0.8438 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001541/0.5143, allocations: 0.922 MB / 0.5756 GB, free: 15.91 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01218/0.5265, allocations: 4.342 MB / 0.5798 GB, free: 11.56 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.642e-06/0.5265, allocations: 0 / 0.5798 GB, free: 11.56 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.5265, allocations: 0 / 0.5798 GB, free: 11.56 MB / 430.1 MB Notification: Performance of Transformations before backend: time 8.122e-05/0.5266, allocations: 3.938 kB / 0.5798 GB, free: 11.55 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.005623/0.5322, allocations: 2.478 MB / 0.5822 GB, free: 9.035 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.949e-05/0.5322, allocations: 8.031 kB / 0.5822 GB, free: 9.027 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00184/0.5341, allocations: 451 kB / 0.5827 GB, free: 8.586 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002334/0.5364, allocations: 1.051 MB / 0.5837 GB, free: 7.508 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002496/0.5366, allocations: 207.7 kB / 0.5839 GB, free: 7.293 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003471/0.537, allocations: 203.9 kB / 0.5841 GB, free: 7.094 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003997/0.541, allocations: 2.157 MB / 0.5862 GB, free: 4.867 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.309e-05/0.541, allocations: 0 / 0.5862 GB, free: 4.867 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001993/0.5412, allocations: 88 kB / 0.5863 GB, free: 4.781 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.018e-05/0.5413, allocations: 51.94 kB / 0.5863 GB, free: 4.73 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004011/0.5453, allocations: 2.214 MB / 0.5885 GB, free: 2.512 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.0114/0.5567, allocations: 5.852 MB / 0.5942 GB, free: 12.49 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002809/0.5595, allocations: 1.493 MB / 0.5957 GB, free: 10.98 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009129/0.5604, allocations: 0.5294 MB / 0.5962 GB, free: 10.44 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008045/0.5685, allocations: 3.319 MB / 0.5994 GB, free: 7.098 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.823e-05/0.5685, allocations: 43.5 kB / 0.5995 GB, free: 7.047 MB / 446.1 MB Notification: Performance of pre-optimization done (n=88): time 2.905e-06/0.5685, allocations: 0 / 0.5995 GB, free: 7.047 MB / 446.1 MB Notification: Performance of matching and sorting (n=106): time 0.01916/0.5877, allocations: 4.658 MB / 0.604 GB, free: 2.359 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001002/0.5878, allocations: 123.8 kB / 0.6041 GB, free: 2.215 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001212/0.589, allocations: 0.8709 MB / 0.605 GB, free: 1.32 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001105/0.5891, allocations: 41.7 kB / 0.605 GB, free: 1.273 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007555/0.5899, allocations: 0.9709 MB / 0.606 GB, free: 296 kB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004261/0.5903, allocations: 400.9 kB / 0.6064 GB, free: 15.89 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005002/0.5908, allocations: 347.4 kB / 0.6067 GB, free: 15.54 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001876/0.591, allocations: 349.9 kB / 0.607 GB, free: 15.2 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008425/0.5918, allocations: 459.8 kB / 0.6075 GB, free: 14.75 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001627/0.5934, allocations: 1.191 MB / 0.6086 GB, free: 13.2 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002711/0.5962, allocations: 1.79 MB / 0.6104 GB, free: 11.05 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.818e-05/0.5962, allocations: 8 kB / 0.6104 GB, free: 11.04 MB / 462.1 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.005596/0.6018, allocations: 2.057 MB / 0.6124 GB, free: 8.977 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.829e-05/0.6018, allocations: 16 kB / 0.6124 GB, free: 8.961 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.089e-05/0.6019, allocations: 32.53 kB / 0.6124 GB, free: 8.93 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002534/0.6044, allocations: 381.9 kB / 0.6128 GB, free: 8.547 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001801/0.6062, allocations: 455.3 kB / 0.6132 GB, free: 8.102 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005739/0.6119, allocations: 3.808 MB / 0.617 GB, free: 4.066 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001475/0.6134, allocations: 87.91 kB / 0.617 GB, free: 3.98 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000195/0.6136, allocations: 108 kB / 0.6171 GB, free: 3.875 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.0008555/0.6145, allocations: 380.2 kB / 0.6175 GB, free: 3.496 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003131/0.6148, allocations: 127.2 kB / 0.6176 GB, free: 3.371 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005021/0.6198, allocations: 1.609 MB / 0.6192 GB, free: 1.742 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-05/0.6198, allocations: 11.94 kB / 0.6192 GB, free: 1.73 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.6198, allocations: 4 kB / 0.6192 GB, free: 1.727 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.418e-05/0.6198, allocations: 11.91 kB / 0.6192 GB, free: 1.715 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00213/0.622, allocations: 1.117 MB / 0.6203 GB, free: 0.5352 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.965e-06/0.622, allocations: 0 / 0.6203 GB, free: 0.5352 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001256/0.6232, allocations: 243.7 kB / 0.6205 GB, free: 304 kB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002395/0.6256, allocations: 346.5 kB / 0.6209 GB, free: 15.95 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001279/0.6257, allocations: 43.97 kB / 0.6209 GB, free: 15.91 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005344/0.6311, allocations: 3.724 MB / 0.6246 GB, free: 11.95 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.86e-06/0.6311, allocations: 4 kB / 0.6246 GB, free: 11.95 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005451/0.6365, allocations: 2.2 MB / 0.6267 GB, free: 9.688 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004218/0.637, allocations: 107.1 kB / 0.6268 GB, free: 9.582 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001535/0.6371, allocations: 27.98 kB / 0.6268 GB, free: 9.555 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006702/0.6378, allocations: 28 kB / 0.6269 GB, free: 9.527 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000253/0.638, allocations: 108.8 kB / 0.627 GB, free: 9.422 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001179/0.6382, allocations: 55.97 kB / 0.627 GB, free: 9.367 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0007699/0.6389, allocations: 0.5045 MB / 0.6275 GB, free: 8.852 MB / 478.1 MB Notification: Performance of sort global known variables: time 9e-08/0.6389, allocations: 0 / 0.6275 GB, free: 8.852 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002671/0.6416, allocations: 0.7289 MB / 0.6282 GB, free: 8.121 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.001553/0.6432, allocations: 0.734 MB / 0.6289 GB, free: 7.379 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.002953/0.6461, allocations: 1.468 MB / 0.6304 GB, free: 5.887 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.011e-06/0.6461, allocations: 4 kB / 0.6304 GB, free: 5.883 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001333/0.6474, allocations: 0.7655 MB / 0.6311 GB, free: 5.098 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001335/0.6488, allocations: 246 kB / 0.6314 GB, free: 4.859 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005455/0.6542, allocations: 3.044 MB / 0.6343 GB, free: 1.742 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007737/0.655, allocations: 0.6682 MB / 0.635 GB, free: 1.039 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001115/0.6561, allocations: 334.1 kB / 0.6353 GB, free: 0.7109 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004203/0.6565, allocations: 212.4 kB / 0.6355 GB, free: 0.5039 MB / 478.1 MB Notification: Performance of SimCode: time 1.243e-06/0.6565, allocations: 0 / 0.6355 GB, free: 0.5039 MB / 478.1 MB Notification: Performance of Templates: time 0.04674/0.7033, allocations: 24.63 MB / 0.6596 GB, free: 8.066 MB / 0.4981 GB " [Timeout remaining time 659] make -j1 -f Chemical_Chemical.Obsolete.Examples.WaterElectrolysis.makefile [Timeout 660] (rm -f Chemical_Chemical.Obsolete.Examples.WaterElectrolysis.pipe ; mkfifo Chemical_Chemical.Obsolete.Examples.WaterElectrolysis.pipe ; head -c 1048576 < Chemical_Chemical.Obsolete.Examples.WaterElectrolysis.pipe >> ../files/Chemical_Chemical.Obsolete.Examples.WaterElectrolysis.sim & ./Chemical_Chemical.Obsolete.Examples.WaterElectrolysis -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Obsolete.Examples.WaterElectrolysis.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.512573281303048] Failed to read output from testmodel.py, exit status != 0: 0.7137619163841009 0.7279297560000001 0.198237343 Calling exit ...