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.0/package.mo", uses=false) Using package Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/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.0007825/0.0007825, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.0007843/0.0007843, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.305/1.305, allocations: 223.3 MB / 240 MB, free: 5.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.2108/0.2108, allocations: 15.27 MB / 306.3 MB, free: 15.78 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002996/0.0002997, allocations: 8 kB / 371.6 MB, free: 3.836 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.289/0.2893, allocations: 54.62 MB / 426.2 MB, free: 40.31 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo:3011:6-3011: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.0/package.mo:3011:6-3011: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.007637/0.297, allocations: 9.122 MB / 435.3 MB, free: 36.88 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0146/0.3116, allocations: 16.41 MB / 451.7 MB, free: 24.96 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001746/0.3134, allocations: 41.91 kB / 451.8 MB, free: 24.94 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00131/0.3147, allocations: 432 kB / 452.2 MB, free: 24.72 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003453/0.3182, allocations: 1.245 MB / 453.4 MB, free: 23.93 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005671/0.3239, allocations: 2.033 MB / 455.5 MB, free: 22.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002752/0.3266, allocations: 2.111 MB / 457.6 MB, free: 21.69 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00156/0.3282, allocations: 1.148 MB / 458.7 MB, free: 21.22 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001341/0.3296, allocations: 0.8372 MB / 459.5 MB, free: 20.91 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001479/0.3311, allocations: 0.9989 MB / 460.5 MB, free: 20.52 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003792/0.3315, allocations: 118.1 kB / 460.7 MB, free: 20.52 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004737/0.3362, allocations: 1.647 MB / 462.3 MB, free: 20.14 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004222/0.3366, allocations: 388 kB / 462.7 MB, free: 19.92 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006066/0.3373, allocations: 388.3 kB / 463.1 MB, free: 19.72 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004107/0.3414, allocations: 3.112 MB / 466.2 MB, free: 18.6 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.962e-06/0.3414, allocations: 0 / 466.2 MB, free: 18.6 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3414, allocations: 0 / 466.2 MB, free: 18.6 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001114/0.3415, allocations: 1.125 kB / 466.2 MB, free: 18.6 MB / 350.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.004974/0.3465, allocations: 2.121 MB / 468.3 MB, free: 17.34 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.123e-05/0.3466, allocations: 9.938 kB / 468.3 MB, free: 17.34 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000393/0.347, allocations: 273.8 kB / 468.6 MB, free: 17.18 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001531/0.3485, allocations: 431.4 kB / 469 MB, free: 17.03 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001729/0.3502, allocations: 1.051 MB / 470.1 MB, free: 16.4 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001486/0.3504, allocations: 177.1 kB / 470.2 MB, free: 16.3 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002684/0.3507, allocations: 202 kB / 470.4 MB, free: 16.23 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003284/0.354, allocations: 2.117 MB / 472.5 MB, free: 15.33 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.644e-05/0.354, allocations: 2.438 kB / 472.5 MB, free: 15.33 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001607/0.3542, allocations: 84.56 kB / 472.6 MB, free: 15.26 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.96e-05/0.3542, allocations: 49.44 kB / 472.7 MB, free: 15.26 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003392/0.3576, allocations: 2.234 MB / 474.9 MB, free: 14.59 MB / 350.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.009665/0.3673, allocations: 7.337 MB / 482.2 MB, free: 9.715 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002635/0.37, allocations: 1.735 MB / 484 MB, free: 8.863 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008577/0.3708, allocations: 0.5632 MB / 484.5 MB, free: 8.625 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007077/0.3779, allocations: 6.259 MB / 490.8 MB, free: 3.109 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.486e-05/0.378, allocations: 43.19 kB / 490.8 MB, free: 3.062 MB / 350.1 MB Notification: Performance of pre-optimization done (n=88): time 2.435e-06/0.378, allocations: 1.188 kB / 490.8 MB, free: 3.062 MB / 350.1 MB Notification: Performance of matching and sorting (n=106): time 0.01756/0.3956, allocations: 4.897 MB / 495.7 MB, free: 15 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.783e-05/0.3956, allocations: 115.8 kB / 495.9 MB, free: 14.86 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001261/0.3969, allocations: 0.9039 MB / 496.8 MB, free: 13.94 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.491e-05/0.397, allocations: 45.7 kB / 496.8 MB, free: 13.89 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006762/0.3977, allocations: 0.9363 MB / 497.7 MB, free: 12.94 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000352/0.3981, allocations: 382.6 kB / 498.1 MB, free: 12.56 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.411e-05/0.3982, allocations: 36 kB / 498.1 MB, free: 12.52 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001609/0.3983, allocations: 381.9 kB / 498.5 MB, free: 12.14 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008035/0.3991, allocations: 451.8 kB / 499 MB, free: 11.7 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001201/0.4003, allocations: 1.187 MB / 0.4884 GB, free: 10.16 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001092/0.4014, allocations: 0.6314 MB / 0.489 GB, free: 9.531 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.447e-05/0.4015, allocations: 8 kB / 0.489 GB, free: 9.523 MB / 366.1 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.004779/0.4063, allocations: 2.038 MB / 0.491 GB, free: 7.469 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.783e-05/0.4063, allocations: 16.06 kB / 0.4911 GB, free: 7.453 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.075e-05/0.4063, allocations: 28 kB / 0.4911 GB, free: 7.426 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002424/0.4088, allocations: 394.2 kB / 0.4915 GB, free: 7.031 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001566/0.4104, allocations: 447.3 kB / 0.4919 GB, free: 6.594 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004947/0.4153, allocations: 3.869 MB / 0.4957 GB, free: 2.441 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001432/0.4168, allocations: 115.7 kB / 0.4958 GB, free: 2.328 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002416/0.417, allocations: 112 kB / 0.4959 GB, free: 2.219 MB / 366.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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 2 {1 7,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0007561/0.4178, allocations: 377.1 kB / 0.4962 GB, free: 1.84 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002863/0.4181, allocations: 126.4 kB / 0.4964 GB, free: 1.715 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004905/0.423, allocations: 1.632 MB / 0.498 GB, free: 76 kB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.457e-05/0.423, allocations: 8 kB / 0.498 GB, free: 68 kB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.4231, allocations: 4 kB / 0.498 GB, free: 64 kB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.72e-05/0.4231, allocations: 3.984 kB / 0.498 GB, free: 60 kB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002565/0.4256, allocations: 1.481 MB / 0.4994 GB, free: 14.49 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.937e-06/0.4257, allocations: 320 / 0.4994 GB, free: 14.49 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001133/0.4268, allocations: 247.6 kB / 0.4997 GB, free: 14.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002357/0.4292, allocations: 369.9 kB / 0.5 GB, free: 13.88 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001302/0.4293, allocations: 43.98 kB / 0.5 GB, free: 13.83 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004707/0.434, allocations: 3.788 MB / 0.5037 GB, free: 9.75 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.569e-06/0.4341, allocations: 7.938 kB / 0.5038 GB, free: 9.742 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005132/0.4392, allocations: 2.211 MB / 0.5059 GB, free: 7.473 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005298/0.4398, allocations: 183.5 kB / 0.5061 GB, free: 7.273 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002876/0.4401, allocations: 28.19 kB / 0.5061 GB, free: 7.246 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008798/0.4409, allocations: 43.89 kB / 0.5062 GB, free: 7.203 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000213/0.4412, allocations: 108.8 kB / 0.5063 GB, free: 7.098 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001055/0.4413, allocations: 47.98 kB / 0.5063 GB, free: 7.051 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007994/0.4421, allocations: 0.5658 MB / 0.5069 GB, free: 6.473 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4421, allocations: 0 / 0.5069 GB, free: 6.473 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002557/0.4447, allocations: 0.7183 MB / 0.5076 GB, free: 5.754 MB / 382.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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 2 {1 8,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.006613/0.4513, allocations: 3.363 MB / 0.5108 GB, free: 2.32 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002729/0.454, allocations: 1.518 MB / 0.5123 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/0.4541, allocations: 0 / 0.5123 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001393/0.4555, allocations: 0.8282 MB / 0.5131 GB, free: 15.93 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001712/0.4572, allocations: 228.9 kB / 0.5134 GB, free: 15.7 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01762/0.4748, allocations: 9.047 MB / 0.5222 GB, free: 5.973 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009921/0.4759, allocations: 1.263 MB / 0.5234 GB, free: 4.68 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001464/0.4774, allocations: 342.8 kB / 0.5237 GB, free: 4.34 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001061/0.4784, allocations: 0.7491 MB / 0.5245 GB, free: 3.59 MB / 398.1 MB Notification: Performance of SimCode: time 5.51e-07/0.4784, allocations: 0 / 0.5245 GB, free: 3.59 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0664/0.5449, allocations: 35.92 MB / 0.5596 GB, free: 15.93 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001802/0.5451, allocations: 194.8 kB / 0.5597 GB, free: 15.68 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.753/3.298, allocations: 0 / 0.5597 GB, free: 15.68 MB / 446.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/linux/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) Environment - environmentSimulation: