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.001758/0.001758, allocations: 108.9 kB / 16.46 MB, free: 6.453 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.002733/0.002733, allocations: 216.2 kB / 19.43 MB, free: 3.625 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.486/1.486, allocations: 230.6 MB / 252.8 MB, free: 8.945 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.14/0.14, allocations: 23.88 MB / 332.7 MB, free: 12.31 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.0 (/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.002132/0.002132, allocations: 63.91 kB / 466 MB, free: 10.05 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2897/0.2919, allocations: 59.83 MB / 0.5135 GB, free: 9.215 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.03859/0.3304, allocations: 29.74 MB / 0.5426 GB, free: 11.22 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02403/0.3545, allocations: 17.91 MB / 0.5601 GB, free: 10.72 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001539/0.356, allocations: 27.81 kB / 0.5601 GB, free: 10.7 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001367/0.3574, allocations: 493.3 kB / 0.5606 GB, free: 10.32 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003942/0.3613, allocations: 1.322 MB / 0.5618 GB, free: 9.195 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006978/0.3683, allocations: 2.542 MB / 0.5643 GB, free: 7.121 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003945/0.3722, allocations: 2.289 MB / 0.5666 GB, free: 5.023 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001961/0.3742, allocations: 1.226 MB / 0.5678 GB, free: 3.742 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001413/0.3756, allocations: 1.056 MB / 0.5688 GB, free: 2.684 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001537/0.3772, allocations: 1.167 MB / 0.5699 GB, free: 1.512 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003408/0.3775, allocations: 224 kB / 0.5701 GB, free: 1.293 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005421/0.3829, allocations: 1.829 MB / 0.5719 GB, free: 15.46 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005626/0.3835, allocations: 0.4985 MB / 0.5724 GB, free: 14.96 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00123/0.3847, allocations: 1.108 MB / 0.5735 GB, free: 13.85 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007915/0.3926, allocations: 4.334 MB / 0.5777 GB, free: 9.496 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.878e-06/0.3926, allocations: 0 / 0.5777 GB, free: 9.496 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.346e-06/0.3926, allocations: 7.938 kB / 0.5777 GB, free: 9.488 MB / 430.1 MB Notification: Performance of Transformations before backend: time 3.245e-05/0.3927, allocations: 0 / 0.5777 GB, free: 9.488 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.004716/0.3974, allocations: 2.553 MB / 0.5802 GB, free: 6.875 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.786e-05/0.3974, allocations: 8.031 kB / 0.5802 GB, free: 6.867 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003499/0.3978, allocations: 274.9 kB / 0.5805 GB, free: 6.59 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001711/0.3995, allocations: 447 kB / 0.5809 GB, free: 6.152 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001916/0.4014, allocations: 1.123 MB / 0.582 GB, free: 4.988 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001712/0.4016, allocations: 181.8 kB / 0.5822 GB, free: 4.805 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003098/0.4019, allocations: 203.9 kB / 0.5824 GB, free: 4.605 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003617/0.4055, allocations: 2.132 MB / 0.5845 GB, free: 2.41 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.683e-05/0.4055, allocations: 11.92 kB / 0.5845 GB, free: 2.398 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001961/0.4057, allocations: 80 kB / 0.5846 GB, free: 2.32 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.295e-05/0.4058, allocations: 48 kB / 0.5846 GB, free: 2.273 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003908/0.4097, allocations: 2.237 MB / 0.5868 GB, free: 32 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.01147/0.4211, allocations: 7.364 MB / 0.594 GB, free: 8.312 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002983/0.4241, allocations: 1.671 MB / 0.5956 GB, free: 6.582 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009438/0.4251, allocations: 0.5257 MB / 0.5961 GB, free: 6.047 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009646/0.4347, allocations: 6.388 MB / 0.6024 GB, free: 14.91 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.101e-05/0.4348, allocations: 47.55 kB / 0.6024 GB, free: 14.86 MB / 462.1 MB Notification: Performance of pre-optimization done (n=88): time 2.435e-06/0.4348, allocations: 4 kB / 0.6024 GB, free: 14.85 MB / 462.1 MB Notification: Performance of matching and sorting (n=106): time 0.01939/0.4541, allocations: 4.903 MB / 0.6072 GB, free: 9.867 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.675e-05/0.4542, allocations: 115.8 kB / 0.6073 GB, free: 9.727 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001365/0.4556, allocations: 0.9198 MB / 0.6082 GB, free: 8.789 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 9.522e-05/0.4557, allocations: 49.7 kB / 0.6083 GB, free: 8.734 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000752/0.4564, allocations: 0.9593 MB / 0.6092 GB, free: 7.762 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003814/0.4568, allocations: 400.6 kB / 0.6096 GB, free: 7.367 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005339/0.4574, allocations: 347.4 kB / 0.6099 GB, free: 7.02 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001361/0.4575, allocations: 301.1 kB / 0.6102 GB, free: 6.723 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009135/0.4584, allocations: 459.8 kB / 0.6106 GB, free: 6.273 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00159/0.46, allocations: 1.199 MB / 0.6118 GB, free: 4.723 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002653/0.4627, allocations: 1.794 MB / 0.6136 GB, free: 2.574 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.435e-05/0.4627, allocations: 8 kB / 0.6136 GB, free: 2.566 MB / 462.1 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.005638/0.4683, allocations: 2.065 MB / 0.6156 GB, free: 496 kB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.051e-05/0.4683, allocations: 16.59 kB / 0.6156 GB, free: 480 kB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.489e-05/0.4684, allocations: 31.94 kB / 0.6156 GB, free: 448 kB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002541/0.4709, allocations: 378 kB / 0.616 GB, free: 60 kB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001827/0.4727, allocations: 451.3 kB / 0.6164 GB, free: 15.62 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006059/0.4788, allocations: 4.072 MB / 0.6204 GB, free: 11.24 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001278/0.4801, allocations: 87.8 kB / 0.6205 GB, free: 11.15 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002305/0.4803, allocations: 116 kB / 0.6206 GB, free: 11.04 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.0007548/0.4811, allocations: 377.1 kB / 0.621 GB, free: 10.66 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003681/0.4814, allocations: 131.2 kB / 0.6211 GB, free: 10.53 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005208/0.4866, allocations: 1.606 MB / 0.6226 GB, free: 8.91 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.544e-05/0.4867, allocations: 12 kB / 0.6227 GB, free: 8.898 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.092e-06/0.4867, allocations: 0 / 0.6227 GB, free: 8.898 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.668e-05/0.4867, allocations: 11.97 kB / 0.6227 GB, free: 8.887 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002528/0.4892, allocations: 1.477 MB / 0.6241 GB, free: 7.32 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.296e-05/0.4892, allocations: 15.86 kB / 0.6241 GB, free: 7.305 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001309/0.4905, allocations: 236.1 kB / 0.6244 GB, free: 7.074 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002486/0.493, allocations: 346.1 kB / 0.6247 GB, free: 6.727 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001502/0.4932, allocations: 47.98 kB / 0.6247 GB, free: 6.68 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005848/0.499, allocations: 4 MB / 0.6286 GB, free: 2.375 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.973e-06/0.499, allocations: 4 kB / 0.6286 GB, free: 2.371 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005753/0.5048, allocations: 2.212 MB / 0.6308 GB, free: 104 kB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003975/0.5052, allocations: 200.2 kB / 0.631 GB, free: 15.89 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002275/0.5054, allocations: 24 kB / 0.631 GB, free: 15.86 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007718/0.5062, allocations: 27.98 kB / 0.631 GB, free: 15.84 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002378/0.5064, allocations: 104.8 kB / 0.6311 GB, free: 15.73 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001236/0.5065, allocations: 59.92 kB / 0.6312 GB, free: 15.68 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0009955/0.5075, allocations: 0.5698 MB / 0.6318 GB, free: 15.1 MB / 494.1 MB Notification: Performance of sort global known variables: time 7e-08/0.5075, allocations: 0 / 0.6318 GB, free: 15.1 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002584/0.5101, allocations: 0.7327 MB / 0.6325 GB, free: 14.36 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.007697/0.5178, allocations: 3.385 MB / 0.6358 GB, free: 10.91 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.003061/0.5209, allocations: 1.463 MB / 0.6372 GB, free: 9.426 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.089e-06/0.5209, allocations: 1.812 kB / 0.6372 GB, free: 9.426 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001463/0.5223, allocations: 0.7768 MB / 0.638 GB, free: 8.625 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001456/0.5238, allocations: 243.5 kB / 0.6382 GB, free: 8.391 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0232/0.547, allocations: 12.17 MB / 0.6501 GB, free: 11.26 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001098/0.5481, allocations: 1.259 MB / 0.6513 GB, free: 9.973 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001126/0.5492, allocations: 350.4 kB / 0.6516 GB, free: 9.625 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001092/0.5503, allocations: 0.7491 MB / 0.6524 GB, free: 8.875 MB / 0.4981 GB Notification: Performance of SimCode: time 8.02e-07/0.5503, allocations: 0 / 0.6524 GB, free: 8.875 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08915/0.6395, allocations: 38.41 MB / 0.6899 GB, free: 2.656 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.33/21.97, allocations: 17.73 kB / 0.6899 GB, free: 2.645 MB / 0.5294 GB " [Timeout remaining time 638] (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: 24.890849438030273] Failed to read output from testmodel.py, exit status != 0: 22.095328683033586 22.119966157 21.722600081 Calling exit ...