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.001025/0.001025, allocations: 98.64 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001117/0.001117, allocations: 182.8 kB / 16.92 MB, free: 6.918 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.361/1.361, allocations: 223.3 MB / 241 MB, free: 5.266 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1908/0.1908, allocations: 15.27 MB / 307.4 MB, free: 15.75 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003079/0.0003078, allocations: 11.98 kB / 372.7 MB, free: 3.625 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.296/0.2963, allocations: 54.63 MB / 427.4 MB, free: 40.55 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.03105/0.3274, allocations: 28.91 MB / 456.3 MB, free: 29.73 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01811/0.3455, allocations: 17.64 MB / 473.9 MB, free: 17.34 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002527/0.3481, allocations: 37.12 kB / 474 MB, free: 17.32 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001644/0.3498, allocations: 426.5 kB / 474.4 MB, free: 17.11 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005162/0.355, allocations: 1.174 MB / 475.5 MB, free: 16.39 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00775/0.3628, allocations: 2.208 MB / 477.8 MB, free: 15.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003291/0.3661, allocations: 2.191 MB / 479.9 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001452/0.3676, allocations: 1.22 MB / 481.2 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00136/0.3689, allocations: 0.9089 MB / 482.1 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001297/0.3703, allocations: 1.046 MB / 483.1 MB, free: 11 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002012/0.3705, allocations: 116 kB / 483.2 MB, free: 10.88 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005968/0.3764, allocations: 1.718 MB / 485 MB, free: 9.328 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005932/0.3771, allocations: 387.2 kB / 485.3 MB, free: 9.027 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001184/0.3783, allocations: 1 MB / 486.3 MB, free: 8.094 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004776/0.3831, allocations: 3.045 MB / 489.4 MB, free: 5.906 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.3831, allocations: 4 kB / 489.4 MB, free: 5.902 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.3831, allocations: 3.938 kB / 489.4 MB, free: 5.898 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.189e-05/0.3832, allocations: 0 / 489.4 MB, free: 5.898 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.004915/0.3881, allocations: 2.102 MB / 491.5 MB, free: 3.973 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.952e-05/0.3882, allocations: 12.03 kB / 491.5 MB, free: 3.961 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002029/0.3902, allocations: 431.4 kB / 491.9 MB, free: 3.598 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002101/0.3923, allocations: 1.077 MB / 493 MB, free: 2.668 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001853/0.3925, allocations: 178.6 kB / 493.2 MB, free: 2.488 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003675/0.3929, allocations: 201.3 kB / 493.4 MB, free: 2.293 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003519/0.3965, allocations: 2.132 MB / 495.5 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.655e-05/0.3965, allocations: 0 / 495.5 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001721/0.3967, allocations: 80.66 kB / 495.6 MB, free: 424 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.88e-05/0.3967, allocations: 52 kB / 495.6 MB, free: 372 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004048/0.4008, allocations: 2.247 MB / 497.9 MB, free: 14.42 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.01154/0.4124, allocations: 7.346 MB / 0.4934 GB, free: 7.645 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002715/0.4151, allocations: 1.734 MB / 0.4951 GB, free: 5.848 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009231/0.416, allocations: 0.5731 MB / 0.4956 GB, free: 5.266 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00866/0.4247, allocations: 6.27 MB / 0.5018 GB, free: 14.25 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.99e-05/0.4248, allocations: 47.5 kB / 0.5018 GB, free: 14.2 MB / 382.1 MB Notification: Performance of pre-optimization done (n=88): time 3.256e-06/0.4248, allocations: 0 / 0.5018 GB, free: 14.2 MB / 382.1 MB Notification: Performance of matching and sorting (n=106): time 0.02007/0.4449, allocations: 4.905 MB / 0.5066 GB, free: 9.207 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.799e-05/0.445, allocations: 115.8 kB / 0.5067 GB, free: 9.066 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0012/0.4462, allocations: 0.9118 MB / 0.5076 GB, free: 8.137 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001313/0.4464, allocations: 45.7 kB / 0.5076 GB, free: 8.086 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005881/0.4469, allocations: 0.9364 MB / 0.5085 GB, free: 7.133 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003913/0.4473, allocations: 386.6 kB / 0.5089 GB, free: 6.75 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001855/0.4475, allocations: 141.6 kB / 0.5091 GB, free: 6.602 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.23e-05/0.4476, allocations: 301.1 kB / 0.5093 GB, free: 6.305 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008068/0.4485, allocations: 455.8 kB / 0.5098 GB, free: 5.859 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001256/0.4497, allocations: 1.195 MB / 0.5109 GB, free: 4.312 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002238/0.452, allocations: 1.79 MB / 0.5127 GB, free: 2.168 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.168e-05/0.452, allocations: 8 kB / 0.5127 GB, free: 2.16 MB / 382.1 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.00554/0.4575, allocations: 2.084 MB / 0.5147 GB, free: 60 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.204e-05/0.4576, allocations: 17.72 kB / 0.5147 GB, free: 44 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.551e-05/0.4576, allocations: 24 kB / 0.5148 GB, free: 20 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002803/0.4605, allocations: 394.8 kB / 0.5151 GB, free: 15.62 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001884/0.4624, allocations: 447.3 kB / 0.5156 GB, free: 15.19 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005755/0.4681, allocations: 3.876 MB / 0.5194 GB, free: 11.02 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001439/0.4696, allocations: 127.5 kB / 0.5195 GB, free: 10.9 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002095/0.4698, allocations: 108 kB / 0.5196 GB, free: 10.79 MB / 398.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.0007262/0.4706, allocations: 385.1 kB / 0.52 GB, free: 10.41 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002453/0.4708, allocations: 122.4 kB / 0.5201 GB, free: 10.29 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005538/0.4763, allocations: 1.625 MB / 0.5217 GB, free: 8.645 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.512e-05/0.4764, allocations: 15.94 kB / 0.5217 GB, free: 8.629 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.4764, allocations: 0 / 0.5217 GB, free: 8.629 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.852e-05/0.4764, allocations: 11.92 kB / 0.5217 GB, free: 8.617 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002425/0.4789, allocations: 1.485 MB / 0.5231 GB, free: 7.047 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.944e-06/0.4789, allocations: 4 kB / 0.5231 GB, free: 7.043 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001334/0.4802, allocations: 244 kB / 0.5234 GB, free: 6.805 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002928/0.4832, allocations: 365.9 kB / 0.5237 GB, free: 6.438 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002016/0.4834, allocations: 43.98 kB / 0.5238 GB, free: 6.395 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005321/0.4887, allocations: 3.78 MB / 0.5275 GB, free: 2.32 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.193e-06/0.4888, allocations: 7.938 kB / 0.5275 GB, free: 2.312 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005697/0.4945, allocations: 2.215 MB / 0.5296 GB, free: 40 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003823/0.4949, allocations: 187.4 kB / 0.5298 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001668/0.4951, allocations: 31.98 kB / 0.5298 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007744/0.4959, allocations: 55.92 kB / 0.5299 GB, free: 15.75 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002225/0.4961, allocations: 100.8 kB / 0.53 GB, free: 15.65 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001098/0.4962, allocations: 63.91 kB / 0.53 GB, free: 15.59 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000772/0.497, allocations: 0.5659 MB / 0.5306 GB, free: 15.02 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.497, allocations: 0 / 0.5306 GB, free: 15.02 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002264/0.4993, allocations: 0.7144 MB / 0.5313 GB, free: 14.3 MB / 414.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.001321/0.5006, allocations: 0.713 MB / 0.532 GB, free: 13.58 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002766/0.5034, allocations: 1.525 MB / 0.5335 GB, free: 12.03 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.719e-06/0.5034, allocations: 1.875 kB / 0.5335 GB, free: 12.03 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001349/0.5048, allocations: 0.8313 MB / 0.5343 GB, free: 11.17 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001916/0.5067, allocations: 232.9 kB / 0.5345 GB, free: 10.94 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005662/0.5124, allocations: 3.958 MB / 0.5384 GB, free: 6.914 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008523/0.5132, allocations: 1.255 MB / 0.5396 GB, free: 5.629 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007328/0.514, allocations: 275.5 kB / 0.5399 GB, free: 5.359 MB / 414.1 MB Notification: Performance of SimCode: time 5.81e-07/0.514, allocations: 4 kB / 0.5399 GB, free: 5.355 MB / 414.1 MB Notification: Performance of Templates: time 0.04976/0.5638, allocations: 42.81 MB / 0.5817 GB, free: 10.55 MB / 462.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)