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.001306/0.001307, allocations: 109.3 kB / 16.41 MB, free: 6.465 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.001198/0.001198, allocations: 187 kB / 17.34 MB, free: 5.719 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.33/1.33, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08257/0.08257, allocations: 15.31 MB / 306.5 MB, free: 15.41 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001255/0.001255, allocations: 64.11 kB / 425.8 MB, free: 11.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1105/0.1118, 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.03686/0.1487, allocations: 28.48 MB / 0.496 GB, free: 9.375 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2617/0.4104, allocations: 17.8 MB / 0.5134 GB, free: 18.19 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001301/0.4118, allocations: 24.25 kB / 0.5134 GB, free: 18.19 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001268/0.413, allocations: 484.1 kB / 0.5139 GB, free: 18.18 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004003/0.4171, allocations: 1.31 MB / 0.5152 GB, free: 17.74 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007764/0.4248, allocations: 2.521 MB / 0.5176 GB, free: 16.95 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00404/0.4289, allocations: 2.286 MB / 0.5199 GB, free: 16.4 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00237/0.4313, allocations: 1.519 MB / 0.5214 GB, free: 16 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001782/0.4331, allocations: 1.032 MB / 0.5224 GB, free: 15.57 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00172/0.4348, allocations: 1.154 MB / 0.5235 GB, free: 15.06 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000408/0.4352, allocations: 229.3 kB / 0.5237 GB, free: 15.06 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007339/0.4426, allocations: 1.808 MB / 0.5255 GB, free: 14.65 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004996/0.4431, allocations: 0.4989 MB / 0.526 GB, free: 14.32 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001269/0.4444, allocations: 1.108 MB / 0.5271 GB, free: 13.66 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009874/0.4543, allocations: 4.171 MB / 0.5311 GB, free: 12.08 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.4543, allocations: 0 / 0.5311 GB, free: 12.08 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.675e-06/0.4543, allocations: 0 / 0.5311 GB, free: 12.08 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.134e-05/0.4544, allocations: 3.938 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.004545/0.4589, allocations: 2.489 MB / 0.5336 GB, free: 10.49 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.177e-05/0.459, allocations: 10.03 kB / 0.5336 GB, free: 10.49 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001604/0.4606, allocations: 432 kB / 0.534 GB, free: 10.29 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001544/0.4621, allocations: 1.119 MB / 0.5351 GB, free: 9.453 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001644/0.4623, allocations: 176.7 kB / 0.5352 GB, free: 9.355 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002761/0.4626, allocations: 202.6 kB / 0.5354 GB, free: 9.285 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002935/0.4656, allocations: 2.137 MB / 0.5375 GB, free: 7.988 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.299e-05/0.4656, allocations: 0 / 0.5375 GB, free: 7.988 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001626/0.4658, allocations: 77.47 kB / 0.5376 GB, free: 7.93 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.162e-05/0.4658, allocations: 51.62 kB / 0.5376 GB, free: 7.93 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002874/0.4687, allocations: 2.237 MB / 0.5398 GB, free: 6.957 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.008032/0.4767, allocations: 7.318 MB / 0.547 GB, free: 15.87 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002528/0.4793, allocations: 1.734 MB / 0.5487 GB, free: 14.09 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007887/0.4801, allocations: 0.5804 MB / 0.5492 GB, free: 13.5 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007986/0.4881, allocations: 6.376 MB / 0.5555 GB, free: 6.434 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.701e-05/0.4881, allocations: 47.5 kB / 0.5555 GB, free: 6.379 MB / 398.1 MB Notification: Performance of pre-optimization done (n=88): time 2.915e-06/0.4881, allocations: 0 / 0.5555 GB, free: 6.379 MB / 398.1 MB Notification: Performance of matching and sorting (n=106): time 0.01735/0.5055, allocations: 4.84 MB / 0.5602 GB, free: 1.496 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.848e-05/0.5056, allocations: 122.4 kB / 0.5604 GB, free: 1.355 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001138/0.5068, allocations: 0.9156 MB / 0.5612 GB, free: 432 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001114/0.5069, allocations: 41.7 kB / 0.5613 GB, free: 384 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006087/0.5075, allocations: 0.9311 MB / 0.5622 GB, free: 15.44 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003102/0.5078, allocations: 388.2 kB / 0.5626 GB, free: 15.06 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004313/0.5082, allocations: 347.2 kB / 0.5629 GB, free: 14.71 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.763e-05/0.5083, allocations: 303.8 kB / 0.5632 GB, free: 14.42 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007354/0.5091, allocations: 455.7 kB / 0.5636 GB, free: 13.97 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001233/0.5103, allocations: 1.192 MB / 0.5648 GB, free: 12.45 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002123/0.5125, allocations: 1.804 MB / 0.5665 GB, free: 10.35 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.344e-05/0.5125, allocations: 10.06 kB / 0.5666 GB, free: 10.34 MB / 414.1 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.004903/0.5174, allocations: 2.065 MB / 0.5686 GB, free: 8.281 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.194e-05/0.5175, allocations: 16 kB / 0.5686 GB, free: 8.266 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.609e-05/0.5175, allocations: 24 kB / 0.5686 GB, free: 8.242 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002329/0.5198, allocations: 374.8 kB / 0.569 GB, free: 7.875 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001732/0.5216, allocations: 446 kB / 0.5694 GB, free: 7.441 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005279/0.5269, allocations: 4.075 MB / 0.5734 GB, free: 3.09 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001427/0.5283, allocations: 98.23 kB / 0.5735 GB, free: 2.996 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002193/0.5286, allocations: 103.9 kB / 0.5736 GB, free: 2.895 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.0007488/0.5293, allocations: 381.1 kB / 0.5739 GB, free: 2.512 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002941/0.5296, allocations: 121.2 kB / 0.574 GB, free: 2.395 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004441/0.5341, allocations: 1.616 MB / 0.5756 GB, free: 0.832 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.266e-05/0.5341, allocations: 10.69 kB / 0.5756 GB, free: 0.8242 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.783e-06/0.5341, allocations: 4 kB / 0.5756 GB, free: 0.8203 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.497e-05/0.5341, allocations: 3.984 kB / 0.5756 GB, free: 0.8164 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002297/0.5364, allocations: 1.487 MB / 0.5771 GB, free: 15.27 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.001e-06/0.5365, allocations: 0 / 0.5771 GB, free: 15.27 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001214/0.5377, allocations: 239.7 kB / 0.5773 GB, free: 15.04 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002313/0.54, allocations: 350.1 kB / 0.5777 GB, free: 14.69 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001028/0.5401, allocations: 54.56 kB / 0.5777 GB, free: 14.64 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004809/0.5449, allocations: 3.986 MB / 0.5816 GB, free: 10.37 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.252e-06/0.545, allocations: 7.938 kB / 0.5816 GB, free: 10.36 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00501/0.55, allocations: 2.203 MB / 0.5838 GB, free: 8.117 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004663/0.5505, allocations: 195.4 kB / 0.5839 GB, free: 7.906 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000273/0.5507, allocations: 31.88 kB / 0.584 GB, free: 7.875 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008062/0.5516, allocations: 32.08 kB / 0.584 GB, free: 7.844 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002227/0.5518, allocations: 103.4 kB / 0.5841 GB, free: 7.742 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001049/0.5519, allocations: 51.98 kB / 0.5842 GB, free: 7.691 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0008225/0.5527, allocations: 0.5737 MB / 0.5847 GB, free: 7.109 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5527, allocations: 0 / 0.5847 GB, free: 7.109 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002691/0.5554, allocations: 0.7287 MB / 0.5854 GB, free: 6.383 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.001832/0.5573, allocations: 0.7101 MB / 0.5861 GB, free: 5.766 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002792/0.5601, allocations: 1.532 MB / 0.5876 GB, free: 4.227 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.211e-06/0.5601, allocations: 0 / 0.5876 GB, free: 4.227 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00133/0.5614, allocations: 0.8294 MB / 0.5884 GB, free: 3.375 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001619/0.5631, allocations: 236.1 kB / 0.5887 GB, free: 3.16 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005474/0.5686, allocations: 3.047 MB / 0.5916 GB, free: 200 kB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009848/0.5696, allocations: 1.252 MB / 0.5928 GB, free: 14.93 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006076/0.5702, allocations: 274 kB / 0.5931 GB, free: 14.67 MB / 446.1 MB Notification: Performance of SimCode: time 7.92e-07/0.5702, allocations: 0 / 0.5931 GB, free: 14.67 MB / 446.1 MB Notification: Performance of Templates: time 0.05004/0.6202, allocations: 43.08 MB / 0.6352 GB, free: 3.93 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)