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.001247/0.001246, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001253/0.001253, allocations: 186.7 kB / 16.25 MB, free: 6.578 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.255/1.255, allocations: 222.9 MB / 239.9 MB, free: 4.555 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2009/0.2009, allocations: 15.3 MB / 305.4 MB, free: 15.34 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001272/0.001272, allocations: 59.91 kB / 369.9 MB, free: 4.262 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09744/0.09873, allocations: 53.61 MB / 423.5 MB, free: 14.6 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.3262/0.425, allocations: 29.41 MB / 453 MB, free: 38.9 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0159/0.4409, allocations: 17.68 MB / 470.6 MB, free: 31.47 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001707/0.4427, allocations: 43.47 kB / 470.7 MB, free: 31.45 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001258/0.4439, allocations: 422.7 kB / 471.1 MB, free: 31.25 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003673/0.4476, allocations: 1.185 MB / 472.3 MB, free: 30.59 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006592/0.4542, allocations: 2.258 MB / 474.5 MB, free: 29.4 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002514/0.4567, allocations: 2.278 MB / 476.8 MB, free: 28.25 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001399/0.4582, allocations: 1.512 MB / 478.3 MB, free: 27.53 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001196/0.4594, allocations: 1.065 MB / 479.4 MB, free: 27.09 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001074/0.4605, allocations: 1.168 MB / 480.6 MB, free: 26.56 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002671/0.4607, allocations: 223.8 kB / 480.8 MB, free: 26.56 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005935/0.4667, allocations: 1.855 MB / 482.6 MB, free: 26.12 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003975/0.4671, allocations: 0.5058 MB / 483.1 MB, free: 25.79 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001139/0.4682, allocations: 1.107 MB / 484.2 MB, free: 25.12 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009162/0.4774, allocations: 4.007 MB / 488.2 MB, free: 23.39 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.4774, allocations: 4.609 kB / 488.2 MB, free: 23.39 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.4774, allocations: 4 kB / 488.3 MB, free: 23.39 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.093e-05/0.4775, allocations: 0 / 488.3 MB, free: 23.39 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.004311/0.4818, allocations: 2.486 MB / 490.7 MB, free: 21.91 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.879e-05/0.4818, allocations: 14.88 kB / 490.8 MB, free: 21.91 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002651/0.4821, allocations: 279.4 kB / 491 MB, free: 21.73 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001564/0.4837, allocations: 425.9 kB / 491.4 MB, free: 21.6 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001703/0.4854, allocations: 1.083 MB / 492.5 MB, free: 20.95 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001175/0.4855, allocations: 180 kB / 492.7 MB, free: 20.85 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002297/0.4858, allocations: 209.4 kB / 492.9 MB, free: 20.78 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003003/0.4888, allocations: 2.125 MB / 495 MB, free: 19.88 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.808e-05/0.4888, allocations: 3.594 kB / 495 MB, free: 19.88 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001602/0.489, allocations: 82.31 kB / 495.1 MB, free: 19.81 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.638e-05/0.489, allocations: 46.59 kB / 495.2 MB, free: 19.81 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003083/0.4921, allocations: 2.233 MB / 497.4 MB, free: 19.15 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.009175/0.5013, allocations: 7.371 MB / 0.4929 GB, free: 13.38 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002212/0.5035, allocations: 1.727 MB / 0.4946 GB, free: 11.73 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007222/0.5043, allocations: 0.5827 MB / 0.4952 GB, free: 11.19 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007138/0.5114, allocations: 6.394 MB / 0.5014 GB, free: 4.754 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.08e-05/0.5115, allocations: 47.5 kB / 0.5015 GB, free: 4.699 MB / 366.1 MB Notification: Performance of pre-optimization done (n=88): time 3.336e-06/0.5115, allocations: 0 / 0.5015 GB, free: 4.699 MB / 366.1 MB Notification: Performance of matching and sorting (n=106): time 0.01807/0.5296, allocations: 4.842 MB / 0.5062 GB, free: 164 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.431e-05/0.5296, allocations: 119.8 kB / 0.5063 GB, free: 16 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001086/0.5307, allocations: 0.9157 MB / 0.5072 GB, free: 15.08 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.299e-05/0.5308, allocations: 45.7 kB / 0.5073 GB, free: 15.03 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005295/0.5314, allocations: 0.944 MB / 0.5082 GB, free: 14.07 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000291/0.5317, allocations: 374.7 kB / 0.5085 GB, free: 13.7 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004279/0.5321, allocations: 347.1 kB / 0.5089 GB, free: 13.36 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.398e-05/0.5322, allocations: 305.1 kB / 0.5092 GB, free: 13.05 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007698/0.533, allocations: 455.8 kB / 0.5096 GB, free: 12.61 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001216/0.5342, allocations: 1.195 MB / 0.5108 GB, free: 11.06 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002116/0.5363, allocations: 1.794 MB / 0.5125 GB, free: 8.914 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.157e-05/0.5363, allocations: 8 kB / 0.5125 GB, free: 8.906 MB / 382.1 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.00538/0.5417, allocations: 2.057 MB / 0.5145 GB, free: 6.832 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.648e-05/0.5418, allocations: 18.03 kB / 0.5145 GB, free: 6.816 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.846e-05/0.5418, allocations: 28 kB / 0.5146 GB, free: 6.789 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002674/0.5445, allocations: 378.8 kB / 0.5149 GB, free: 6.41 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001849/0.5464, allocations: 447.3 kB / 0.5154 GB, free: 5.969 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005389/0.5518, allocations: 4.089 MB / 0.5194 GB, free: 1.582 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001576/0.5534, allocations: 127.5 kB / 0.5195 GB, free: 1.457 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001698/0.5536, allocations: 112 kB / 0.5196 GB, free: 1.348 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.0006803/0.5543, allocations: 377.1 kB / 0.5199 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002635/0.5545, allocations: 126.5 kB / 0.5201 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00501/0.5595, allocations: 1.617 MB / 0.5216 GB, free: 15.21 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.181e-05/0.5596, allocations: 12 kB / 0.5217 GB, free: 15.2 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.835e-06/0.5596, allocations: 4 kB / 0.5217 GB, free: 15.19 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.412e-05/0.5596, allocations: 3.984 kB / 0.5217 GB, free: 15.19 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002474/0.5621, allocations: 1.493 MB / 0.5231 GB, free: 13.61 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.518e-06/0.5621, allocations: 7.938 kB / 0.5231 GB, free: 13.6 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001243/0.5634, allocations: 239.7 kB / 0.5234 GB, free: 13.37 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002518/0.5659, allocations: 354.5 kB / 0.5237 GB, free: 13.01 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001255/0.566, allocations: 43.92 kB / 0.5237 GB, free: 12.97 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004994/0.571, allocations: 3.99 MB / 0.5276 GB, free: 8.672 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.331e-06/0.5711, allocations: 4 kB / 0.5276 GB, free: 8.668 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005354/0.5764, allocations: 2.207 MB / 0.5298 GB, free: 6.406 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004312/0.5769, allocations: 191.4 kB / 0.53 GB, free: 6.199 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001771/0.5771, allocations: 27.98 kB / 0.53 GB, free: 6.172 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007725/0.5779, allocations: 47.89 kB / 0.53 GB, free: 6.125 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002186/0.5781, allocations: 96.81 kB / 0.5301 GB, free: 6.031 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001038/0.5782, allocations: 55.92 kB / 0.5302 GB, free: 5.977 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007119/0.5789, allocations: 0.5737 MB / 0.5308 GB, free: 5.395 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5789, allocations: 4 kB / 0.5308 GB, free: 5.391 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002297/0.5812, allocations: 0.7144 MB / 0.5315 GB, free: 4.676 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.006679/0.5879, allocations: 3.367 MB / 0.5347 GB, free: 1.234 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003286/0.5912, allocations: 1.619 MB / 0.5363 GB, free: 15.59 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.18e-06/0.5912, allocations: 0 / 0.5363 GB, free: 15.59 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00127/0.5925, allocations: 0.837 MB / 0.5371 GB, free: 14.73 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001503/0.594, allocations: 246.2 kB / 0.5374 GB, free: 14.5 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02101/0.6151, allocations: 13.61 MB / 0.5507 GB, free: 15.68 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007595/0.6159, allocations: 1.255 MB / 0.5519 GB, free: 14.39 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001375/0.6172, allocations: 342.8 kB / 0.5522 GB, free: 14.05 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008899/0.6181, allocations: 0.7452 MB / 0.5529 GB, free: 13.31 MB / 430.1 MB Notification: Performance of SimCode: time 9.71e-07/0.6182, allocations: 0 / 0.5529 GB, free: 13.31 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06347/0.6816, allocations: 37.19 MB / 0.5893 GB, free: 8.309 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001738/0.6818, allocations: 202.4 kB / 0.5895 GB, free: 8.059 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.845/3.527, allocations: 0 / 0.5895 GB, free: 8.059 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)