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.002055/0.002055, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.003054/0.003054, allocations: 199.3 kB / 16.54 MB, free: 6.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.626/2.626, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.4441/0.4441, allocations: 15.33 MB / 305.7 MB, free: 15.29 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002792/0.002792, allocations: 67.89 kB / 370.4 MB, free: 3.836 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1811/0.1839, allocations: 53.6 MB / 424 MB, free: 14.18 MB / 366.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.6602/0.8442, allocations: 28.48 MB / 452.5 MB, free: 39.29 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03805/0.8823, allocations: 17.81 MB / 470.3 MB, free: 31.29 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002801/0.8852, allocations: 23.03 kB / 470.4 MB, free: 31.28 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002997/0.8882, allocations: 484.9 kB / 470.8 MB, free: 31.01 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008961/0.8972, allocations: 1.31 MB / 472.1 MB, free: 30.23 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01451/0.9118, allocations: 2.528 MB / 474.7 MB, free: 28.95 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00636/0.9182, allocations: 2.265 MB / 476.9 MB, free: 27.82 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004133/0.9224, allocations: 1.513 MB / 478.4 MB, free: 27.1 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003483/0.9259, allocations: 1.024 MB / 479.5 MB, free: 26.67 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003871/0.9298, allocations: 1.151 MB / 480.6 MB, free: 26.14 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001543/0.9314, allocations: 224.2 kB / 480.8 MB, free: 26.14 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0135/0.945, allocations: 1.82 MB / 482.7 MB, free: 25.7 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001616/0.9467, allocations: 0.4923 MB / 483.1 MB, free: 25.38 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003731/0.9504, allocations: 1.105 MB / 484.3 MB, free: 24.71 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02119/0.9717, allocations: 4.136 MB / 488.4 MB, free: 22.88 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.704e-05/0.9718, allocations: 5.406 kB / 488.4 MB, free: 22.87 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.496e-06/0.9718, allocations: 0 / 488.4 MB, free: 22.87 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001422/0.972, allocations: 0 / 488.4 MB, free: 22.87 MB / 366.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.01042/0.9824, allocations: 2.493 MB / 490.9 MB, free: 21.39 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.209e-05/0.9825, allocations: 7.25 kB / 490.9 MB, free: 21.39 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006811/0.9832, allocations: 274.8 kB / 491.2 MB, free: 21.23 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003359/0.9865, allocations: 435.6 kB / 491.6 MB, free: 21.08 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003771/0.9904, allocations: 1.089 MB / 492.7 MB, free: 20.43 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002449/0.9906, allocations: 185.1 kB / 492.9 MB, free: 20.32 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006202/0.9913, allocations: 198.1 kB / 493.1 MB, free: 20.26 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006084/0.9974, allocations: 2.126 MB / 495.2 MB, free: 19.36 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.761e-05/0.9975, allocations: 3.938 kB / 495.2 MB, free: 19.36 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002714/0.9978, allocations: 81.62 kB / 495.3 MB, free: 19.29 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.337e-05/0.9978, allocations: 50 kB / 495.3 MB, free: 19.29 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005884/1.004, allocations: 2.242 MB / 497.6 MB, free: 18.62 MB / 366.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.01896/1.023, allocations: 7.377 MB / 0.4931 GB, free: 13.52 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003968/1.027, allocations: 1.748 MB / 0.4948 GB, free: 11.85 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001359/1.028, allocations: 0.5675 MB / 0.4954 GB, free: 11.32 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01237/1.041, allocations: 6.368 MB / 0.5016 GB, free: 4.906 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.508e-05/1.041, allocations: 39.56 kB / 0.5016 GB, free: 4.859 MB / 366.1 MB Notification: Performance of pre-optimization done (n=88): time 5.119e-06/1.041, allocations: 0 / 0.5016 GB, free: 4.859 MB / 366.1 MB Notification: Performance of matching and sorting (n=106): time 0.02648/1.067, allocations: 4.871 MB / 0.5064 GB, free: 40 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001289/1.067, allocations: 111.8 kB / 0.5065 GB, free: 15.9 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001938/1.069, allocations: 0.9156 MB / 0.5074 GB, free: 14.97 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002291/1.07, allocations: 45.7 kB / 0.5074 GB, free: 14.92 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009218/1.071, allocations: 0.9286 MB / 0.5083 GB, free: 13.97 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000606/1.071, allocations: 382.6 kB / 0.5087 GB, free: 13.59 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007005/1.072, allocations: 343.2 kB / 0.509 GB, free: 13.25 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001903/1.072, allocations: 305.1 kB / 0.5093 GB, free: 12.95 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001302/1.073, allocations: 459.8 kB / 0.5097 GB, free: 12.5 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00215/1.076, allocations: 1.195 MB / 0.5109 GB, free: 10.96 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0037/1.079, allocations: 1.79 MB / 0.5127 GB, free: 8.816 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.411e-05/1.079, allocations: 8 kB / 0.5127 GB, free: 8.809 MB / 382.1 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.009067/1.088, allocations: 2.068 MB / 0.5147 GB, free: 6.719 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.413e-05/1.089, allocations: 16 kB / 0.5147 GB, free: 6.703 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.495e-05/1.089, allocations: 31.98 kB / 0.5147 GB, free: 6.672 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005513/1.094, allocations: 378.8 kB / 0.5151 GB, free: 6.293 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003489/1.098, allocations: 451.3 kB / 0.5155 GB, free: 5.848 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009292/1.107, allocations: 4.063 MB / 0.5195 GB, free: 1.488 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003134/1.11, allocations: 83.81 kB / 0.5196 GB, free: 1.406 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007195/1.111, allocations: 108 kB / 0.5197 GB, free: 1.301 MB / 382.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.001733/1.113, allocations: 386.5 kB / 0.52 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007647/1.114, allocations: 126.4 kB / 0.5202 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008406/1.122, allocations: 1.618 MB / 0.5217 GB, free: 15.15 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.757e-05/1.122, allocations: 12 kB / 0.5218 GB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.227e-05/1.122, allocations: 0 / 0.5218 GB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.986e-05/1.122, allocations: 7.969 kB / 0.5218 GB, free: 15.13 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00484/1.127, allocations: 1.481 MB / 0.5232 GB, free: 13.56 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.191e-05/1.127, allocations: 7.938 kB / 0.5232 GB, free: 13.55 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002677/1.13, allocations: 235.7 kB / 0.5234 GB, free: 13.32 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003982/1.134, allocations: 350.5 kB / 0.5238 GB, free: 12.97 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003694/1.134, allocations: 47.98 kB / 0.5238 GB, free: 12.93 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00809/1.142, allocations: 3.998 MB / 0.5277 GB, free: 8.625 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.556e-05/1.142, allocations: 7.984 kB / 0.5277 GB, free: 8.617 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008532/1.151, allocations: 2.211 MB / 0.5299 GB, free: 6.352 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006724/1.152, allocations: 191.6 kB / 0.5301 GB, free: 6.145 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005025/1.152, allocations: 28 kB / 0.5301 GB, free: 6.117 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001324/1.154, allocations: 27.97 kB / 0.5301 GB, free: 6.09 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003872/1.154, allocations: 108.8 kB / 0.5302 GB, free: 5.984 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000185/1.154, allocations: 52.02 kB / 0.5303 GB, free: 5.934 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001413/1.156, allocations: 0.5775 MB / 0.5308 GB, free: 5.348 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.4e-07/1.156, allocations: 0 / 0.5308 GB, free: 5.348 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.004289/1.16, allocations: 0.7183 MB / 0.5315 GB, free: 4.629 MB / 398.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.01236/1.172, allocations: 3.36 MB / 0.5348 GB, free: 1.203 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.007671/1.18, allocations: 1.624 MB / 0.5364 GB, free: 15.55 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 9.959e-06/1.18, allocations: 4.062 kB / 0.5364 GB, free: 15.55 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002973/1.183, allocations: 0.8267 MB / 0.5372 GB, free: 14.7 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003347/1.186, allocations: 244 kB / 0.5375 GB, free: 14.46 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04006/1.227, allocations: 12.85 MB / 0.55 GB, free: 412 kB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001939/1.229, allocations: 1.255 MB / 0.5512 GB, free: 15.12 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002877/1.231, allocations: 338.5 kB / 0.5515 GB, free: 14.78 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001541/1.233, allocations: 0.7452 MB / 0.5523 GB, free: 14.04 MB / 430.1 MB Notification: Performance of SimCode: time 1.392e-06/1.233, allocations: 0 / 0.5523 GB, free: 14.04 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1557/1.389, allocations: 37.29 MB / 0.5887 GB, free: 8.891 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 28.04/29.43, allocations: 3.984 kB / 0.5887 GB, free: 8.887 MB / 462.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)