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.001595/0.001595, allocations: 104.3 kB / 19.7 MB, free: 2.008 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.001797/0.001797, allocations: 212.6 kB / 22.99 MB, free: 4.41 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.515/1.515, 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 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.1388/0.1388, allocations: 23.88 MB / 337.1 MB, free: 10.96 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.002069/0.002069, allocations: 78.38 kB / 472.4 MB, free: 7.012 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3671/0.3692, allocations: 59.85 MB / 0.5197 GB, free: 9.801 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.07566/0.4448, allocations: 28.75 MB / 0.5478 GB, free: 11.09 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02385/0.4687, allocations: 15.78 MB / 0.5632 GB, free: 12.75 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002441/0.4711, allocations: 27.75 kB / 0.5632 GB, free: 12.72 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001792/0.4729, allocations: 449.4 kB / 0.5637 GB, free: 12.39 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005379/0.4783, allocations: 1.298 MB / 0.5649 GB, free: 11.28 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00864/0.4869, allocations: 2.589 MB / 0.5675 GB, free: 8.98 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.004449/0.4914, allocations: 2.276 MB / 0.5697 GB, free: 6.691 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001828/0.4932, allocations: 1.219 MB / 0.5709 GB, free: 5.418 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001455/0.4947, allocations: 1.06 MB / 0.5719 GB, free: 4.355 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001721/0.4964, allocations: 1.164 MB / 0.5731 GB, free: 3.188 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000389/0.4968, allocations: 224 kB / 0.5733 GB, free: 2.969 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006224/0.503, allocations: 1.767 MB / 0.575 GB, free: 1.199 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007534/0.5037, allocations: 0.5063 MB / 0.5755 GB, free: 0.6914 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001335/0.5051, allocations: 0.9182 MB / 0.5764 GB, free: 15.77 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01057/0.5157, allocations: 4.33 MB / 0.5806 GB, free: 11.42 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.5157, allocations: 0 / 0.5806 GB, free: 11.42 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.5157, allocations: 0 / 0.5806 GB, free: 11.42 MB / 430.1 MB Notification: Performance of Transformations before backend: time 7.126e-05/0.5157, allocations: 0 / 0.5806 GB, free: 11.42 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.005082/0.5208, allocations: 2.485 MB / 0.583 GB, free: 8.895 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.711e-05/0.5209, allocations: 11.97 kB / 0.5831 GB, free: 8.883 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0017/0.5226, allocations: 447 kB / 0.5835 GB, free: 8.445 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002121/0.5247, allocations: 1.055 MB / 0.5845 GB, free: 7.363 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002029/0.5249, allocations: 203.7 kB / 0.5847 GB, free: 7.152 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003202/0.5252, allocations: 204 kB / 0.5849 GB, free: 6.953 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003592/0.5288, allocations: 2.157 MB / 0.587 GB, free: 4.727 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.855e-05/0.5288, allocations: 11.91 kB / 0.587 GB, free: 4.715 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000179/0.529, allocations: 84 kB / 0.5871 GB, free: 4.633 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.814e-05/0.5291, allocations: 48 kB / 0.5871 GB, free: 4.586 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003668/0.5327, allocations: 2.206 MB / 0.5893 GB, free: 2.375 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.01088/0.5436, allocations: 5.853 MB / 0.595 GB, free: 12.35 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003022/0.5466, allocations: 1.489 MB / 0.5965 GB, free: 10.84 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009112/0.5476, allocations: 0.5371 MB / 0.597 GB, free: 10.29 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008201/0.5558, allocations: 3.306 MB / 0.6002 GB, free: 6.961 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.779e-05/0.5558, allocations: 47.55 kB / 0.6003 GB, free: 6.906 MB / 446.1 MB Notification: Performance of pre-optimization done (n=88): time 3.266e-06/0.5558, allocations: 4 kB / 0.6003 GB, free: 6.902 MB / 446.1 MB Notification: Performance of matching and sorting (n=106): time 0.01768/0.5735, allocations: 4.655 MB / 0.6048 GB, free: 2.219 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001071/0.5736, allocations: 123.7 kB / 0.6049 GB, free: 2.074 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001123/0.5747, allocations: 0.8631 MB / 0.6058 GB, free: 1.188 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001008/0.5748, allocations: 45.7 kB / 0.6058 GB, free: 1.137 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007371/0.5756, allocations: 0.9787 MB / 0.6068 GB, free: 148 kB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004664/0.576, allocations: 396.9 kB / 0.6072 GB, free: 15.75 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004846/0.5765, allocations: 351.4 kB / 0.6075 GB, free: 15.4 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001832/0.5767, allocations: 353.9 kB / 0.6078 GB, free: 15.05 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008668/0.5776, allocations: 451.8 kB / 0.6083 GB, free: 14.6 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001494/0.5791, allocations: 1.195 MB / 0.6094 GB, free: 13.05 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002723/0.5818, allocations: 1.79 MB / 0.6112 GB, free: 10.91 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.992e-05/0.5818, allocations: 8 kB / 0.6112 GB, free: 10.9 MB / 462.1 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.005201/0.587, allocations: 2.062 MB / 0.6132 GB, free: 8.824 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.861e-05/0.5871, allocations: 16 kB / 0.6132 GB, free: 8.809 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.817e-05/0.5871, allocations: 24 kB / 0.6132 GB, free: 8.785 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002329/0.5894, allocations: 382.2 kB / 0.6136 GB, free: 8.402 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00184/0.5913, allocations: 447.3 kB / 0.614 GB, free: 7.965 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005598/0.5969, allocations: 3.816 MB / 0.6177 GB, free: 3.914 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001304/0.5982, allocations: 79.86 kB / 0.6178 GB, free: 3.836 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001914/0.5984, allocations: 112 kB / 0.6179 GB, free: 3.727 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.0007751/0.5991, allocations: 385.1 kB / 0.6183 GB, free: 3.34 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002958/0.5994, allocations: 119.2 kB / 0.6184 GB, free: 3.223 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004525/0.6039, allocations: 1.605 MB / 0.62 GB, free: 1.602 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-05/0.604, allocations: 15.94 kB / 0.62 GB, free: 1.586 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/0.604, allocations: 4 kB / 0.62 GB, free: 1.582 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.389e-05/0.604, allocations: 7.969 kB / 0.62 GB, free: 1.574 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002074/0.6061, allocations: 1.113 MB / 0.6211 GB, free: 408 kB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.536e-06/0.6061, allocations: 4.312 kB / 0.6211 GB, free: 404 kB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001198/0.6073, allocations: 239.7 kB / 0.6213 GB, free: 164 kB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002249/0.6095, allocations: 354.3 kB / 0.6217 GB, free: 15.8 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001034/0.6096, allocations: 43.98 kB / 0.6217 GB, free: 15.76 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005159/0.6148, allocations: 3.728 MB / 0.6253 GB, free: 11.8 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/0.6148, allocations: 0 / 0.6253 GB, free: 11.8 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005105/0.6199, allocations: 2.204 MB / 0.6275 GB, free: 9.535 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003511/0.6202, allocations: 103.2 kB / 0.6276 GB, free: 9.434 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001513/0.6204, allocations: 28.08 kB / 0.6276 GB, free: 9.406 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006346/0.621, allocations: 31.94 kB / 0.6277 GB, free: 9.375 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002356/0.6213, allocations: 108.7 kB / 0.6278 GB, free: 9.27 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001065/0.6214, allocations: 51.97 kB / 0.6278 GB, free: 9.219 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0007286/0.6221, allocations: 0.5046 MB / 0.6283 GB, free: 8.703 MB / 478.1 MB Notification: Performance of sort global known variables: time 9e-08/0.6221, allocations: 0 / 0.6283 GB, free: 8.703 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002357/0.6245, allocations: 0.7288 MB / 0.629 GB, free: 7.973 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.001468/0.6259, allocations: 0.734 MB / 0.6297 GB, free: 7.23 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00282/0.6287, allocations: 1.468 MB / 0.6312 GB, free: 5.742 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/0.6287, allocations: 0 / 0.6312 GB, free: 5.742 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001336/0.6301, allocations: 0.7812 MB / 0.6319 GB, free: 4.941 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001339/0.6314, allocations: 231.5 kB / 0.6321 GB, free: 4.719 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005352/0.6368, allocations: 3.092 MB / 0.6352 GB, free: 1.547 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007872/0.6376, allocations: 0.68 MB / 0.6358 GB, free: 0.832 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005904/0.6381, allocations: 267.2 kB / 0.6361 GB, free: 0.5703 MB / 478.1 MB Notification: Performance of SimCode: time 1.312e-06/0.6381, allocations: 0 / 0.6361 GB, free: 0.5703 MB / 478.1 MB Notification: Performance of Templates: time 0.05563/0.6938, allocations: 44.05 MB / 0.6791 GB, free: 4.539 MB / 0.5137 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: 10.366337803949136] Failed to read output from testmodel.py, exit status != 0: 0.7032908560358919 0.717470849 0.19863666100000002 Calling exit ...