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.004561/0.004561, allocations: 96.7 kB / 15.73 MB, free: 6.055 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.001091/0.001091, allocations: 193.8 kB / 16.67 MB, free: 5.977 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.348/1.348, allocations: 222.9 MB / 240.4 MB, free: 4.289 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1886/0.1886, allocations: 15.33 MB / 305.9 MB, free: 15.24 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001473/0.001473, allocations: 63.91 kB / 424.7 MB, free: 13.61 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2304/0.2319, allocations: 53.61 MB / 478.3 MB, free: 25.54 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.03043/0.2623, allocations: 28.56 MB / 0.495 GB, free: 6.164 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01798/0.2803, allocations: 17.81 MB / 0.5124 GB, free: 4.289 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001523/0.2819, allocations: 19.88 kB / 0.5124 GB, free: 4.27 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00145/0.2834, allocations: 492.1 kB / 0.5129 GB, free: 3.785 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004119/0.2875, allocations: 1.323 MB / 0.5142 GB, free: 2.453 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006166/0.2937, allocations: 2.544 MB / 0.5166 GB, free: 15.89 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002858/0.2966, allocations: 2.288 MB / 0.5189 GB, free: 13.6 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001583/0.2982, allocations: 1.511 MB / 0.5204 GB, free: 12.03 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00107/0.2992, allocations: 1.032 MB / 0.5214 GB, free: 11 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001213/0.3005, allocations: 1.152 MB / 0.5225 GB, free: 9.84 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002638/0.3007, allocations: 227.9 kB / 0.5227 GB, free: 9.617 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004734/0.3055, allocations: 1.81 MB / 0.5245 GB, free: 7.805 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004311/0.3059, allocations: 0.4985 MB / 0.525 GB, free: 7.305 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009914/0.3069, allocations: 1.104 MB / 0.526 GB, free: 6.195 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006772/0.3137, allocations: 4.198 MB / 0.5301 GB, free: 1.98 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.3137, allocations: 0 / 0.5301 GB, free: 1.98 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.714e-06/0.3138, allocations: 4 kB / 0.5301 GB, free: 1.977 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.685e-05/0.3138, allocations: 0 / 0.5301 GB, free: 1.977 MB / 398.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.004086/0.3179, allocations: 2.553 MB / 0.5326 GB, free: 15.36 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.661e-05/0.3179, allocations: 8.031 kB / 0.5326 GB, free: 15.36 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002851/0.3182, allocations: 274.9 kB / 0.5329 GB, free: 15.08 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001601/0.3198, allocations: 444.2 kB / 0.5333 GB, free: 14.64 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001757/0.3216, allocations: 1.115 MB / 0.5344 GB, free: 13.49 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001475/0.3218, allocations: 181.8 kB / 0.5346 GB, free: 13.3 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002957/0.3221, allocations: 203.9 kB / 0.5348 GB, free: 13.11 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003255/0.3253, allocations: 2.131 MB / 0.5369 GB, free: 10.91 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.134e-05/0.3254, allocations: 3.938 kB / 0.5369 GB, free: 10.91 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001734/0.3256, allocations: 80 kB / 0.5369 GB, free: 10.83 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.522e-05/0.3256, allocations: 48 kB / 0.537 GB, free: 10.78 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003469/0.3291, allocations: 2.241 MB / 0.5392 GB, free: 8.535 MB / 414.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.009826/0.3389, allocations: 7.352 MB / 0.5464 GB, free: 0.8281 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002721/0.3417, allocations: 1.729 MB / 0.5481 GB, free: 15.03 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008359/0.3425, allocations: 0.5729 MB / 0.5486 GB, free: 14.45 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008299/0.3508, allocations: 6.381 MB / 0.5548 GB, free: 7.328 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.4e-05/0.3509, allocations: 43.56 kB / 0.5549 GB, free: 7.277 MB / 430.1 MB Notification: Performance of pre-optimization done (n=88): time 2.214e-06/0.3509, allocations: 0 / 0.5549 GB, free: 7.277 MB / 430.1 MB Notification: Performance of matching and sorting (n=106): time 0.01805/0.3689, allocations: 4.903 MB / 0.5597 GB, free: 2.285 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.877e-05/0.369, allocations: 115.8 kB / 0.5598 GB, free: 2.148 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001026/0.3701, allocations: 0.9198 MB / 0.5607 GB, free: 1.211 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 7.205e-05/0.3701, allocations: 45.7 kB / 0.5607 GB, free: 1.16 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005357/0.3707, allocations: 0.971 MB / 0.5617 GB, free: 180 kB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002919/0.371, allocations: 396.7 kB / 0.5621 GB, free: 15.79 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004334/0.3714, allocations: 351.3 kB / 0.5624 GB, free: 15.43 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.048e-05/0.3715, allocations: 301.1 kB / 0.5627 GB, free: 15.14 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007883/0.3723, allocations: 455.8 kB / 0.5631 GB, free: 14.69 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001237/0.3736, allocations: 1.202 MB / 0.5643 GB, free: 13.14 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002149/0.3757, allocations: 1.79 MB / 0.566 GB, free: 11 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.164e-05/0.3757, allocations: 8 kB / 0.566 GB, free: 10.99 MB / 446.1 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.005072/0.3808, allocations: 2.065 MB / 0.5681 GB, free: 8.902 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.154e-05/0.3809, allocations: 19.94 kB / 0.5681 GB, free: 8.883 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.267e-05/0.3809, allocations: 28.59 kB / 0.5681 GB, free: 8.855 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002572/0.3835, allocations: 393.9 kB / 0.5685 GB, free: 8.461 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001809/0.3853, allocations: 447.3 kB / 0.5689 GB, free: 8.023 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005297/0.3906, allocations: 4.063 MB / 0.5729 GB, free: 3.66 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0015/0.3922, allocations: 87.78 kB / 0.573 GB, free: 3.574 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001897/0.3924, allocations: 108 kB / 0.5731 GB, free: 3.469 MB / 446.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.0007356/0.3931, allocations: 381.2 kB / 0.5734 GB, free: 3.086 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002844/0.3934, allocations: 135.1 kB / 0.5736 GB, free: 2.953 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004649/0.3981, allocations: 1.61 MB / 0.5751 GB, free: 1.328 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.319e-05/0.3981, allocations: 12 kB / 0.5751 GB, free: 1.316 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/0.3981, allocations: 0 / 0.5751 GB, free: 1.316 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.18e-05/0.3981, allocations: 3.984 kB / 0.5751 GB, free: 1.312 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002269/0.4004, allocations: 1.489 MB / 0.5766 GB, free: 15.74 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.096e-05/0.4004, allocations: 11.88 kB / 0.5766 GB, free: 15.73 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001289/0.4017, allocations: 240.1 kB / 0.5768 GB, free: 15.49 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002362/0.4041, allocations: 350.1 kB / 0.5772 GB, free: 15.14 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.539e-05/0.4042, allocations: 43.98 kB / 0.5772 GB, free: 15.1 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00492/0.4091, allocations: 3.996 MB / 0.5811 GB, free: 10.79 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.429e-06/0.4092, allocations: 4.188 kB / 0.5811 GB, free: 10.79 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005102/0.4143, allocations: 2.227 MB / 0.5833 GB, free: 8.504 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003509/0.4146, allocations: 196.2 kB / 0.5835 GB, free: 8.293 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000164/0.4148, allocations: 24 kB / 0.5835 GB, free: 8.27 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006982/0.4155, allocations: 31.98 kB / 0.5835 GB, free: 8.238 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001928/0.4157, allocations: 96.81 kB / 0.5836 GB, free: 8.141 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.931e-05/0.4158, allocations: 55.92 kB / 0.5837 GB, free: 8.086 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0007246/0.4165, allocations: 0.5776 MB / 0.5842 GB, free: 7.5 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4165, allocations: 0 / 0.5842 GB, free: 7.5 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002261/0.4188, allocations: 0.7327 MB / 0.585 GB, free: 6.766 MB / 462.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.006344/0.4252, allocations: 3.37 MB / 0.5882 GB, free: 3.332 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.002591/0.4278, allocations: 1.534 MB / 0.5897 GB, free: 1.773 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.107e-06/0.4278, allocations: 4 kB / 0.5897 GB, free: 1.77 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001284/0.4291, allocations: 0.8356 MB / 0.5906 GB, free: 0.9102 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001354/0.4305, allocations: 247.6 kB / 0.5908 GB, free: 0.6719 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01933/0.4498, allocations: 12.19 MB / 0.6027 GB, free: 3.52 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007809/0.4506, allocations: 1.259 MB / 0.6039 GB, free: 2.227 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001013/0.4516, allocations: 330.5 kB / 0.6043 GB, free: 1.898 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008988/0.4525, allocations: 0.753 MB / 0.605 GB, free: 1.145 MB / 478.1 MB Notification: Performance of SimCode: time 8.71e-07/0.4525, allocations: 0 / 0.605 GB, free: 1.145 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2556/0.7082, allocations: 37.82 MB / 0.6419 GB, free: 102.9 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 20.1/20.81, allocations: 10.55 kB / 0.6419 GB, free: 102.9 MB / 478.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)