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.001345/0.001345, allocations: 97.31 kB / 19.73 MB, free: 2.117 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.001607/0.001607, allocations: 219.3 kB / 23.03 MB, free: 4.922 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.449/1.449, 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.1384/0.1384, allocations: 23.88 MB / 337.1 MB, free: 11.05 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: "" <> buildModelFMU(Chemical.Obsolete.Examples.WaterElectrolysis,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_WaterElectrolysis",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.WaterElectrolysis,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_WaterElectrolysis",fmuType="cs",version="2.0",platforms={"static"}) [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: 67.03 kB / 471.9 MB, free: 7.516 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2946/0.2969, allocations: 59.86 MB / 0.5193 GB, free: 9.535 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.07149/0.3683, allocations: 28.43 MB / 0.5471 GB, free: 11.32 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02368/0.392, allocations: 15.77 MB / 0.5625 GB, free: 12.99 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002132/0.3942, allocations: 27.75 kB / 0.5625 GB, free: 12.96 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001659/0.3958, allocations: 445.7 kB / 0.5629 GB, free: 12.63 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004697/0.4005, allocations: 1.301 MB / 0.5642 GB, free: 11.52 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007464/0.408, allocations: 2.583 MB / 0.5667 GB, free: 9.312 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003668/0.4117, allocations: 2.284 MB / 0.5689 GB, free: 7.016 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00165/0.4133, allocations: 1.215 MB / 0.5701 GB, free: 5.746 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001324/0.4146, allocations: 1.06 MB / 0.5711 GB, free: 4.684 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00168/0.4163, allocations: 1.16 MB / 0.5723 GB, free: 3.52 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003486/0.4167, allocations: 224 kB / 0.5725 GB, free: 3.301 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004631/0.4213, allocations: 1.763 MB / 0.5742 GB, free: 1.535 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005488/0.4218, allocations: 0.5023 MB / 0.5747 GB, free: 1.031 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001122/0.423, allocations: 0.922 MB / 0.5756 GB, free: 108 kB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008311/0.4313, allocations: 4.342 MB / 0.5798 GB, free: 11.75 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.142e-06/0.4313, allocations: 0 / 0.5798 GB, free: 11.75 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.4313, allocations: 0 / 0.5798 GB, free: 11.75 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.348e-05/0.4313, allocations: 0 / 0.5798 GB, free: 11.75 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.00473/0.4361, allocations: 2.485 MB / 0.5823 GB, free: 9.219 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.669e-05/0.4361, allocations: 8.031 kB / 0.5823 GB, free: 9.211 MB / 430.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 6.981e-05/0.4362, allocations: 52.12 kB / 0.5823 GB, free: 9.16 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003396/0.4365, allocations: 278.9 kB / 0.5826 GB, free: 8.879 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001757/0.4383, allocations: 439 kB / 0.583 GB, free: 8.449 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002039/0.4403, allocations: 1.055 MB / 0.584 GB, free: 7.367 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002126/0.4405, allocations: 211.3 kB / 0.5842 GB, free: 7.148 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003317/0.4409, allocations: 196 kB / 0.5844 GB, free: 6.957 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003749/0.4446, allocations: 2.157 MB / 0.5865 GB, free: 4.73 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.667e-05/0.4446, allocations: 4 kB / 0.5865 GB, free: 4.727 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001973/0.4448, allocations: 80 kB / 0.5866 GB, free: 4.648 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.868e-05/0.4449, allocations: 48 kB / 0.5867 GB, free: 4.602 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003896/0.4488, allocations: 2.237 MB / 0.5889 GB, free: 2.359 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.01062/0.4594, allocations: 6.101 MB / 0.5948 GB, free: 12.07 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002883/0.4623, allocations: 1.508 MB / 0.5963 GB, free: 10.55 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009443/0.4632, allocations: 0.5255 MB / 0.5968 GB, free: 10.01 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007819/0.471, allocations: 3.315 MB / 0.6 GB, free: 6.668 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.632e-05/0.4711, allocations: 43.5 kB / 0.6001 GB, free: 6.617 MB / 446.1 MB Notification: Performance of pre-optimization done (n=88): time 2.635e-06/0.4711, allocations: 0 / 0.6001 GB, free: 6.617 MB / 446.1 MB Notification: Performance of matching and sorting (n=106): time 0.02026/0.4914, allocations: 4.68 MB / 0.6046 GB, free: 1.91 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001093/0.4915, allocations: 111.8 kB / 0.6048 GB, free: 1.777 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001422/0.4929, allocations: 0.9197 MB / 0.6057 GB, free: 0.8398 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001384/0.493, allocations: 49.64 kB / 0.6057 GB, free: 0.7852 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007654/0.4938, allocations: 0.9634 MB / 0.6066 GB, free: 15.8 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003995/0.4942, allocations: 408.7 kB / 0.607 GB, free: 15.4 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005377/0.4947, allocations: 351.4 kB / 0.6074 GB, free: 15.05 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001296/0.4949, allocations: 301.1 kB / 0.6077 GB, free: 14.75 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008892/0.4957, allocations: 455.8 kB / 0.6081 GB, free: 14.3 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001563/0.4973, allocations: 1.199 MB / 0.6093 GB, free: 12.75 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002602/0.4999, allocations: 1.786 MB / 0.611 GB, free: 10.61 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.366e-05/0.4999, allocations: 8 kB / 0.611 GB, free: 10.61 MB / 462.1 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.005814/0.5057, allocations: 2.069 MB / 0.613 GB, free: 8.523 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.4e-05/0.5058, allocations: 16 kB / 0.613 GB, free: 8.508 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.506e-05/0.5058, allocations: 24 kB / 0.6131 GB, free: 8.484 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002812/0.5086, allocations: 382.3 kB / 0.6134 GB, free: 8.102 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001874/0.5105, allocations: 447.3 kB / 0.6139 GB, free: 7.664 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006192/0.5167, allocations: 3.854 MB / 0.6176 GB, free: 3.551 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001268/0.518, allocations: 83.84 kB / 0.6177 GB, free: 3.469 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000193/0.5181, allocations: 108 kB / 0.6178 GB, free: 3.363 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.0007201/0.5189, allocations: 381.7 kB / 0.6182 GB, free: 2.98 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003025/0.5192, allocations: 131.2 kB / 0.6183 GB, free: 2.852 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005233/0.5244, allocations: 1.606 MB / 0.6199 GB, free: 1.23 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.446e-05/0.5244, allocations: 20.02 kB / 0.6199 GB, free: 1.211 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/0.5244, allocations: 0 / 0.6199 GB, free: 1.211 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.604e-05/0.5244, allocations: 11.97 kB / 0.6199 GB, free: 1.199 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002307/0.5267, allocations: 1.32 MB / 0.6212 GB, free: 15.8 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.436e-06/0.5268, allocations: 4.312 kB / 0.6212 GB, free: 15.8 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001332/0.5281, allocations: 239.7 kB / 0.6214 GB, free: 15.57 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002712/0.5308, allocations: 346.2 kB / 0.6217 GB, free: 15.22 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001562/0.531, allocations: 51.97 kB / 0.6218 GB, free: 15.17 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005681/0.5366, allocations: 3.759 MB / 0.6255 GB, free: 11.15 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.112e-06/0.5366, allocations: 4 kB / 0.6255 GB, free: 11.15 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005717/0.5424, allocations: 2.216 MB / 0.6276 GB, free: 8.871 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000333/0.5427, allocations: 127 kB / 0.6278 GB, free: 8.746 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001839/0.5429, allocations: 24 kB / 0.6278 GB, free: 8.723 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007399/0.5436, allocations: 31.98 kB / 0.6278 GB, free: 8.691 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002474/0.5439, allocations: 104.8 kB / 0.6279 GB, free: 8.59 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001214/0.544, allocations: 47.98 kB / 0.628 GB, free: 8.543 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0008484/0.5448, allocations: 0.5776 MB / 0.6285 GB, free: 7.957 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5448, allocations: 3.938 kB / 0.6285 GB, free: 7.953 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002286/0.5471, allocations: 0.725 MB / 0.6292 GB, free: 7.227 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.007241/0.5544, allocations: 3.386 MB / 0.6325 GB, free: 3.77 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.002876/0.5572, allocations: 1.463 MB / 0.634 GB, free: 2.289 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.566e-06/0.5572, allocations: 4 kB / 0.634 GB, free: 2.285 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00146/0.5587, allocations: 0.7783 MB / 0.6347 GB, free: 1.484 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001509/0.5602, allocations: 235.6 kB / 0.635 GB, free: 1.254 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02197/0.5822, allocations: 12.17 MB / 0.6468 GB, free: 4.125 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007494/0.5829, allocations: 0.6802 MB / 0.6475 GB, free: 3.41 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001055/0.584, allocations: 338.5 kB / 0.6478 GB, free: 3.074 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001005/0.585, allocations: 0.7491 MB / 0.6486 GB, free: 2.324 MB / 494.1 MB Notification: Performance of SimCode: time 7.42e-07/0.585, allocations: 0 / 0.6486 GB, free: 2.324 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08081/0.6658, allocations: 39.78 MB / 0.6874 GB, free: 10.9 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.41/23.07, allocations: 11.17 kB / 0.6874 GB, free: 10.89 MB / 0.5294 GB " [Timeout remaining time 637] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Obsolete_Examples_WaterElectrolysis_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Obsolete_Examples_WaterElectrolysis.fmu > Chemical_Chemical.Obsolete.Examples.WaterElectrolysis.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 25.9146774179535] Failed to read output from testmodel.py, exit status != 0: 23.270037146983668 23.288315158 22.853317721 Calling exit ...