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.001097/0.001097, allocations: 106.5 kB / 16.35 MB, free: 5.824 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.001811/0.001812, allocations: 189.4 kB / 17.29 MB, free: 5.48 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.364/1.364, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.07913/0.07913, allocations: 15.31 MB / 306.5 MB, free: 15.43 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001211/0.001211, allocations: 62.31 kB / 371.7 MB, free: 50.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08595/0.08718, allocations: 53.61 MB / 425.3 MB, free: 13.32 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.03098/0.1182, allocations: 28.26 MB / 453.6 MB, free: 1.164 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01911/0.1373, allocations: 17.82 MB / 471.4 MB, free: 15.27 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00177/0.1391, allocations: 19.88 kB / 471.4 MB, free: 15.25 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001406/0.1406, allocations: 484.2 kB / 471.9 MB, free: 14.78 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003886/0.1445, allocations: 1.315 MB / 473.2 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006738/0.1512, allocations: 2.524 MB / 475.8 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002975/0.1542, allocations: 2.284 MB / 478 MB, free: 8.621 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001575/0.1558, allocations: 1.511 MB / 479.6 MB, free: 7.062 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001022/0.1568, allocations: 1.032 MB / 480.6 MB, free: 6.027 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001195/0.158, allocations: 1.152 MB / 481.7 MB, free: 4.871 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002572/0.1583, allocations: 228 kB / 482 MB, free: 4.648 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00497/0.1633, allocations: 1.814 MB / 483.8 MB, free: 2.832 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004273/0.1637, allocations: 0.4985 MB / 484.3 MB, free: 2.332 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001108/0.1648, allocations: 1.097 MB / 485.4 MB, free: 1.23 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008112/0.173, allocations: 4.169 MB / 489.5 MB, free: 13.05 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.173, allocations: 0 / 489.5 MB, free: 13.05 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.173, allocations: 0 / 489.5 MB, free: 13.05 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.392e-05/0.173, allocations: 0 / 489.5 MB, free: 13.05 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.003942/0.177, allocations: 2.495 MB / 492 MB, free: 10.5 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.6e-05/0.177, allocations: 8.031 kB / 492 MB, free: 10.49 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001521/0.1785, allocations: 429.9 kB / 492.5 MB, free: 10.07 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001743/0.1803, allocations: 1.107 MB / 493.6 MB, free: 8.918 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001435/0.1805, allocations: 185.9 kB / 493.7 MB, free: 8.73 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002633/0.1807, allocations: 203.8 kB / 493.9 MB, free: 8.531 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003009/0.1837, allocations: 2.135 MB / 496.1 MB, free: 6.332 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.403e-05/0.1838, allocations: 7.938 kB / 496.1 MB, free: 6.324 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001577/0.184, allocations: 80 kB / 496.2 MB, free: 6.246 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.414e-05/0.184, allocations: 48 kB / 496.2 MB, free: 6.199 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003263/0.1873, allocations: 2.241 MB / 498.5 MB, free: 3.953 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.009161/0.1964, allocations: 7.326 MB / 0.4939 GB, free: 12.27 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002518/0.199, allocations: 1.722 MB / 0.4956 GB, free: 10.47 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008041/0.1998, allocations: 0.5768 MB / 0.4962 GB, free: 9.887 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007997/0.2078, allocations: 6.368 MB / 0.5024 GB, free: 2.777 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.275e-05/0.2078, allocations: 51.55 kB / 0.5024 GB, free: 2.719 MB / 382.1 MB Notification: Performance of pre-optimization done (n=88): time 2.254e-06/0.2079, allocations: 0 / 0.5024 GB, free: 2.719 MB / 382.1 MB Notification: Performance of matching and sorting (n=106): time 0.2177/0.4256, allocations: 4.84 MB / 0.5072 GB, free: 77.16 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.634e-05/0.4257, allocations: 114.9 kB / 0.5073 GB, free: 77.04 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001821/0.4275, allocations: 0.9144 MB / 0.5082 GB, free: 76.86 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.323e-05/0.4276, allocations: 45.42 kB / 0.5082 GB, free: 76.82 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008059/0.4285, allocations: 0.9312 MB / 0.5091 GB, free: 76.29 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003541/0.4288, allocations: 384.7 kB / 0.5095 GB, free: 76.06 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005384/0.4294, allocations: 343.7 kB / 0.5098 GB, free: 76.03 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.389e-05/0.4294, allocations: 309.8 kB / 0.5101 GB, free: 75.73 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007691/0.4302, allocations: 459.3 kB / 0.5106 GB, free: 75.66 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001047/0.4313, allocations: 1.193 MB / 0.5117 GB, free: 74.54 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001706/0.433, allocations: 1.793 MB / 0.5135 GB, free: 73.09 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.879e-06/0.433, allocations: 7.844 kB / 0.5135 GB, free: 73.09 MB / 382.1 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.005228/0.4382, allocations: 2.06 MB / 0.5155 GB, free: 72.29 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.41e-05/0.4383, allocations: 16.02 kB / 0.5155 GB, free: 72.29 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.45e-05/0.4383, allocations: 25.81 kB / 0.5155 GB, free: 72.29 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002685/0.441, allocations: 381.2 kB / 0.5159 GB, free: 72.22 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001732/0.4428, allocations: 449.9 kB / 0.5163 GB, free: 72.17 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004757/0.4475, allocations: 4.066 MB / 0.5203 GB, free: 68.53 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001225/0.4488, allocations: 79.67 kB / 0.5204 GB, free: 68.5 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001772/0.449, allocations: 110.7 kB / 0.5205 GB, free: 68.48 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.0007067/0.4497, allocations: 388.2 kB / 0.5208 GB, free: 68.19 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002817/0.45, allocations: 123.4 kB / 0.521 GB, free: 68.12 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004789/0.4548, allocations: 1.616 MB / 0.5225 GB, free: 67.53 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-05/0.4548, allocations: 11 kB / 0.5226 GB, free: 67.53 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.023e-06/0.4548, allocations: 7.906 kB / 0.5226 GB, free: 67.52 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.255e-05/0.4548, allocations: 9.578 kB / 0.5226 GB, free: 67.52 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002043/0.4569, allocations: 1.473 MB / 0.524 GB, free: 66.79 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.712e-06/0.4569, allocations: 3.406 kB / 0.524 GB, free: 66.79 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00117/0.4581, allocations: 238.6 kB / 0.5242 GB, free: 66.77 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00235/0.4604, allocations: 361.2 kB / 0.5246 GB, free: 66.69 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.405e-05/0.4605, allocations: 43.67 kB / 0.5246 GB, free: 66.67 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004114/0.4647, allocations: 3.999 MB / 0.5285 GB, free: 63.04 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/0.4647, allocations: 3.969 kB / 0.5285 GB, free: 63.04 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004509/0.4692, allocations: 2.21 MB / 0.5307 GB, free: 61.94 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003518/0.4696, allocations: 184.5 kB / 0.5309 GB, free: 61.78 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001431/0.4697, allocations: 25.28 kB / 0.5309 GB, free: 61.76 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006569/0.4704, allocations: 32.03 kB / 0.5309 GB, free: 61.75 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001975/0.4706, allocations: 103.2 kB / 0.531 GB, free: 61.73 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.026e-05/0.4707, allocations: 59.75 kB / 0.5311 GB, free: 61.71 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006345/0.4713, allocations: 0.5691 MB / 0.5316 GB, free: 61.47 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4713, allocations: 0 / 0.5316 GB, free: 61.47 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002127/0.4735, allocations: 0.7218 MB / 0.5323 GB, free: 61.38 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.001105/0.4746, allocations: 0.7191 MB / 0.533 GB, free: 61.21 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002399/0.477, allocations: 1.544 MB / 0.5345 GB, free: 60.49 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.157e-06/0.477, allocations: 2.656 kB / 0.5345 GB, free: 60.49 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001021/0.478, allocations: 0.828 MB / 0.5354 GB, free: 59.99 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001156/0.4792, allocations: 248.2 kB / 0.5356 GB, free: 59.82 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004031/0.4832, allocations: 2.989 MB / 0.5385 GB, free: 56.93 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005137/0.4838, allocations: 1.252 MB / 0.5397 GB, free: 55.67 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0009247/0.4847, allocations: 338.6 kB / 0.5401 GB, free: 55.43 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003512/0.485, allocations: 213.6 kB / 0.5403 GB, free: 55.23 MB / 382.1 MB Notification: Performance of SimCode: time 5.51e-07/0.4851, allocations: 0 / 0.5403 GB, free: 55.23 MB / 382.1 MB Notification: Performance of Templates: time 0.02991/0.515, allocations: 25.05 MB / 0.5647 GB, free: 30.93 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 -s gbode -lv LOG_STATS > Chemical_Chemical.Examples.WaterElectrolysis.pipe 2>&1)