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.001069/0.001069, 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.001348/0.001348, 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.281/1.281, allocations: 223.3 MB / 240 MB, free: 5.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1832/0.1832, allocations: 15.28 MB / 306.4 MB, free: 15.79 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002957/0.0002959, allocations: 11.98 kB / 371.5 MB, free: 3.973 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2538/0.2541, allocations: 54.62 MB / 426.1 MB, free: 40.25 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.007074/0.2612, allocations: 9.135 MB / 435.2 MB, free: 36.8 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01347/0.2747, allocations: 16.49 MB / 451.7 MB, free: 24.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001701/0.2764, allocations: 41.81 kB / 451.8 MB, free: 24.8 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00128/0.2777, allocations: 427.9 kB / 452.2 MB, free: 24.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003449/0.2812, allocations: 1.273 MB / 453.5 MB, free: 23.79 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004935/0.2862, allocations: 2.026 MB / 455.5 MB, free: 22.61 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00236/0.2886, allocations: 2.1 MB / 457.6 MB, free: 21.55 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001271/0.2898, allocations: 1.146 MB / 458.7 MB, free: 21.09 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001137/0.291, allocations: 0.8312 MB / 459.6 MB, free: 20.79 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001335/0.2924, allocations: 1.007 MB / 460.6 MB, free: 20.38 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000314/0.2927, allocations: 115.9 kB / 460.7 MB, free: 20.38 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004454/0.2971, allocations: 1.668 MB / 462.4 MB, free: 20 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004307/0.2976, allocations: 379.3 kB / 462.7 MB, free: 19.79 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000594/0.2982, allocations: 393.3 kB / 463.1 MB, free: 19.59 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004192/0.3024, allocations: 3.133 MB / 466.2 MB, free: 18.46 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.3024, allocations: 1.281 kB / 466.2 MB, free: 18.46 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3024, allocations: 0 / 466.2 MB, free: 18.46 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.904e-05/0.3025, allocations: 0 / 466.2 MB, free: 18.46 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.003979/0.3065, allocations: 2.119 MB / 468.4 MB, free: 17.2 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.615e-05/0.3065, allocations: 9.438 kB / 468.4 MB, free: 17.2 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001716/0.3083, allocations: 433.6 kB / 468.8 MB, free: 17.06 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00216/0.3104, allocations: 1.046 MB / 469.8 MB, free: 16.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001781/0.3106, allocations: 179.7 kB / 470 MB, free: 16.33 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003971/0.311, allocations: 199.3 kB / 470.2 MB, free: 16.27 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003697/0.3148, allocations: 2.118 MB / 472.3 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.528e-05/0.3148, allocations: 9.188 kB / 472.3 MB, free: 15.35 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001887/0.315, allocations: 85.17 kB / 472.4 MB, free: 15.29 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.925e-05/0.3151, allocations: 52.66 kB / 472.5 MB, free: 15.28 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00386/0.3189, allocations: 2.224 MB / 474.7 MB, free: 14.61 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.0111/0.3301, allocations: 7.34 MB / 482 MB, free: 9.742 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002723/0.3328, allocations: 1.731 MB / 483.8 MB, free: 8.895 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009193/0.3338, allocations: 0.5627 MB / 484.3 MB, free: 8.656 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007607/0.3414, allocations: 6.264 MB / 490.6 MB, free: 3.223 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.74e-05/0.3415, allocations: 47.91 kB / 490.6 MB, free: 3.172 MB / 350.1 MB Notification: Performance of pre-optimization done (n=88): time 4.068e-06/0.3415, allocations: 0 / 490.6 MB, free: 3.172 MB / 350.1 MB Notification: Performance of matching and sorting (n=106): time 0.01807/0.3595, allocations: 4.908 MB / 495.5 MB, free: 15.17 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.748e-05/0.3597, allocations: 111.8 kB / 495.7 MB, free: 15.04 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001255/0.3609, allocations: 0.9118 MB / 496.6 MB, free: 14.11 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001838/0.3611, allocations: 41.7 kB / 496.6 MB, free: 14.06 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006204/0.3618, allocations: 0.9286 MB / 497.5 MB, free: 13.12 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004336/0.3622, allocations: 382.6 kB / 497.9 MB, free: 12.74 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001233/0.3623, allocations: 40 kB / 497.9 MB, free: 12.7 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001545/0.3625, allocations: 373.9 kB / 498.3 MB, free: 12.33 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008851/0.3634, allocations: 447.8 kB / 498.8 MB, free: 11.89 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00139/0.3648, allocations: 1.195 MB / 499.9 MB, free: 10.34 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001235/0.366, allocations: 0.6197 MB / 0.4888 GB, free: 9.723 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-05/0.3661, allocations: 8 kB / 0.4888 GB, free: 9.715 MB / 366.1 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.005475/0.3716, allocations: 2.049 MB / 0.4908 GB, free: 7.648 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.377e-05/0.3716, allocations: 16 kB / 0.4909 GB, free: 7.633 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.18e-05/0.3717, allocations: 24 kB / 0.4909 GB, free: 7.609 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002497/0.3742, allocations: 394.8 kB / 0.4913 GB, free: 7.215 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001814/0.376, allocations: 447.4 kB / 0.4917 GB, free: 6.777 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005726/0.3818, allocations: 3.866 MB / 0.4955 GB, free: 2.629 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00157/0.3834, allocations: 123.7 kB / 0.4956 GB, free: 2.508 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002486/0.3837, allocations: 108 kB / 0.4957 GB, free: 2.402 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.0007548/0.3844, allocations: 377.6 kB / 0.496 GB, free: 2.023 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003009/0.3847, allocations: 134.3 kB / 0.4962 GB, free: 1.891 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005006/0.3898, allocations: 1.625 MB / 0.4978 GB, free: 268 kB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.375e-05/0.3898, allocations: 12 kB / 0.4978 GB, free: 256 kB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.071e-06/0.3898, allocations: 0 / 0.4978 GB, free: 256 kB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.742e-05/0.3898, allocations: 11.97 kB / 0.4978 GB, free: 244 kB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00242/0.3922, allocations: 1.481 MB / 0.4992 GB, free: 14.67 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.01e-05/0.3923, allocations: 4 kB / 0.4992 GB, free: 14.66 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00116/0.3934, allocations: 239.7 kB / 0.4995 GB, free: 14.43 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002403/0.3959, allocations: 374.2 kB / 0.4998 GB, free: 14.05 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001164/0.396, allocations: 43.92 kB / 0.4999 GB, free: 14.01 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004781/0.4008, allocations: 3.78 MB / 0.5035 GB, free: 9.938 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.209e-06/0.4008, allocations: 7.938 kB / 0.5036 GB, free: 9.93 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00505/0.4059, allocations: 2.204 MB / 0.5057 GB, free: 7.668 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000463/0.4063, allocations: 191.5 kB / 0.5059 GB, free: 7.461 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002666/0.4066, allocations: 24 kB / 0.5059 GB, free: 7.438 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007779/0.4074, allocations: 55.81 kB / 0.506 GB, free: 7.383 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001994/0.4076, allocations: 100.8 kB / 0.5061 GB, free: 7.285 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001038/0.4077, allocations: 55.94 kB / 0.5061 GB, free: 7.23 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008247/0.4086, allocations: 0.5659 MB / 0.5067 GB, free: 6.652 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.4086, allocations: 3.938 kB / 0.5067 GB, free: 6.648 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002602/0.4112, allocations: 0.7183 MB / 0.5074 GB, free: 5.93 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.001663/0.4129, allocations: 0.6975 MB / 0.5081 GB, free: 5.219 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002779/0.4157, allocations: 1.529 MB / 0.5095 GB, free: 3.668 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.14e-06/0.4157, allocations: 0 / 0.5095 GB, free: 3.668 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001377/0.4171, allocations: 0.8249 MB / 0.5104 GB, free: 2.816 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00156/0.4187, allocations: 228.9 kB / 0.5106 GB, free: 2.59 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005454/0.4241, allocations: 3.771 MB / 0.5143 GB, free: 14.77 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009196/0.4251, allocations: 1.259 MB / 0.5155 GB, free: 13.48 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001458/0.4265, allocations: 343.1 kB / 0.5158 GB, free: 13.14 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004407/0.427, allocations: 215.3 kB / 0.516 GB, free: 12.93 MB / 398.1 MB Notification: Performance of SimCode: time 9.82e-07/0.427, allocations: 0 / 0.516 GB, free: 12.93 MB / 398.1 MB Notification: Performance of Templates: time 0.0378/0.4648, allocations: 23.39 MB / 0.5389 GB, free: 5.605 MB / 414.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)