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.001333/0.001333, allocations: 105.5 kB / 16.45 MB, free: 6.508 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.001371/0.001371, allocations: 213.7 kB / 19.43 MB, free: 3.648 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.417/1.417, allocations: 230.6 MB / 252.8 MB, free: 9.121 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.84 MB / 332.7 MB, free: 12.39 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.001948/0.001948, allocations: 67.88 kB / 466 MB, free: 10.12 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3112/0.3131, allocations: 59.81 MB / 0.5135 GB, free: 8.859 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.04282/0.3559, allocations: 29.57 MB / 0.5423 GB, free: 11.34 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02461/0.3805, allocations: 17.91 MB / 0.5598 GB, free: 10.85 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001949/0.3825, allocations: 23.81 kB / 0.5598 GB, free: 10.82 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001748/0.3842, allocations: 485.8 kB / 0.5603 GB, free: 10.46 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004782/0.389, allocations: 1.317 MB / 0.5616 GB, free: 9.336 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007738/0.3968, allocations: 2.554 MB / 0.5641 GB, free: 7.25 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.004131/0.4009, allocations: 2.289 MB / 0.5663 GB, free: 5.172 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002084/0.403, allocations: 1.236 MB / 0.5675 GB, free: 3.906 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001708/0.4047, allocations: 1.052 MB / 0.5686 GB, free: 2.852 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001761/0.4064, allocations: 1.164 MB / 0.5697 GB, free: 1.684 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003489/0.4068, allocations: 224 kB / 0.5699 GB, free: 1.465 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005912/0.4127, allocations: 1.837 MB / 0.5717 GB, free: 15.62 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000637/0.4133, allocations: 0.5024 MB / 0.5722 GB, free: 15.12 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001449/0.4148, allocations: 1.101 MB / 0.5733 GB, free: 14.02 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01008/0.4249, allocations: 4.334 MB / 0.5775 GB, free: 9.664 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.728e-06/0.4249, allocations: 4 kB / 0.5775 GB, free: 9.66 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.4249, allocations: 0 / 0.5775 GB, free: 9.66 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.153e-05/0.4249, allocations: 0 / 0.5775 GB, free: 9.66 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.005115/0.43, allocations: 2.557 MB / 0.58 GB, free: 7.043 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.084e-05/0.4301, allocations: 8.031 kB / 0.58 GB, free: 7.035 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003409/0.4304, allocations: 278.9 kB / 0.5803 GB, free: 6.754 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001721/0.4321, allocations: 443 kB / 0.5807 GB, free: 6.32 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002058/0.4342, allocations: 1.131 MB / 0.5818 GB, free: 5.148 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002028/0.4344, allocations: 181.8 kB / 0.582 GB, free: 4.965 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003235/0.4347, allocations: 196 kB / 0.5822 GB, free: 4.773 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003941/0.4387, allocations: 2.131 MB / 0.5842 GB, free: 2.578 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.959e-05/0.4387, allocations: 11.94 kB / 0.5843 GB, free: 2.566 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002538/0.439, allocations: 80 kB / 0.5843 GB, free: 2.488 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.382e-05/0.439, allocations: 48 kB / 0.5844 GB, free: 2.441 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003908/0.4429, allocations: 2.237 MB / 0.5866 GB, free: 204 kB / 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.01176/0.4547, allocations: 7.364 MB / 0.5938 GB, free: 8.48 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002967/0.4576, allocations: 1.659 MB / 0.5954 GB, free: 6.766 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009272/0.4586, allocations: 0.5295 MB / 0.5959 GB, free: 6.227 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009463/0.468, allocations: 6.396 MB / 0.6021 GB, free: 15.08 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.755e-05/0.4681, allocations: 39.56 kB / 0.6022 GB, free: 15.04 MB / 462.1 MB Notification: Performance of pre-optimization done (n=88): time 2.655e-06/0.4681, allocations: 0 / 0.6022 GB, free: 15.04 MB / 462.1 MB Notification: Performance of matching and sorting (n=106): time 0.01975/0.4878, allocations: 4.911 MB / 0.607 GB, free: 10.04 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.1e-05/0.4879, allocations: 123.7 kB / 0.6071 GB, free: 9.895 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00139/0.4893, allocations: 0.9198 MB / 0.608 GB, free: 8.957 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001241/0.4894, allocations: 41.7 kB / 0.608 GB, free: 8.91 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007666/0.4902, allocations: 0.9632 MB / 0.609 GB, free: 7.934 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000423/0.4906, allocations: 396.7 kB / 0.6093 GB, free: 7.543 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000544/0.4912, allocations: 347.4 kB / 0.6097 GB, free: 7.195 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001326/0.4913, allocations: 305.1 kB / 0.61 GB, free: 6.895 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009393/0.4922, allocations: 451.8 kB / 0.6104 GB, free: 6.453 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001651/0.4939, allocations: 1.202 MB / 0.6116 GB, free: 4.898 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002775/0.4967, allocations: 1.79 MB / 0.6133 GB, free: 2.754 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.892e-05/0.4967, allocations: 8 kB / 0.6133 GB, free: 2.746 MB / 462.1 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.005698/0.5024, allocations: 2.061 MB / 0.6153 GB, free: 0.668 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.552e-05/0.5024, allocations: 16.59 kB / 0.6154 GB, free: 0.6523 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.487e-05/0.5025, allocations: 24 kB / 0.6154 GB, free: 0.6289 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002579/0.505, allocations: 393.9 kB / 0.6158 GB, free: 240 kB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001868/0.5069, allocations: 443.4 kB / 0.6162 GB, free: 15.8 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006031/0.5129, allocations: 4.08 MB / 0.6202 GB, free: 11.41 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001262/0.5142, allocations: 83.98 kB / 0.6202 GB, free: 11.33 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001951/0.5144, allocations: 112 kB / 0.6203 GB, free: 11.22 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.0007041/0.5151, allocations: 381 kB / 0.6207 GB, free: 10.84 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003002/0.5154, allocations: 131.1 kB / 0.6208 GB, free: 10.71 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005072/0.5205, allocations: 1.622 MB / 0.6224 GB, free: 9.074 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.481e-05/0.5205, allocations: 12 kB / 0.6224 GB, free: 9.062 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.5205, allocations: 0 / 0.6224 GB, free: 9.062 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.7e-05/0.5205, allocations: 3.984 kB / 0.6224 GB, free: 9.059 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002685/0.5232, allocations: 1.477 MB / 0.6239 GB, free: 7.492 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.32e-05/0.5232, allocations: 7.938 kB / 0.6239 GB, free: 7.484 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001321/0.5245, allocations: 240 kB / 0.6241 GB, free: 7.25 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002517/0.527, allocations: 350.1 kB / 0.6244 GB, free: 6.898 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001495/0.5272, allocations: 47.98 kB / 0.6245 GB, free: 6.852 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005587/0.5328, allocations: 4 MB / 0.6284 GB, free: 2.547 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.451e-06/0.5328, allocations: 4 kB / 0.6284 GB, free: 2.543 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005544/0.5383, allocations: 2.22 MB / 0.6306 GB, free: 272 kB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00039/0.5387, allocations: 192.2 kB / 0.6308 GB, free: 60 kB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002205/0.5389, allocations: 31.98 kB / 0.6308 GB, free: 28 kB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007717/0.5397, allocations: 24 kB / 0.6308 GB, free: 4 kB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002825/0.54, allocations: 100.8 kB / 0.6309 GB, free: 15.91 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001228/0.5401, allocations: 59.91 kB / 0.631 GB, free: 15.85 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0008761/0.541, allocations: 0.5737 MB / 0.6315 GB, free: 15.27 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.541, allocations: 4.031 kB / 0.6315 GB, free: 15.26 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002483/0.5435, allocations: 0.7327 MB / 0.6322 GB, free: 14.53 MB / 494.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.007368/0.5509, allocations: 3.389 MB / 0.6356 GB, free: 11.07 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.003011/0.5539, allocations: 1.463 MB / 0.637 GB, free: 9.586 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.731e-06/0.5539, allocations: 1.875 kB / 0.637 GB, free: 9.586 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001481/0.5553, allocations: 0.7729 MB / 0.6377 GB, free: 8.789 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001571/0.5569, allocations: 239.8 kB / 0.638 GB, free: 8.555 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02402/0.5809, allocations: 12.17 MB / 0.6499 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001178/0.5821, allocations: 1.267 MB / 0.6511 GB, free: 10.13 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001228/0.5833, allocations: 334.5 kB / 0.6514 GB, free: 9.797 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001138/0.5845, allocations: 0.7452 MB / 0.6521 GB, free: 9.051 MB / 0.4981 GB Notification: Performance of SimCode: time 8.52e-07/0.5845, allocations: 0 / 0.6521 GB, free: 9.051 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.089/0.6735, allocations: 38.41 MB / 0.6896 GB, free: 2.828 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.82/21.49, allocations: 4 kB / 0.6897 GB, free: 2.824 MB / 0.5294 GB " [Timeout remaining time 638] (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: 24.19499156299571] Failed to read output from testmodel.py, exit status != 0: 21.613533855008427 21.641936367 21.211765179 Calling exit ...