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.0009973/0.0009974, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.001178/0.001178, allocations: 177.3 kB / 15.95 MB, free: 216 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.288/1.288, allocations: 223.2 MB / 239.9 MB, free: 5.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.2032/0.2032, allocations: 15.26 MB / 306.2 MB, free: 15.71 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003034/0.0003034, allocations: 8 kB / 371.5 MB, free: 3.906 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3148/0.3151, allocations: 54.61 MB / 426.1 MB, free: 40.04 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.007441/0.3226, allocations: 8.191 MB / 434.3 MB, free: 37.34 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01579/0.3384, allocations: 15.29 MB / 449.6 MB, free: 26.36 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002313/0.3408, allocations: 41.09 kB / 449.6 MB, free: 26.34 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001464/0.3423, allocations: 440.6 kB / 450 MB, free: 26.12 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004763/0.347, allocations: 1.477 MB / 451.5 MB, free: 25.12 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006683/0.3537, allocations: 2.234 MB / 453.7 MB, free: 23.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003242/0.357, allocations: 1.541 MB / 455.3 MB, free: 22.94 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001616/0.3587, allocations: 1.152 MB / 456.4 MB, free: 22.47 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00139/0.3601, allocations: 0.7909 MB / 457.2 MB, free: 22.14 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001195/0.3613, allocations: 0.9724 MB / 458.2 MB, free: 21.75 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001855/0.3615, allocations: 120.3 kB / 458.3 MB, free: 21.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006889/0.3684, allocations: 1.986 MB / 460.3 MB, free: 21.4 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000323/0.3687, allocations: 381.9 kB / 460.7 MB, free: 21.19 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005207/0.3692, allocations: 393.5 kB / 461.1 MB, free: 20.98 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004997/0.3742, allocations: 2.614 MB / 463.7 MB, free: 20.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.886e-06/0.3743, allocations: 0 / 463.7 MB, free: 20.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.946e-06/0.3743, allocations: 0.9688 kB / 463.7 MB, free: 20.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.052e-05/0.3743, allocations: 0 / 463.7 MB, free: 20.16 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.005075/0.3794, allocations: 2.119 MB / 465.8 MB, free: 18.91 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.289e-05/0.3795, allocations: 9.625 kB / 465.8 MB, free: 18.91 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003699/0.3798, allocations: 280.1 kB / 466.1 MB, free: 18.73 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001685/0.3815, allocations: 430.6 kB / 466.5 MB, free: 18.59 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00193/0.3835, allocations: 1.036 MB / 467.5 MB, free: 17.96 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001845/0.3837, allocations: 183.9 kB / 467.7 MB, free: 17.86 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000297/0.384, allocations: 198.8 kB / 467.9 MB, free: 17.79 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003343/0.3873, allocations: 2.117 MB / 470 MB, free: 16.88 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.467e-05/0.3874, allocations: 5.312 kB / 470 MB, free: 16.88 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001675/0.3876, allocations: 81.88 kB / 470.1 MB, free: 16.82 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.455e-05/0.3876, allocations: 48.75 kB / 470.1 MB, free: 16.82 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003863/0.3915, allocations: 2.222 MB / 472.4 MB, free: 16.16 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.01072/0.4022, allocations: 7.341 MB / 479.7 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002727/0.405, allocations: 1.732 MB / 481.4 MB, free: 10.43 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008477/0.4135, allocations: 6.236 MB / 487.7 MB, free: 5.371 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.893e-05/0.4136, allocations: 45.72 kB / 487.7 MB, free: 5.324 MB / 350.1 MB Notification: Performance of pre-optimization done (n=88): time 3.176e-06/0.4136, allocations: 0 / 487.7 MB, free: 5.324 MB / 350.1 MB Notification: Performance of matching and sorting (n=106): time 0.01821/0.4318, allocations: 4.897 MB / 492.6 MB, free: 2.102 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.326e-05/0.4319, allocations: 123.8 kB / 492.7 MB, free: 1.957 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000933/0.4328, allocations: 0.9 MB / 493.6 MB, free: 1.039 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.419e-05/0.4329, allocations: 45.7 kB / 493.7 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003625/0.4333, allocations: 0.9286 MB / 494.6 MB, free: 44 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003416/0.4336, allocations: 394.6 kB / 495 MB, free: 15.65 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.303e-05/0.4337, allocations: 32 kB / 495 MB, free: 15.62 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001958/0.4339, allocations: 377.9 kB / 495.4 MB, free: 15.25 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007368/0.4347, allocations: 451.8 kB / 495.8 MB, free: 14.8 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001204/0.4359, allocations: 1.179 MB / 497 MB, free: 13.27 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000974/0.4369, allocations: 0.6236 MB / 497.6 MB, free: 12.65 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.888e-06/0.4369, allocations: 12 kB / 497.7 MB, free: 12.64 MB / 366.1 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.005261/0.4422, allocations: 2.042 MB / 499.7 MB, free: 10.58 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.51e-05/0.4422, allocations: 16 kB / 499.7 MB, free: 10.56 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.606e-05/0.4423, allocations: 28 kB / 499.7 MB, free: 10.54 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002546/0.4448, allocations: 394.2 kB / 0.4884 GB, free: 10.14 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001756/0.4466, allocations: 451.3 kB / 0.4888 GB, free: 9.699 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005407/0.452, allocations: 3.905 MB / 0.4926 GB, free: 5.512 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001722/0.4538, allocations: 119.7 kB / 0.4928 GB, free: 5.395 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002137/0.454, allocations: 108 kB / 0.4929 GB, free: 5.289 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.0006807/0.4547, allocations: 381.1 kB / 0.4932 GB, free: 4.906 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002268/0.4549, allocations: 126.4 kB / 0.4933 GB, free: 4.781 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004702/0.4596, allocations: 1.629 MB / 0.4949 GB, free: 3.145 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.223e-05/0.4596, allocations: 12 kB / 0.495 GB, free: 3.133 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.68e-06/0.4597, allocations: 4 kB / 0.495 GB, free: 3.129 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.412e-05/0.4597, allocations: 7.984 kB / 0.495 GB, free: 3.121 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002262/0.4619, allocations: 1.477 MB / 0.4964 GB, free: 1.555 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.416e-06/0.462, allocations: 4 kB / 0.4964 GB, free: 1.551 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001166/0.4631, allocations: 239.7 kB / 0.4966 GB, free: 1.316 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002453/0.4656, allocations: 370.3 kB / 0.497 GB, free: 0.9453 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001036/0.4657, allocations: 47.98 kB / 0.497 GB, free: 0.8984 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004754/0.4705, allocations: 3.815 MB / 0.5008 GB, free: 12.79 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.539e-06/0.4705, allocations: 8.016 kB / 0.5008 GB, free: 12.78 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004905/0.4754, allocations: 2.354 MB / 0.5031 GB, free: 10.31 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000578/0.476, allocations: 195.4 kB / 0.5033 GB, free: 10.1 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001614/0.4762, allocations: 28 kB / 0.5033 GB, free: 10.07 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006952/0.4769, allocations: 47.83 kB / 0.5033 GB, free: 10.02 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001925/0.4771, allocations: 100.8 kB / 0.5034 GB, free: 9.926 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.215e-05/0.4772, allocations: 47.98 kB / 0.5035 GB, free: 9.879 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007461/0.478, allocations: 0.5697 MB / 0.504 GB, free: 9.301 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.478, allocations: 4 kB / 0.504 GB, free: 9.297 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002462/0.4804, allocations: 0.7105 MB / 0.5047 GB, free: 8.586 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.007501/0.4879, allocations: 4.318 MB / 0.5089 GB, free: 4.148 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003288/0.4913, allocations: 1.522 MB / 0.5104 GB, free: 2.602 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.132e-05/0.4913, allocations: 4.812 kB / 0.5104 GB, free: 2.598 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001431/0.4928, allocations: 0.823 MB / 0.5112 GB, free: 1.75 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001639/0.4944, allocations: 209.4 kB / 0.5114 GB, free: 1.543 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01787/0.5123, allocations: 22.51 MB / 0.5334 GB, free: 10.34 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00108/0.5135, allocations: 1.286 MB / 0.5347 GB, free: 9.027 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001686/0.5152, allocations: 338.9 kB / 0.535 GB, free: 8.691 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009432/0.5162, allocations: 0.7455 MB / 0.5357 GB, free: 7.945 MB / 414.1 MB Notification: Performance of SimCode: time 1.072e-06/0.5162, allocations: 0 / 0.5357 GB, free: 7.945 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05823/0.5744, allocations: 35.41 MB / 0.5703 GB, free: 4.793 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001868/0.5746, allocations: 188.9 kB / 0.5705 GB, free: 4.555 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.662/3.237, allocations: 0 / 0.5705 GB, free: 4.555 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: