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.001695/0.001695, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.002321/0.002321, allocations: 213.9 kB / 22.24 MB, free: 5.262 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.473/1.473, allocations: 230.6 MB / 256 MB, free: 7.789 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.1692/0.1692, allocations: 23.88 MB / 336.3 MB, free: 11.07 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.WaterElectrolysis,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_WaterElectrolysis",fmuType="me",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.002133/0.002133, allocations: 71.88 kB / 471.1 MB, free: 7.543 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3056/0.3077, allocations: 59.86 MB / 0.5185 GB, free: 9.488 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.07252/0.3802, allocations: 28.82 MB / 0.5467 GB, free: 11.02 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02219/0.4024, allocations: 15.78 MB / 0.5621 GB, free: 12.67 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001698/0.4041, allocations: 23.81 kB / 0.5621 GB, free: 12.65 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001397/0.4055, allocations: 441.2 kB / 0.5625 GB, free: 12.32 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004291/0.4098, allocations: 1.301 MB / 0.5638 GB, free: 11.21 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007729/0.4176, allocations: 2.585 MB / 0.5663 GB, free: 9 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.004313/0.4219, allocations: 2.28 MB / 0.5685 GB, free: 6.707 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001844/0.4237, allocations: 1.191 MB / 0.5697 GB, free: 5.461 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001576/0.4253, allocations: 1.052 MB / 0.5707 GB, free: 4.406 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001616/0.4269, allocations: 1.019 MB / 0.5717 GB, free: 3.383 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003538/0.4273, allocations: 224 kB / 0.5719 GB, free: 3.164 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004828/0.4321, allocations: 1.728 MB / 0.5736 GB, free: 1.434 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005575/0.4326, allocations: 0.5024 MB / 0.5741 GB, free: 0.9297 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001133/0.4338, allocations: 0.9181 MB / 0.575 GB, free: 8 kB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007867/0.4416, allocations: 4.338 MB / 0.5793 GB, free: 11.65 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.4416, allocations: 4 kB / 0.5793 GB, free: 11.65 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.4416, allocations: 0 / 0.5793 GB, free: 11.65 MB / 430.1 MB Notification: Performance of Transformations before backend: time 2.867e-05/0.4417, allocations: 0 / 0.5793 GB, free: 11.65 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.004404/0.4461, allocations: 2.474 MB / 0.5817 GB, free: 9.133 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.85e-05/0.4461, allocations: 12.03 kB / 0.5817 GB, free: 9.121 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003134/0.4464, allocations: 278.9 kB / 0.582 GB, free: 8.84 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001602/0.448, allocations: 446.9 kB / 0.5824 GB, free: 8.402 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00198/0.45, allocations: 1.059 MB / 0.5834 GB, free: 7.316 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001917/0.4502, allocations: 207.4 kB / 0.5836 GB, free: 7.102 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003233/0.4505, allocations: 200 kB / 0.5838 GB, free: 6.906 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003443/0.454, allocations: 2.149 MB / 0.5859 GB, free: 4.688 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.658e-05/0.454, allocations: 3.938 kB / 0.5859 GB, free: 4.684 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001874/0.4542, allocations: 84 kB / 0.586 GB, free: 4.602 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.412e-05/0.4543, allocations: 51.98 kB / 0.586 GB, free: 4.551 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003668/0.4579, allocations: 2.226 MB / 0.5882 GB, free: 2.32 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.01013/0.4681, allocations: 6.093 MB / 0.5942 GB, free: 12.04 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002681/0.4707, allocations: 1.509 MB / 0.5956 GB, free: 10.52 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000881/0.4716, allocations: 0.5293 MB / 0.5961 GB, free: 9.977 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007488/0.4791, allocations: 3.303 MB / 0.5994 GB, free: 6.648 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.136e-05/0.4791, allocations: 47.55 kB / 0.5994 GB, free: 6.594 MB / 446.1 MB Notification: Performance of pre-optimization done (n=88): time 2.766e-06/0.4791, allocations: 0 / 0.5994 GB, free: 6.594 MB / 446.1 MB Notification: Performance of matching and sorting (n=106): time 0.01775/0.4969, allocations: 4.678 MB / 0.604 GB, free: 1.887 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.179e-05/0.497, allocations: 115.8 kB / 0.6041 GB, free: 1.75 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0012/0.4982, allocations: 0.9583 MB / 0.605 GB, free: 0.7734 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 9.765e-05/0.4983, allocations: 45.7 kB / 0.6051 GB, free: 0.7227 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006852/0.499, allocations: 0.9595 MB / 0.606 GB, free: 15.75 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003447/0.4993, allocations: 400.7 kB / 0.6064 GB, free: 15.35 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004581/0.4998, allocations: 347.4 kB / 0.6067 GB, free: 15 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001275/0.4999, allocations: 305.2 kB / 0.607 GB, free: 14.7 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008193/0.5007, allocations: 459.8 kB / 0.6075 GB, free: 14.25 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001449/0.5022, allocations: 1.195 MB / 0.6086 GB, free: 12.7 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002468/0.5046, allocations: 1.798 MB / 0.6104 GB, free: 10.55 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.237e-05/0.5046, allocations: 8 kB / 0.6104 GB, free: 10.54 MB / 462.1 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.005181/0.5098, allocations: 2.069 MB / 0.6124 GB, free: 8.461 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.256e-05/0.5098, allocations: 16 kB / 0.6124 GB, free: 8.445 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.239e-05/0.5099, allocations: 27.94 kB / 0.6125 GB, free: 8.418 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002427/0.5123, allocations: 382.1 kB / 0.6128 GB, free: 8.035 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001737/0.514, allocations: 443.3 kB / 0.6132 GB, free: 7.602 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005518/0.5196, allocations: 3.866 MB / 0.617 GB, free: 3.477 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001145/0.5207, allocations: 83.86 kB / 0.6171 GB, free: 3.395 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000162/0.5209, allocations: 104 kB / 0.6172 GB, free: 3.293 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.0007178/0.5216, allocations: 385.1 kB / 0.6176 GB, free: 2.906 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002771/0.5219, allocations: 131.1 kB / 0.6177 GB, free: 2.777 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004643/0.5265, allocations: 1.606 MB / 0.6193 GB, free: 1.152 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.501e-05/0.5265, allocations: 16 kB / 0.6193 GB, free: 1.137 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.5265, allocations: 0 / 0.6193 GB, free: 1.137 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.272e-05/0.5265, allocations: 3.984 kB / 0.6193 GB, free: 1.133 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002206/0.5287, allocations: 1.316 MB / 0.6206 GB, free: 15.74 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.613e-06/0.5288, allocations: 0 / 0.6206 GB, free: 15.74 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001305/0.5301, allocations: 244.1 kB / 0.6208 GB, free: 15.5 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00238/0.5324, allocations: 346.2 kB / 0.6211 GB, free: 15.16 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000135/0.5326, allocations: 55.89 kB / 0.6212 GB, free: 15.1 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005279/0.5378, allocations: 3.763 MB / 0.6248 GB, free: 11.08 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/0.5379, allocations: 4 kB / 0.6249 GB, free: 11.08 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005256/0.5431, allocations: 2.204 MB / 0.627 GB, free: 8.816 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003065/0.5434, allocations: 123 kB / 0.6271 GB, free: 8.695 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000165/0.5436, allocations: 31.98 kB / 0.6272 GB, free: 8.664 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006871/0.5443, allocations: 28.09 kB / 0.6272 GB, free: 8.637 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002094/0.5445, allocations: 112.6 kB / 0.6273 GB, free: 8.527 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001093/0.5446, allocations: 55.97 kB / 0.6273 GB, free: 8.473 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0007937/0.5454, allocations: 0.5698 MB / 0.6279 GB, free: 7.895 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5454, allocations: 0 / 0.6279 GB, free: 7.895 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002128/0.5475, allocations: 0.7288 MB / 0.6286 GB, free: 7.164 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.006808/0.5543, allocations: 3.396 MB / 0.6319 GB, free: 3.699 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.002817/0.5571, allocations: 1.467 MB / 0.6334 GB, free: 2.215 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.029e-06/0.5571, allocations: 0 / 0.6334 GB, free: 2.215 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001367/0.5585, allocations: 0.7777 MB / 0.6341 GB, free: 1.41 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001477/0.56, allocations: 245.6 kB / 0.6344 GB, free: 1.172 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02217/0.5822, allocations: 12.17 MB / 0.6462 GB, free: 4.051 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007829/0.5829, allocations: 0.6763 MB / 0.6469 GB, free: 3.34 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001184/0.5841, allocations: 346.5 kB / 0.6472 GB, free: 2.996 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001058/0.5852, allocations: 0.7452 MB / 0.648 GB, free: 2.25 MB / 494.1 MB Notification: Performance of SimCode: time 8.12e-07/0.5852, allocations: 0 / 0.648 GB, free: 2.25 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08473/0.6699, allocations: 39.51 MB / 0.6865 GB, free: 11.07 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.94/15.61, allocations: 11.92 kB / 0.6865 GB, free: 11.06 MB / 0.5294 GB " [Timeout remaining time 644] (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 & python3 -m fmpy simulate --output-file Chemical_Chemical.Obsolete.Examples.WaterElectrolysis_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Chemical_Chemical_Obsolete_Examples_WaterElectrolysis.fmu > Chemical_Chemical.Obsolete.Examples.WaterElectrolysis.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 18.579987367149442] Failed to read output from testmodel.py, exit status != 0: 15.756987669039518 15.781342661 15.334871831 Calling exit ...