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.001283/0.001283, allocations: 103.6 kB / 18.95 MB, free: 2.66 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.001416/0.001416, allocations: 225.2 kB / 22.25 MB, free: 5.254 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.355/1.355, allocations: 230.6 MB / 256 MB, free: 7.797 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.1325/0.1325, allocations: 23.93 MB / 336.4 MB, free: 11.02 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.001909/0.001909, allocations: 67.91 kB / 471.2 MB, free: 7.477 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2954/0.2973, allocations: 59.88 MB / 0.5186 GB, free: 9.469 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.07184/0.3692, allocations: 28.73 MB / 0.5467 GB, free: 11.02 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02209/0.3913, allocations: 15.78 MB / 0.5621 GB, free: 12.68 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001603/0.3929, allocations: 31.75 kB / 0.5621 GB, free: 12.65 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001361/0.3942, allocations: 449.7 kB / 0.5625 GB, free: 12.32 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004045/0.3983, allocations: 1.301 MB / 0.5638 GB, free: 11.21 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007181/0.4055, allocations: 2.577 MB / 0.5663 GB, free: 8.996 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003481/0.4089, allocations: 2.28 MB / 0.5685 GB, free: 6.703 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001582/0.4105, allocations: 1.226 MB / 0.5697 GB, free: 5.422 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001272/0.4118, allocations: 1.052 MB / 0.5708 GB, free: 4.367 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001513/0.4133, allocations: 1.156 MB / 0.5719 GB, free: 3.207 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003285/0.4136, allocations: 228 kB / 0.5721 GB, free: 2.984 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00488/0.4185, allocations: 1.775 MB / 0.5738 GB, free: 1.207 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005122/0.419, allocations: 0.4946 MB / 0.5743 GB, free: 0.7109 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001037/0.4201, allocations: 0.922 MB / 0.5752 GB, free: 15.79 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00759/0.4277, allocations: 4.346 MB / 0.5795 GB, free: 11.42 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.648e-06/0.4277, allocations: 0 / 0.5795 GB, free: 11.42 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.4277, allocations: 0 / 0.5795 GB, free: 11.42 MB / 430.1 MB Notification: Performance of Transformations before backend: time 3.539e-05/0.4277, allocations: 0 / 0.5795 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.004382/0.4321, allocations: 2.478 MB / 0.5819 GB, free: 8.902 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.542e-05/0.4321, allocations: 8.031 kB / 0.5819 GB, free: 8.895 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003155/0.4324, allocations: 274.9 kB / 0.5822 GB, free: 8.617 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001558/0.434, allocations: 439 kB / 0.5826 GB, free: 8.188 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002/0.436, allocations: 1.059 MB / 0.5836 GB, free: 7.102 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001903/0.4362, allocations: 207.5 kB / 0.5838 GB, free: 6.887 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002886/0.4365, allocations: 200 kB / 0.584 GB, free: 6.691 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003311/0.4398, allocations: 2.157 MB / 0.5861 GB, free: 4.465 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.538e-05/0.4398, allocations: 7.922 kB / 0.5861 GB, free: 4.457 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001696/0.44, allocations: 79.98 kB / 0.5862 GB, free: 4.379 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.284e-05/0.44, allocations: 52 kB / 0.5862 GB, free: 4.328 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003524/0.4436, allocations: 2.218 MB / 0.5884 GB, free: 2.105 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.01047/0.454, allocations: 6.082 MB / 0.5943 GB, free: 11.84 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002682/0.4567, allocations: 1.509 MB / 0.5958 GB, free: 10.31 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008398/0.4576, allocations: 0.5293 MB / 0.5963 GB, free: 9.77 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007511/0.4651, allocations: 3.315 MB / 0.5996 GB, free: 6.43 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.637e-05/0.4651, allocations: 47.56 kB / 0.5996 GB, free: 6.375 MB / 446.1 MB Notification: Performance of pre-optimization done (n=88): time 2.755e-06/0.4651, allocations: 4 kB / 0.5996 GB, free: 6.371 MB / 446.1 MB Notification: Performance of matching and sorting (n=106): time 0.01654/0.4816, allocations: 4.677 MB / 0.6042 GB, free: 1.664 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.955e-05/0.4817, allocations: 119.8 kB / 0.6043 GB, free: 1.523 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001249/0.483, allocations: 0.9583 MB / 0.6052 GB, free: 0.5469 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000109/0.4831, allocations: 45.77 kB / 0.6053 GB, free: 0.4961 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007282/0.4838, allocations: 0.9633 MB / 0.6062 GB, free: 15.52 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003743/0.4842, allocations: 400.7 kB / 0.6066 GB, free: 15.12 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004627/0.4846, allocations: 347.4 kB / 0.6069 GB, free: 14.78 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001322/0.4848, allocations: 305.1 kB / 0.6072 GB, free: 14.48 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008081/0.4856, allocations: 455.8 kB / 0.6077 GB, free: 14.03 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001456/0.487, allocations: 1.195 MB / 0.6088 GB, free: 12.48 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002546/0.4896, allocations: 1.798 MB / 0.6106 GB, free: 10.33 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.656e-05/0.4896, allocations: 8 kB / 0.6106 GB, free: 10.32 MB / 462.1 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.005156/0.4948, allocations: 2.065 MB / 0.6126 GB, free: 8.238 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.894e-05/0.4948, allocations: 16 kB / 0.6126 GB, free: 8.223 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.924e-05/0.4948, allocations: 24 kB / 0.6126 GB, free: 8.199 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002293/0.4971, allocations: 386.7 kB / 0.613 GB, free: 7.812 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00177/0.4989, allocations: 451.3 kB / 0.6134 GB, free: 7.371 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005608/0.5045, allocations: 3.846 MB / 0.6172 GB, free: 3.266 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001239/0.5057, allocations: 91.8 kB / 0.6173 GB, free: 3.176 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002027/0.5059, allocations: 108 kB / 0.6174 GB, free: 3.07 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.0007081/0.5067, allocations: 377.1 kB / 0.6178 GB, free: 2.691 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000294/0.507, allocations: 131.2 kB / 0.6179 GB, free: 2.562 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004727/0.5117, allocations: 1.618 MB / 0.6195 GB, free: 0.9297 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.645e-05/0.5117, allocations: 12 kB / 0.6195 GB, free: 0.918 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.544e-06/0.5117, allocations: 4 kB / 0.6195 GB, free: 0.9141 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.007e-05/0.5117, allocations: 7.969 kB / 0.6195 GB, free: 0.9062 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002441/0.5142, allocations: 1.309 MB / 0.6208 GB, free: 15.52 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.638e-06/0.5142, allocations: 7.938 kB / 0.6208 GB, free: 15.52 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001223/0.5154, allocations: 235.7 kB / 0.621 GB, free: 15.29 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002189/0.5176, allocations: 362.2 kB / 0.6213 GB, free: 14.92 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001104/0.5177, allocations: 43.98 kB / 0.6214 GB, free: 14.88 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005369/0.5231, allocations: 3.77 MB / 0.6251 GB, free: 10.85 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.891e-06/0.5231, allocations: 4 kB / 0.6251 GB, free: 10.85 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005312/0.5284, allocations: 2.208 MB / 0.6272 GB, free: 8.578 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000392/0.5288, allocations: 127 kB / 0.6273 GB, free: 8.453 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000162/0.5289, allocations: 27.98 kB / 0.6274 GB, free: 8.426 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006317/0.5296, allocations: 28 kB / 0.6274 GB, free: 8.398 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002216/0.5298, allocations: 104.8 kB / 0.6275 GB, free: 8.297 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00011/0.5299, allocations: 55.91 kB / 0.6276 GB, free: 8.242 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0008204/0.5307, allocations: 0.5776 MB / 0.6281 GB, free: 7.656 MB / 478.1 MB Notification: Performance of sort global known variables: time 8e-08/0.5307, allocations: 0 / 0.6281 GB, free: 7.656 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.00237/0.5331, allocations: 0.725 MB / 0.6288 GB, free: 6.93 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.006717/0.5398, allocations: 3.389 MB / 0.6321 GB, free: 3.473 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00289/0.5427, allocations: 1.468 MB / 0.6336 GB, free: 1.988 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.654e-06/0.5427, allocations: 4 kB / 0.6336 GB, free: 1.984 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001295/0.544, allocations: 0.7695 MB / 0.6343 GB, free: 1.191 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001342/0.5453, allocations: 238.5 kB / 0.6345 GB, free: 0.9609 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0213/0.5666, allocations: 12.18 MB / 0.6464 GB, free: 3.824 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008964/0.5675, allocations: 0.6685 MB / 0.6471 GB, free: 3.121 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001062/0.5686, allocations: 342.5 kB / 0.6474 GB, free: 2.781 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009831/0.5696, allocations: 0.7491 MB / 0.6482 GB, free: 2.031 MB / 494.1 MB Notification: Performance of SimCode: time 1.012e-06/0.5696, allocations: 4 kB / 0.6482 GB, free: 2.027 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08869/0.6583, allocations: 40.08 MB / 0.6873 GB, free: 10.29 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.99/14.65, allocations: 10.86 kB / 0.6873 GB, free: 10.28 MB / 0.5294 GB " [Timeout remaining time 645] (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: 17.353741845989134] Failed to read output from testmodel.py, exit status != 0: 14.79362852498889 14.818472349 14.386206167 Calling exit ...