Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.WaterElectrolysis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo", uses=false) Using package Chemical with version 1.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Chemical.Examples.WaterElectrolysis,fileNamePrefix="Chemical_Chemical_Examples_WaterElectrolysis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.WaterElectrolysis,fileNamePrefix="Chemical_Chemical_Examples_WaterElectrolysis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007949/0.007949, allocations: 98.17 kB / 15.73 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00222/0.00222, allocations: 196.9 kB / 16.68 MB, free: 5.93 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.427/1.427, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08557/0.08557, allocations: 15.31 MB / 305.8 MB, free: 15.38 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001884/0.001884, allocations: 63.91 kB / 424.7 MB, free: 11.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08813/0.09003, allocations: 53.59 MB / 478.3 MB, free: 6.273 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:3019:6-3019: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 1.4.1-master/package.mo:3019:6-3019: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.Examples.WaterElectrolysis): time 0.04071/0.1308, allocations: 28.91 MB / 0.4953 GB, free: 9.441 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2024/0.3332, allocations: 17.8 MB / 0.5127 GB, free: 17.98 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001209/0.3344, allocations: 21.62 kB / 0.5127 GB, free: 17.98 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001329/0.3358, allocations: 480.6 kB / 0.5132 GB, free: 17.97 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003755/0.3396, allocations: 1.318 MB / 0.5144 GB, free: 17.54 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006629/0.3462, allocations: 2.521 MB / 0.5169 GB, free: 16.75 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003301/0.3496, allocations: 2.282 MB / 0.5191 GB, free: 16.2 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001971/0.3516, allocations: 1.517 MB / 0.5206 GB, free: 15.82 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001588/0.3532, allocations: 1.025 MB / 0.5216 GB, free: 15.4 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001773/0.355, allocations: 1.155 MB / 0.5228 GB, free: 14.89 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004782/0.3555, allocations: 226.3 kB / 0.523 GB, free: 14.89 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005994/0.3615, allocations: 1.815 MB / 0.5247 GB, free: 14.47 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006647/0.3622, allocations: 0.4981 MB / 0.5252 GB, free: 14.14 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001376/0.3635, allocations: 1.106 MB / 0.5263 GB, free: 13.48 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008423/0.372, allocations: 4.187 MB / 0.5304 GB, free: 11.88 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.803e-06/0.372, allocations: 5.031 kB / 0.5304 GB, free: 11.88 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.372, allocations: 0 / 0.5304 GB, free: 11.88 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.89e-05/0.3721, allocations: 2.625 kB / 0.5304 GB, free: 11.88 MB / 382.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.0049/0.377, allocations: 2.548 MB / 0.5329 GB, free: 10.23 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.213e-05/0.3771, allocations: 13.69 kB / 0.5329 GB, free: 10.23 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002949/0.3774, allocations: 273.9 kB / 0.5332 GB, free: 10.01 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001663/0.379, allocations: 444.6 kB / 0.5336 GB, free: 9.801 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001853/0.3809, allocations: 1.114 MB / 0.5347 GB, free: 8.965 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001517/0.3811, allocations: 184.2 kB / 0.5349 GB, free: 8.859 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003441/0.3814, allocations: 202 kB / 0.535 GB, free: 8.789 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003247/0.3847, allocations: 2.133 MB / 0.5371 GB, free: 7.496 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.914e-05/0.3848, allocations: 2.938 kB / 0.5371 GB, free: 7.496 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001885/0.385, allocations: 84.12 kB / 0.5372 GB, free: 7.434 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.991e-05/0.385, allocations: 51.12 kB / 0.5373 GB, free: 7.434 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003248/0.3882, allocations: 2.233 MB / 0.5394 GB, free: 6.461 MB / 382.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.009303/0.3976, allocations: 7.347 MB / 0.5466 GB, free: 15.31 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002961/0.4006, allocations: 1.736 MB / 0.5483 GB, free: 13.52 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001006/0.4016, allocations: 0.5804 MB / 0.5489 GB, free: 12.93 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009701/0.4113, allocations: 6.371 MB / 0.5551 GB, free: 5.871 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.142e-05/0.4114, allocations: 43.56 kB / 0.5551 GB, free: 5.82 MB / 398.1 MB Notification: Performance of pre-optimization done (n=88): time 2.695e-06/0.4114, allocations: 2.656 kB / 0.5551 GB, free: 5.82 MB / 398.1 MB Notification: Performance of matching and sorting (n=106): time 0.02051/0.4319, allocations: 4.917 MB / 0.5599 GB, free: 0.8711 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.38e-05/0.432, allocations: 119.8 kB / 0.5601 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001291/0.4333, allocations: 0.9197 MB / 0.561 GB, free: 15.79 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001573/0.4335, allocations: 41.7 kB / 0.561 GB, free: 15.75 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007198/0.4342, allocations: 0.9597 MB / 0.5619 GB, free: 14.79 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004388/0.4347, allocations: 399.5 kB / 0.5623 GB, free: 14.4 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005077/0.4352, allocations: 347.4 kB / 0.5626 GB, free: 14.05 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001322/0.4353, allocations: 305.1 kB / 0.5629 GB, free: 13.75 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008847/0.4362, allocations: 455.8 kB / 0.5634 GB, free: 13.3 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001548/0.4378, allocations: 1.203 MB / 0.5645 GB, free: 11.77 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002809/0.4406, allocations: 1.79 MB / 0.5663 GB, free: 9.688 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.275e-05/0.4406, allocations: 11.56 kB / 0.5663 GB, free: 9.68 MB / 414.1 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.006236/0.4469, allocations: 2.077 MB / 0.5683 GB, free: 7.613 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.363e-05/0.447, allocations: 16 kB / 0.5684 GB, free: 7.598 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.432e-05/0.447, allocations: 31.98 kB / 0.5684 GB, free: 7.566 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002819/0.4498, allocations: 374.1 kB / 0.5687 GB, free: 7.199 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00194/0.4518, allocations: 450 kB / 0.5692 GB, free: 6.762 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00631/0.4581, allocations: 4.063 MB / 0.5731 GB, free: 2.418 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001419/0.4596, allocations: 94.44 kB / 0.5732 GB, free: 2.328 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002782/0.4599, allocations: 104.9 kB / 0.5733 GB, free: 2.227 MB / 414.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.0008599/0.4608, allocations: 377.1 kB / 0.5737 GB, free: 1.848 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000388/0.4612, allocations: 131.2 kB / 0.5738 GB, free: 1.719 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005531/0.4667, allocations: 1.614 MB / 0.5754 GB, free: 164 kB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-05/0.4667, allocations: 18.64 kB / 0.5754 GB, free: 148 kB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.4668, allocations: 0 / 0.5754 GB, free: 148 kB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.011e-05/0.4668, allocations: 3.984 kB / 0.5754 GB, free: 144 kB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002861/0.4696, allocations: 1.488 MB / 0.5769 GB, free: 14.59 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.477e-05/0.4697, allocations: 6.688 kB / 0.5769 GB, free: 14.59 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001407/0.4711, allocations: 243.6 kB / 0.5771 GB, free: 14.35 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002779/0.4739, allocations: 346.2 kB / 0.5774 GB, free: 14.01 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001674/0.4741, allocations: 47.98 kB / 0.5775 GB, free: 13.96 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005891/0.48, allocations: 3.996 MB / 0.5814 GB, free: 9.684 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.243e-06/0.48, allocations: 6.656 kB / 0.5814 GB, free: 9.68 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005875/0.4859, allocations: 2.211 MB / 0.5835 GB, free: 7.426 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003986/0.4863, allocations: 198.9 kB / 0.5837 GB, free: 7.215 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002587/0.4866, allocations: 31.92 kB / 0.5838 GB, free: 7.184 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008141/0.4874, allocations: 24 kB / 0.5838 GB, free: 7.16 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002477/0.4877, allocations: 107.5 kB / 0.5839 GB, free: 7.055 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001268/0.4878, allocations: 51.97 kB / 0.5839 GB, free: 7.004 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.00088/0.4887, allocations: 0.5736 MB / 0.5845 GB, free: 6.422 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4887, allocations: 0 / 0.5845 GB, free: 6.422 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002512/0.4912, allocations: 0.725 MB / 0.5852 GB, free: 5.695 MB / 430.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.007565/0.4988, allocations: 3.387 MB / 0.5885 GB, free: 2.359 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003069/0.5019, allocations: 1.536 MB / 0.59 GB, free: 0.8086 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.979e-06/0.5019, allocations: 6.656 kB / 0.59 GB, free: 0.8047 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001534/0.5035, allocations: 0.8316 MB / 0.5908 GB, free: 15.95 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001621/0.5051, allocations: 238 kB / 0.5911 GB, free: 15.74 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0248/0.5299, allocations: 12.2 MB / 0.603 GB, free: 2.848 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001209/0.5312, allocations: 1.252 MB / 0.6042 GB, free: 1.582 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001227/0.5324, allocations: 335.6 kB / 0.6045 GB, free: 1.273 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001181/0.5336, allocations: 0.7467 MB / 0.6052 GB, free: 0.5312 MB / 446.1 MB Notification: Performance of SimCode: time 6.61e-07/0.5336, allocations: 0 / 0.6052 GB, free: 0.5312 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09039/0.624, allocations: 37.84 MB / 0.6422 GB, free: 11.12 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 20.67/21.3, allocations: 6.75 kB / 0.6422 GB, free: 11.12 MB / 494.1 MB (rm -f Chemical_Chemical.Examples.WaterElectrolysis.pipe ; mkfifo Chemical_Chemical.Examples.WaterElectrolysis.pipe ; head -c 1048576 < Chemical_Chemical.Examples.WaterElectrolysis.pipe >> ../files/Chemical_Chemical.Examples.WaterElectrolysis.sim & python3 -m fmpy simulate --output-file Chemical_Chemical.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_Examples_WaterElectrolysis.fmu > Chemical_Chemical.Examples.WaterElectrolysis.pipe 2>&1)