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.001148/0.001148, allocations: 103.7 kB / 16.27 MB, free: 5.98 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.001166/0.001166, allocations: 189.8 kB / 17.2 MB, free: 5.605 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.408/1.408, allocations: 222.9 MB / 240.9 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.0885/0.0885, allocations: 15.31 MB / 306.4 MB, free: 15.52 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001535/0.001535, allocations: 66.09 kB / 371 MB, free: 50.8 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09248/0.09404, allocations: 53.62 MB / 424.6 MB, free: 14.14 MB / 302.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.03322/0.1273, allocations: 28.47 MB / 453.1 MB, free: 1.773 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02071/0.148, allocations: 17.82 MB / 470.9 MB, free: 15.89 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001653/0.1497, allocations: 23.88 kB / 470.9 MB, free: 15.86 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001438/0.1512, allocations: 488.2 kB / 471.4 MB, free: 15.38 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003944/0.1552, allocations: 1.311 MB / 472.7 MB, free: 14.06 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006727/0.1619, allocations: 2.52 MB / 475.2 MB, free: 11.53 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003137/0.1651, allocations: 2.272 MB / 477.5 MB, free: 9.246 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001755/0.1668, allocations: 1.515 MB / 479 MB, free: 7.684 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001184/0.168, allocations: 1.017 MB / 480 MB, free: 6.664 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001457/0.1695, allocations: 1.164 MB / 481.2 MB, free: 5.496 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003325/0.1698, allocations: 227.9 kB / 481.4 MB, free: 5.273 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005821/0.1757, allocations: 1.814 MB / 483.2 MB, free: 3.457 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005908/0.1763, allocations: 0.4946 MB / 483.7 MB, free: 2.961 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001344/0.1777, allocations: 1.101 MB / 484.8 MB, free: 1.855 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008495/0.1862, allocations: 4.138 MB / 488.9 MB, free: 13.7 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.773e-06/0.1862, allocations: 0 / 488.9 MB, free: 13.7 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.1862, allocations: 0 / 488.9 MB, free: 13.7 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.364e-05/0.1863, allocations: 0 / 488.9 MB, free: 13.7 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.004464/0.1907, allocations: 2.495 MB / 491.4 MB, free: 11.15 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.333e-05/0.1908, allocations: 8.031 kB / 491.4 MB, free: 11.14 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001639/0.1924, allocations: 429.9 kB / 491.9 MB, free: 10.72 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001711/0.1942, allocations: 1.095 MB / 493 MB, free: 9.586 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001587/0.1943, allocations: 182 kB / 493.1 MB, free: 9.402 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000278/0.1946, allocations: 199.9 kB / 493.3 MB, free: 9.207 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00325/0.1979, allocations: 2.128 MB / 495.5 MB, free: 7.016 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.498e-05/0.1979, allocations: 4 kB / 495.5 MB, free: 7.012 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001771/0.1981, allocations: 80 kB / 495.5 MB, free: 6.934 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.92e-05/0.1982, allocations: 52 kB / 495.6 MB, free: 6.883 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003507/0.2017, allocations: 2.241 MB / 497.8 MB, free: 4.637 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.01031/0.212, allocations: 7.377 MB / 0.4934 GB, free: 12.9 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002694/0.2147, allocations: 1.722 MB / 0.4951 GB, free: 11.11 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008763/0.2156, allocations: 0.5731 MB / 0.4956 GB, free: 10.52 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008665/0.2243, allocations: 6.376 MB / 0.5018 GB, free: 3.406 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.231e-05/0.2244, allocations: 47.55 kB / 0.5019 GB, free: 3.352 MB / 382.1 MB Notification: Performance of pre-optimization done (n=88): time 5.39e-06/0.2244, allocations: 4 kB / 0.5019 GB, free: 3.348 MB / 382.1 MB Notification: Performance of matching and sorting (n=106): time 0.2099/0.4343, allocations: 4.837 MB / 0.5066 GB, free: 77.96 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.84e-05/0.4344, allocations: 117.3 kB / 0.5067 GB, free: 77.83 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001395/0.4358, allocations: 0.9104 MB / 0.5076 GB, free: 77.66 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002231/0.4361, allocations: 45.23 kB / 0.5077 GB, free: 77.62 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000733/0.4368, allocations: 0.9377 MB / 0.5086 GB, free: 77.09 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003765/0.4372, allocations: 379.8 kB / 0.5089 GB, free: 76.86 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000515/0.4377, allocations: 348.1 kB / 0.5093 GB, free: 76.82 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.047e-05/0.4378, allocations: 301.1 kB / 0.5096 GB, free: 76.53 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007436/0.4385, allocations: 457.3 kB / 0.51 GB, free: 76.47 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001022/0.4396, allocations: 1.202 MB / 0.5112 GB, free: 75.34 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001765/0.4413, allocations: 1.792 MB / 0.5129 GB, free: 73.88 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.032e-05/0.4413, allocations: 7.875 kB / 0.5129 GB, free: 73.88 MB / 382.1 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.005048/0.4464, allocations: 2.061 MB / 0.5149 GB, free: 73.09 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.54e-05/0.4465, allocations: 16.41 kB / 0.5149 GB, free: 73.09 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.163e-05/0.4465, allocations: 24.47 kB / 0.515 GB, free: 73.09 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002435/0.4489, allocations: 380.9 kB / 0.5153 GB, free: 73.02 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001764/0.4507, allocations: 451.7 kB / 0.5158 GB, free: 72.96 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004844/0.4556, allocations: 4.068 MB / 0.5197 GB, free: 69.32 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001416/0.457, allocations: 81.73 kB / 0.5198 GB, free: 69.29 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001742/0.4572, allocations: 110.1 kB / 0.5199 GB, free: 69.27 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.0006839/0.4579, allocations: 385.7 kB / 0.5203 GB, free: 68.98 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002586/0.4582, allocations: 122.9 kB / 0.5204 GB, free: 68.92 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004831/0.463, allocations: 1.614 MB / 0.522 GB, free: 68.33 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.265e-05/0.463, allocations: 10.78 kB / 0.522 GB, free: 68.33 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.446e-06/0.4631, allocations: 6.25 kB / 0.522 GB, free: 68.32 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.464e-05/0.4631, allocations: 8.781 kB / 0.522 GB, free: 68.32 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00224/0.4653, allocations: 1.489 MB / 0.5235 GB, free: 67.57 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.542e-06/0.4653, allocations: 3.062 kB / 0.5235 GB, free: 67.57 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001196/0.4665, allocations: 237 kB / 0.5237 GB, free: 67.55 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002391/0.469, allocations: 355.8 kB / 0.524 GB, free: 67.48 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001274/0.4691, allocations: 45.36 kB / 0.5241 GB, free: 67.46 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00407/0.4732, allocations: 4.002 MB / 0.528 GB, free: 63.83 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.4732, allocations: 7.844 kB / 0.528 GB, free: 63.83 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004429/0.4776, allocations: 2.202 MB / 0.5301 GB, free: 62.73 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003525/0.478, allocations: 186.8 kB / 0.5303 GB, free: 62.57 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001545/0.4782, allocations: 23.88 kB / 0.5303 GB, free: 62.55 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000651/0.4788, allocations: 31.58 kB / 0.5304 GB, free: 62.54 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001967/0.479, allocations: 112 kB / 0.5305 GB, free: 62.52 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.088e-05/0.4791, allocations: 47.28 kB / 0.5305 GB, free: 62.51 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006343/0.4798, allocations: 0.5765 MB / 0.5311 GB, free: 62.26 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4798, allocations: 2.656 kB / 0.5311 GB, free: 62.26 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002175/0.482, allocations: 0.7177 MB / 0.5318 GB, free: 62.18 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 (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.00113/0.4831, allocations: 0.7161 MB / 0.5325 GB, free: 62.01 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003091/0.4862, allocations: 1.627 MB / 0.5341 GB, free: 61.27 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.281e-06/0.4862, allocations: 3.5 kB / 0.5341 GB, free: 61.27 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001072/0.4873, allocations: 0.817 MB / 0.5349 GB, free: 60.78 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00131/0.4886, allocations: 258.7 kB / 0.5351 GB, free: 60.59 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004155/0.4928, allocations: 3.083 MB / 0.5381 GB, free: 57.65 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005469/0.4933, allocations: 1.256 MB / 0.5394 GB, free: 56.39 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005226/0.4939, allocations: 269.5 kB / 0.5396 GB, free: 56.13 MB / 382.1 MB Notification: Performance of SimCode: time 6.21e-07/0.4939, allocations: 0 / 0.5396 GB, free: 56.13 MB / 382.1 MB Notification: Performance of Templates: time 0.03636/0.5303, allocations: 42.92 MB / 0.5815 GB, free: 13.99 MB / 382.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)