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.001262/0.001262, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001286/0.001286, allocations: 192.9 kB / 16.14 MB, free: 6.688 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.315/1.315, allocations: 222.9 MB / 239.8 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1748/0.1748, allocations: 15.31 MB / 305.3 MB, free: 15.3 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001161/0.001161, allocations: 63.91 kB / 369.8 MB, free: 4.367 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08274/0.08392, allocations: 53.61 MB / 423.4 MB, free: 14.71 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.2809/0.3649, allocations: 29.42 MB / 452.8 MB, free: 38.23 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01419/0.3791, allocations: 17.83 MB / 470.6 MB, free: 30.77 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001275/0.3804, allocations: 39.22 kB / 470.6 MB, free: 30.76 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00106/0.3815, allocations: 418.3 kB / 471.1 MB, free: 30.56 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00264/0.3841, allocations: 1.177 MB / 472.2 MB, free: 29.89 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005064/0.3892, allocations: 2.216 MB / 474.4 MB, free: 28.9 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001972/0.3912, allocations: 2.191 MB / 476.6 MB, free: 27.82 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001115/0.3923, allocations: 1.282 MB / 477.9 MB, free: 27.24 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008741/0.3932, allocations: 0.9825 MB / 478.9 MB, free: 26.88 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009331/0.3941, allocations: 1.118 MB / 480 MB, free: 26.39 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002405/0.3944, allocations: 149 kB / 480.2 MB, free: 26.39 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005013/0.3994, allocations: 1.749 MB / 481.9 MB, free: 25.97 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003454/0.3997, allocations: 447.4 kB / 482.4 MB, free: 25.7 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009268/0.4007, allocations: 1.027 MB / 483.4 MB, free: 25.12 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006337/0.407, allocations: 3.922 MB / 487.3 MB, free: 23.44 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.4071, allocations: 1.875 kB / 487.3 MB, free: 23.44 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.4071, allocations: 4 kB / 487.3 MB, free: 23.44 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.017e-05/0.4072, allocations: 0 / 487.3 MB, free: 23.44 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.006486/0.4137, allocations: 2.489 MB / 489.8 MB, free: 21.96 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.524e-05/0.4137, allocations: 10.78 kB / 489.8 MB, free: 21.96 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000381/0.4141, allocations: 276 kB / 490.1 MB, free: 21.79 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001853/0.416, allocations: 435.2 kB / 490.5 MB, free: 21.65 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001993/0.418, allocations: 1.078 MB / 491.6 MB, free: 21 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00015/0.4182, allocations: 181 kB / 491.8 MB, free: 20.9 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002441/0.4184, allocations: 207 kB / 492 MB, free: 20.83 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00301/0.4214, allocations: 2.132 MB / 494.1 MB, free: 19.92 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.246e-05/0.4215, allocations: 3.656 kB / 494.1 MB, free: 19.92 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001576/0.4216, allocations: 75.86 kB / 494.2 MB, free: 19.86 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.366e-05/0.4217, allocations: 50.56 kB / 494.2 MB, free: 19.86 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002983/0.4247, allocations: 2.237 MB / 496.5 MB, free: 19.2 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.008664/0.4333, allocations: 7.37 MB / 0.492 GB, free: 13.86 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002144/0.4355, allocations: 1.738 MB / 0.4937 GB, free: 12.2 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006849/0.4362, allocations: 0.5673 MB / 0.4943 GB, free: 11.67 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006629/0.4428, allocations: 6.392 MB / 0.5005 GB, free: 5.238 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.334e-05/0.4429, allocations: 44.31 kB / 0.5006 GB, free: 5.188 MB / 366.1 MB Notification: Performance of pre-optimization done (n=88): time 2.104e-06/0.4429, allocations: 0 / 0.5006 GB, free: 5.188 MB / 366.1 MB Notification: Performance of matching and sorting (n=106): time 0.01713/0.46, allocations: 4.847 MB / 0.5053 GB, free: 0.8281 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.113e-05/0.4601, allocations: 115.8 kB / 0.5054 GB, free: 0.6875 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008457/0.4609, allocations: 0.9203 MB / 0.5063 GB, free: 15.85 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.636e-05/0.461, allocations: 45.7 kB / 0.5063 GB, free: 15.8 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000502/0.4615, allocations: 0.9323 MB / 0.5073 GB, free: 14.85 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002659/0.4618, allocations: 382.7 kB / 0.5076 GB, free: 14.47 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004136/0.4622, allocations: 347.1 kB / 0.5079 GB, free: 14.13 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.185e-05/0.4623, allocations: 301.1 kB / 0.5082 GB, free: 13.83 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007725/0.4631, allocations: 459.8 kB / 0.5087 GB, free: 13.38 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001165/0.4642, allocations: 1.195 MB / 0.5098 GB, free: 11.84 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002065/0.4663, allocations: 1.79 MB / 0.5116 GB, free: 9.691 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.304e-05/0.4663, allocations: 12 kB / 0.5116 GB, free: 9.68 MB / 382.1 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.005061/0.4714, allocations: 2.068 MB / 0.5136 GB, free: 7.594 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.616e-05/0.4714, allocations: 16.59 kB / 0.5136 GB, free: 7.578 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.768e-05/0.4715, allocations: 32 kB / 0.5137 GB, free: 7.547 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002571/0.474, allocations: 374.2 kB / 0.514 GB, free: 7.172 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001621/0.4757, allocations: 447.3 kB / 0.5144 GB, free: 6.734 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004929/0.4806, allocations: 3.85 MB / 0.5182 GB, free: 2.594 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00126/0.4819, allocations: 123.6 kB / 0.5183 GB, free: 2.473 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001542/0.4821, allocations: 108 kB / 0.5184 GB, free: 2.367 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.0006283/0.4827, allocations: 381 kB / 0.5188 GB, free: 1.984 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002438/0.4829, allocations: 122.4 kB / 0.5189 GB, free: 1.863 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004832/0.4878, allocations: 1.614 MB / 0.5205 GB, free: 236 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.779e-06/0.4878, allocations: 12 kB / 0.5205 GB, free: 224 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.4878, allocations: 0 / 0.5205 GB, free: 224 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.087e-05/0.4878, allocations: 7.922 kB / 0.5205 GB, free: 216 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002013/0.4898, allocations: 1.496 MB / 0.522 GB, free: 14.63 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.344e-06/0.4899, allocations: 4 kB / 0.522 GB, free: 14.62 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001199/0.4911, allocations: 244 kB / 0.5222 GB, free: 14.39 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002463/0.4935, allocations: 350.2 kB / 0.5225 GB, free: 14.04 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.258e-05/0.4936, allocations: 39.98 kB / 0.5226 GB, free: 14 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004531/0.4982, allocations: 3.762 MB / 0.5262 GB, free: 9.941 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.676e-06/0.4982, allocations: 4 kB / 0.5263 GB, free: 9.938 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004805/0.503, allocations: 2.207 MB / 0.5284 GB, free: 7.672 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002696/0.5033, allocations: 187.4 kB / 0.5286 GB, free: 7.469 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001577/0.5035, allocations: 27.98 kB / 0.5286 GB, free: 7.441 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007093/0.5042, allocations: 43.98 kB / 0.5287 GB, free: 7.398 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001876/0.5044, allocations: 100.8 kB / 0.5288 GB, free: 7.301 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.52e-05/0.5045, allocations: 56.06 kB / 0.5288 GB, free: 7.246 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006459/0.5051, allocations: 0.5775 MB / 0.5294 GB, free: 6.66 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5051, allocations: 0 / 0.5294 GB, free: 6.66 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002042/0.5072, allocations: 0.7183 MB / 0.5301 GB, free: 5.941 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.006221/0.5134, allocations: 3.37 MB / 0.5334 GB, free: 2.504 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002339/0.5158, allocations: 1.521 MB / 0.5348 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.5158, allocations: 1.938 kB / 0.5348 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001207/0.517, allocations: 0.8313 MB / 0.5357 GB, free: 108 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001304/0.5183, allocations: 220.7 kB / 0.5359 GB, free: 15.89 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02114/0.5394, allocations: 13.62 MB / 0.5492 GB, free: 1.062 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008626/0.5404, allocations: 1.251 MB / 0.5504 GB, free: 15.78 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001389/0.5418, allocations: 339.3 kB / 0.5507 GB, free: 15.45 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009084/0.5427, allocations: 0.7491 MB / 0.5514 GB, free: 14.7 MB / 430.1 MB Notification: Performance of SimCode: time 6.52e-07/0.5427, allocations: 3.938 kB / 0.5515 GB, free: 14.69 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04997/0.5927, allocations: 36.29 MB / 0.5869 GB, free: 10.58 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001603/0.5929, allocations: 213.9 kB / 0.5871 GB, free: 10.32 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.671/3.264, allocations: 0 / 0.5871 GB, free: 10.32 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_WaterElectrolysis_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_WaterElectrolysis.fmu > Chemical_Chemical.Examples.WaterElectrolysis.pipe 2>&1)