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.001482/0.001482, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.001683/0.001683, allocations: 215.2 kB / 22.25 MB, free: 5.082 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.38/1.38, allocations: 230.6 MB / 256 MB, free: 8 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.1258/0.1258, allocations: 23.9 MB / 336.3 MB, free: 11.16 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: "" <> buildModelFMU(Chemical.Obsolete.Examples.WaterElectrolysis,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_WaterElectrolysis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.WaterElectrolysis,fileNamePrefix="Chemical_master_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.001959/0.001959, allocations: 59.91 kB / 471.2 MB, free: 7.645 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2828/0.2848, allocations: 59.88 MB / 0.5187 GB, free: 9.562 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.03609/0.3208, allocations: 29.76 MB / 0.5477 GB, free: 10.18 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02228/0.3431, allocations: 17.95 MB / 0.5653 GB, free: 9.652 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001698/0.3448, allocations: 27.75 kB / 0.5653 GB, free: 9.625 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001402/0.3462, allocations: 493.7 kB / 0.5657 GB, free: 9.25 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003662/0.3499, allocations: 1.328 MB / 0.567 GB, free: 8.113 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006465/0.3563, allocations: 2.583 MB / 0.5696 GB, free: 5.914 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003193/0.3595, allocations: 2.284 MB / 0.5718 GB, free: 3.617 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00163/0.3612, allocations: 1.207 MB / 0.573 GB, free: 2.355 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001265/0.3624, allocations: 1.056 MB / 0.574 GB, free: 1.297 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001501/0.3639, allocations: 1.167 MB / 0.5751 GB, free: 128 kB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003136/0.3642, allocations: 228 kB / 0.5754 GB, free: 15.9 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005012/0.3693, allocations: 1.829 MB / 0.5772 GB, free: 14.07 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000474/0.3697, allocations: 0.4985 MB / 0.5776 GB, free: 13.57 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001054/0.3708, allocations: 1.101 MB / 0.5787 GB, free: 12.46 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007037/0.3778, allocations: 4.338 MB / 0.583 GB, free: 8.109 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.3778, allocations: 7.938 kB / 0.583 GB, free: 8.102 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3778, allocations: 3.938 kB / 0.583 GB, free: 8.098 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.183e-05/0.3779, allocations: 0 / 0.583 GB, free: 8.098 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.00445/0.3823, allocations: 2.474 MB / 0.5854 GB, free: 5.582 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.293e-05/0.3824, allocations: 16.02 kB / 0.5854 GB, free: 5.566 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003014/0.3827, allocations: 274.8 kB / 0.5857 GB, free: 5.289 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001557/0.3842, allocations: 443 kB / 0.5861 GB, free: 4.855 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001863/0.3861, allocations: 1.055 MB / 0.5871 GB, free: 3.773 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001797/0.3863, allocations: 203.5 kB / 0.5873 GB, free: 3.562 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002808/0.3866, allocations: 211.9 kB / 0.5875 GB, free: 3.355 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003211/0.3898, allocations: 2.132 MB / 0.5896 GB, free: 1.16 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.053e-05/0.3898, allocations: 3.938 kB / 0.5896 GB, free: 1.156 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002031/0.39, allocations: 80 kB / 0.5897 GB, free: 1.078 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.155e-05/0.3901, allocations: 48 kB / 0.5897 GB, free: 1.031 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00355/0.3936, allocations: 2.241 MB / 0.5919 GB, free: 14.79 MB / 446.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.01043/0.404, allocations: 7.26 MB / 0.599 GB, free: 7.168 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00257/0.4066, allocations: 1.528 MB / 0.6005 GB, free: 5.621 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008394/0.4074, allocations: 0.5293 MB / 0.601 GB, free: 5.078 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007416/0.4149, allocations: 3.471 MB / 0.6044 GB, free: 1.582 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.728e-05/0.4149, allocations: 51.48 kB / 0.6044 GB, free: 1.523 MB / 446.1 MB Notification: Performance of pre-optimization done (n=88): time 2.314e-06/0.4149, allocations: 4 kB / 0.6044 GB, free: 1.52 MB / 446.1 MB Notification: Performance of matching and sorting (n=106): time 0.01818/0.4331, allocations: 4.677 MB / 0.609 GB, free: 12.81 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.275e-05/0.4331, allocations: 119.9 kB / 0.6091 GB, free: 12.67 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001126/0.4343, allocations: 0.9119 MB / 0.61 GB, free: 11.74 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 8.005e-05/0.4344, allocations: 45.7 kB / 0.6101 GB, free: 11.69 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006649/0.435, allocations: 0.9594 MB / 0.611 GB, free: 10.71 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003325/0.4353, allocations: 404.6 kB / 0.6114 GB, free: 10.32 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004602/0.4358, allocations: 347.4 kB / 0.6117 GB, free: 9.969 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001151/0.4359, allocations: 301.1 kB / 0.612 GB, free: 9.672 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007935/0.4367, allocations: 463.8 kB / 0.6124 GB, free: 9.219 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001363/0.4381, allocations: 1.191 MB / 0.6136 GB, free: 7.676 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002362/0.4404, allocations: 1.794 MB / 0.6154 GB, free: 5.527 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.093e-05/0.4405, allocations: 8 kB / 0.6154 GB, free: 5.52 MB / 462.1 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.005273/0.4457, allocations: 2.062 MB / 0.6174 GB, free: 3.441 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.404e-05/0.4458, allocations: 23.94 kB / 0.6174 GB, free: 3.418 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.492e-05/0.4458, allocations: 24 kB / 0.6174 GB, free: 3.395 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002594/0.4484, allocations: 386.3 kB / 0.6178 GB, free: 3.008 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001712/0.4501, allocations: 451.2 kB / 0.6182 GB, free: 2.566 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005621/0.4557, allocations: 3.881 MB / 0.622 GB, free: 14.43 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001149/0.4569, allocations: 83.92 kB / 0.6221 GB, free: 14.34 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00016/0.457, allocations: 108 kB / 0.6222 GB, free: 14.24 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.0006373/0.4577, allocations: 377.6 kB / 0.6226 GB, free: 13.86 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002565/0.4579, allocations: 127.2 kB / 0.6227 GB, free: 13.73 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004862/0.4628, allocations: 1.61 MB / 0.6242 GB, free: 12.11 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.238e-05/0.4628, allocations: 8 kB / 0.6243 GB, free: 12.1 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.646e-06/0.4628, allocations: 7.984 kB / 0.6243 GB, free: 12.09 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.393e-05/0.4628, allocations: 3.984 kB / 0.6243 GB, free: 12.09 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002342/0.4652, allocations: 1.464 MB / 0.6257 GB, free: 10.55 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.57e-06/0.4652, allocations: 4.031 kB / 0.6257 GB, free: 10.55 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00123/0.4664, allocations: 239.7 kB / 0.6259 GB, free: 10.31 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002482/0.4689, allocations: 349.9 kB / 0.6263 GB, free: 9.961 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.905e-05/0.469, allocations: 47.97 kB / 0.6263 GB, free: 9.914 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005166/0.4741, allocations: 3.806 MB / 0.63 GB, free: 5.852 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.079e-06/0.4741, allocations: 8.062 kB / 0.63 GB, free: 5.844 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00509/0.4792, allocations: 2.208 MB / 0.6322 GB, free: 3.574 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003115/0.4795, allocations: 123 kB / 0.6323 GB, free: 3.453 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001626/0.4797, allocations: 27.94 kB / 0.6323 GB, free: 3.426 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006845/0.4804, allocations: 31.98 kB / 0.6324 GB, free: 3.395 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002138/0.4806, allocations: 108.7 kB / 0.6325 GB, free: 3.289 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001133/0.4807, allocations: 55.98 kB / 0.6325 GB, free: 3.234 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0007744/0.4815, allocations: 0.5698 MB / 0.6331 GB, free: 2.656 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4815, allocations: 0 / 0.6331 GB, free: 2.656 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002294/0.4838, allocations: 0.7289 MB / 0.6338 GB, free: 1.926 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.006506/0.4903, allocations: 3.381 MB / 0.6371 GB, free: 14.48 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.002572/0.4929, allocations: 1.472 MB / 0.6385 GB, free: 12.99 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.4929, allocations: 0 / 0.6385 GB, free: 12.99 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001268/0.4941, allocations: 0.7733 MB / 0.6393 GB, free: 12.19 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001255/0.4954, allocations: 238.9 kB / 0.6395 GB, free: 11.96 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02104/0.5164, allocations: 12.18 MB / 0.6514 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009183/0.5173, allocations: 1.263 MB / 0.6526 GB, free: 13.53 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001039/0.5184, allocations: 334.5 kB / 0.653 GB, free: 13.2 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009656/0.5194, allocations: 0.7452 MB / 0.6537 GB, free: 12.45 MB / 0.4981 GB Notification: Performance of SimCode: time 8.12e-07/0.5194, allocations: 3.938 kB / 0.6537 GB, free: 12.45 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.085/0.6044, allocations: 39.79 MB / 0.6925 GB, free: 4.867 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.55/21.15, allocations: 13.94 kB / 0.6926 GB, free: 4.859 MB / 0.5294 GB " [Timeout remaining time 639] (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 & python3 -m fmpy simulate --output-file Chemical_master_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_master_Chemical_Obsolete_Examples_WaterElectrolysis.fmu > Chemical_master_Chemical.Obsolete.Examples.WaterElectrolysis.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 23.81707035299769] Failed to read output from testmodel.py, exit status != 0: 21.300477558004786 21.314711161 20.933846267 Calling exit ...