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: translateModel(Chemical.Examples.WaterElectrolysis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.WaterElectrolysis") translateModel(Chemical.Examples.WaterElectrolysis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.WaterElectrolysis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001199/0.001199, allocations: 105.7 kB / 16.41 MB, free: 6.504 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.001236/0.001236, allocations: 187 kB / 17.34 MB, free: 5.742 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.449/1.449, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.0843/0.0843, allocations: 15.31 MB / 306.5 MB, free: 15.42 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001256/0.001256, allocations: 64.11 kB / 425.9 MB, free: 11.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09647/0.09773, allocations: 53.61 MB / 479.5 MB, free: 5.793 MB / 350.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.03821/0.136, allocations: 28.48 MB / 0.496 GB, free: 9.375 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2406/0.3766, allocations: 17.81 MB / 0.5134 GB, free: 18.18 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001402/0.378, allocations: 20.78 kB / 0.5134 GB, free: 18.18 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001428/0.3795, allocations: 491.8 kB / 0.5139 GB, free: 18.16 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003896/0.3834, allocations: 1.306 MB / 0.5152 GB, free: 17.72 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00716/0.3906, allocations: 2.519 MB / 0.5176 GB, free: 16.93 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003595/0.3942, allocations: 2.286 MB / 0.5199 GB, free: 16.38 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002459/0.3966, allocations: 1.521 MB / 0.5214 GB, free: 16 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001989/0.3986, allocations: 1.034 MB / 0.5224 GB, free: 15.57 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002286/0.4009, allocations: 1.154 MB / 0.5235 GB, free: 15.06 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008147/0.4018, allocations: 224.1 kB / 0.5237 GB, free: 15.06 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007049/0.4088, allocations: 1.812 MB / 0.5255 GB, free: 14.65 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008594/0.4097, allocations: 0.4976 MB / 0.526 GB, free: 14.32 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002227/0.412, allocations: 1.105 MB / 0.5271 GB, free: 13.66 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01027/0.4222, allocations: 4.174 MB / 0.5311 GB, free: 12.08 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.4223, allocations: 0 / 0.5311 GB, free: 12.08 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.454e-06/0.4223, allocations: 0 / 0.5311 GB, free: 12.08 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001327/0.4224, allocations: 5.109 kB / 0.5311 GB, free: 12.07 MB / 382.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.00637/0.4288, allocations: 2.489 MB / 0.5336 GB, free: 10.47 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.383e-05/0.4289, allocations: 8.906 kB / 0.5336 GB, free: 10.47 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001898/0.4308, allocations: 435.5 kB / 0.534 GB, free: 10.27 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001713/0.4325, allocations: 1.116 MB / 0.5351 GB, free: 9.434 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001352/0.4327, allocations: 176.7 kB / 0.5352 GB, free: 9.336 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002812/0.4329, allocations: 201.3 kB / 0.5354 GB, free: 9.27 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002878/0.4358, allocations: 2.135 MB / 0.5375 GB, free: 7.973 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.446e-05/0.4359, allocations: 2.656 kB / 0.5375 GB, free: 7.973 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001612/0.436, allocations: 80.84 kB / 0.5376 GB, free: 7.91 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.105e-05/0.4361, allocations: 48.75 kB / 0.5376 GB, free: 7.91 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002953/0.439, allocations: 2.238 MB / 0.5398 GB, free: 6.938 MB / 382.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.008147/0.4472, allocations: 7.321 MB / 0.547 GB, free: 15.8 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00251/0.4497, allocations: 1.728 MB / 0.5487 GB, free: 14.02 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008194/0.4506, allocations: 0.5804 MB / 0.5492 GB, free: 13.43 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007935/0.4585, allocations: 6.374 MB / 0.5555 GB, free: 6.367 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.241e-05/0.4586, allocations: 50.16 kB / 0.5555 GB, free: 6.312 MB / 398.1 MB Notification: Performance of pre-optimization done (n=88): time 2.334e-06/0.4586, allocations: 0 / 0.5555 GB, free: 6.312 MB / 398.1 MB Notification: Performance of matching and sorting (n=106): time 0.01898/0.4776, allocations: 4.843 MB / 0.5602 GB, free: 1.43 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.543e-05/0.4777, allocations: 115.8 kB / 0.5603 GB, free: 1.293 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001083/0.4787, allocations: 0.9195 MB / 0.5612 GB, free: 364 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.351e-05/0.4789, allocations: 41.7 kB / 0.5613 GB, free: 316 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005375/0.4794, allocations: 0.9278 MB / 0.5622 GB, free: 15.38 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002958/0.4797, allocations: 392.5 kB / 0.5626 GB, free: 15 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004428/0.4802, allocations: 343.2 kB / 0.5629 GB, free: 14.65 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.305e-05/0.4802, allocations: 313 kB / 0.5632 GB, free: 14.34 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007405/0.481, allocations: 451.8 kB / 0.5636 GB, free: 13.9 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001178/0.4822, allocations: 1.195 MB / 0.5648 GB, free: 12.38 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002031/0.4842, allocations: 1.794 MB / 0.5665 GB, free: 10.29 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.198e-05/0.4842, allocations: 10.06 kB / 0.5666 GB, free: 10.28 MB / 414.1 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.005198/0.4894, allocations: 2.078 MB / 0.5686 GB, free: 8.207 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.604e-05/0.4895, allocations: 16 kB / 0.5686 GB, free: 8.191 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.652e-05/0.4895, allocations: 24 kB / 0.5686 GB, free: 8.168 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002682/0.4922, allocations: 373.7 kB / 0.569 GB, free: 7.805 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001713/0.4939, allocations: 450 kB / 0.5694 GB, free: 7.367 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005237/0.4992, allocations: 4.064 MB / 0.5734 GB, free: 3.02 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001315/0.5005, allocations: 90.3 kB / 0.5735 GB, free: 2.934 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001894/0.5007, allocations: 107.9 kB / 0.5736 GB, free: 2.828 MB / 414.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.0007138/0.5014, allocations: 383.8 kB / 0.5739 GB, free: 2.445 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000339/0.5018, allocations: 118.5 kB / 0.574 GB, free: 2.328 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004946/0.5067, allocations: 1.607 MB / 0.5756 GB, free: 0.7695 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.356e-05/0.5068, allocations: 18.67 kB / 0.5756 GB, free: 0.7539 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.5068, allocations: 0 / 0.5756 GB, free: 0.7539 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.378e-05/0.5068, allocations: 10.64 kB / 0.5756 GB, free: 0.7461 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002273/0.5091, allocations: 1.486 MB / 0.5771 GB, free: 15.2 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-05/0.5091, allocations: 4 kB / 0.5771 GB, free: 15.2 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001292/0.5104, allocations: 246.3 kB / 0.5773 GB, free: 14.96 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002509/0.5129, allocations: 346.1 kB / 0.5777 GB, free: 14.62 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000104/0.513, allocations: 51.97 kB / 0.5777 GB, free: 14.57 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004867/0.5179, allocations: 3.982 MB / 0.5816 GB, free: 10.3 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.37e-06/0.5179, allocations: 7.938 kB / 0.5816 GB, free: 10.29 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005053/0.523, allocations: 2.212 MB / 0.5838 GB, free: 8.039 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000346/0.5234, allocations: 191.5 kB / 0.5839 GB, free: 7.832 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002315/0.5236, allocations: 30.59 kB / 0.584 GB, free: 7.805 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008029/0.5244, allocations: 31.98 kB / 0.584 GB, free: 7.773 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000195/0.5246, allocations: 96.81 kB / 0.5841 GB, free: 7.676 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.694e-05/0.5247, allocations: 50.67 kB / 0.5841 GB, free: 7.629 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0007424/0.5255, allocations: 0.5737 MB / 0.5847 GB, free: 7.047 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5255, allocations: 0 / 0.5847 GB, free: 7.047 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002314/0.5278, allocations: 0.73 MB / 0.5854 GB, free: 6.316 MB / 430.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.001562/0.5294, allocations: 0.7023 MB / 0.5861 GB, free: 5.707 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002693/0.5321, allocations: 1.54 MB / 0.5876 GB, free: 4.16 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.5321, allocations: 0 / 0.5876 GB, free: 4.16 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001282/0.5334, allocations: 0.8281 MB / 0.5884 GB, free: 3.312 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001386/0.5348, allocations: 243 kB / 0.5887 GB, free: 3.094 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005361/0.5401, allocations: 3.045 MB / 0.5916 GB, free: 128 kB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001245/0.5414, allocations: 1.255 MB / 0.5929 GB, free: 14.86 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006855/0.5421, allocations: 274.1 kB / 0.5931 GB, free: 14.6 MB / 446.1 MB Notification: Performance of SimCode: time 5.61e-07/0.5421, allocations: 0 / 0.5931 GB, free: 14.6 MB / 446.1 MB Notification: Performance of Templates: time 0.04929/0.5914, allocations: 43.33 MB / 0.6354 GB, free: 3.617 MB / 478.1 MB make -j1 -f Chemical_Chemical.Examples.WaterElectrolysis.makefile (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 & ./Chemical_Chemical.Examples.WaterElectrolysis -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.WaterElectrolysis.pipe 2>&1)