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.001164/0.001164, allocations: 115.6 kB / 16.37 MB, free: 6.004 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.00114/0.00114, allocations: 192.1 kB / 17.31 MB, free: 5.613 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.487/1.487, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08828/0.08828, allocations: 15.3 MB / 306.5 MB, free: 15.42 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001468/0.001468, allocations: 61.47 kB / 371.7 MB, free: 50.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09607/0.09755, allocations: 53.62 MB / 425.4 MB, free: 13.3 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.0353/0.1329, allocations: 28.27 MB / 453.6 MB, free: 1.141 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02032/0.1532, allocations: 17.82 MB / 471.4 MB, free: 15.25 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001546/0.1548, allocations: 19.88 kB / 471.5 MB, free: 15.23 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001387/0.1562, allocations: 484.1 kB / 471.9 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003869/0.1601, allocations: 1.315 MB / 473.3 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006823/0.1669, allocations: 2.528 MB / 475.8 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003266/0.1702, allocations: 2.284 MB / 478.1 MB, free: 8.594 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001732/0.172, allocations: 1.507 MB / 479.6 MB, free: 7.039 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001228/0.1732, allocations: 1.028 MB / 480.6 MB, free: 6.008 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001387/0.1746, allocations: 1.16 MB / 481.8 MB, free: 4.844 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002747/0.1749, allocations: 224 kB / 482 MB, free: 4.625 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005805/0.1807, allocations: 1.802 MB / 483.8 MB, free: 2.82 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005862/0.1813, allocations: 0.5063 MB / 484.3 MB, free: 2.312 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00134/0.1827, allocations: 1.097 MB / 485.4 MB, free: 1.211 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009745/0.1924, allocations: 4.169 MB / 489.6 MB, free: 13.02 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.023e-06/0.1925, allocations: 0 / 489.6 MB, free: 13.02 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.365e-06/0.1925, allocations: 3.938 kB / 489.6 MB, free: 13.02 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.279e-05/0.1925, allocations: 0 / 489.6 MB, free: 13.02 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.005206/0.1978, allocations: 2.495 MB / 492.1 MB, free: 10.47 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.963e-05/0.1978, allocations: 8.031 kB / 492.1 MB, free: 10.46 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001604/0.1994, allocations: 429.9 kB / 492.5 MB, free: 10.04 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002075/0.2015, allocations: 1.118 MB / 493.6 MB, free: 8.883 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001817/0.2017, allocations: 182 kB / 493.8 MB, free: 8.699 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002888/0.202, allocations: 195.9 kB / 494 MB, free: 8.508 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00357/0.2056, allocations: 2.131 MB / 496.1 MB, free: 6.312 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.161e-05/0.2056, allocations: 4 kB / 496.1 MB, free: 6.309 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001702/0.2058, allocations: 80 kB / 496.2 MB, free: 6.23 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.692e-05/0.2059, allocations: 51.98 kB / 496.2 MB, free: 6.18 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003537/0.2094, allocations: 2.237 MB / 498.5 MB, free: 3.938 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.01091/0.2203, allocations: 7.322 MB / 0.4939 GB, free: 12.25 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002941/0.2233, allocations: 1.722 MB / 0.4956 GB, free: 10.46 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001039/0.2244, allocations: 0.5885 MB / 0.4962 GB, free: 9.863 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0111/0.2355, allocations: 6.368 MB / 0.5024 GB, free: 2.754 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.581e-05/0.2356, allocations: 39.56 kB / 0.5024 GB, free: 2.707 MB / 382.1 MB Notification: Performance of pre-optimization done (n=88): time 2.935e-06/0.2356, allocations: 0 / 0.5024 GB, free: 2.707 MB / 382.1 MB Notification: Performance of matching and sorting (n=106): time 0.2418/0.4774, allocations: 4.84 MB / 0.5072 GB, free: 77.16 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.538e-05/0.4775, allocations: 117.6 kB / 0.5073 GB, free: 77.04 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001352/0.4788, allocations: 0.9177 MB / 0.5082 GB, free: 76.86 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001455/0.479, allocations: 45.17 kB / 0.5082 GB, free: 76.82 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006187/0.4796, allocations: 0.937 MB / 0.5091 GB, free: 76.29 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003061/0.4799, allocations: 377.2 kB / 0.5095 GB, free: 76.06 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004813/0.4804, allocations: 346.8 kB / 0.5098 GB, free: 76.03 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.514e-05/0.4805, allocations: 308.6 kB / 0.5101 GB, free: 75.73 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007347/0.4812, allocations: 460.7 kB / 0.5106 GB, free: 75.67 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001001/0.4822, allocations: 1.195 MB / 0.5117 GB, free: 74.55 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001798/0.484, allocations: 1.789 MB / 0.5135 GB, free: 73.1 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.139e-05/0.484, allocations: 8.656 kB / 0.5135 GB, free: 73.1 MB / 382.1 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.005599/0.4896, allocations: 2.056 MB / 0.5155 GB, free: 72.3 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.185e-05/0.4897, allocations: 27.7 kB / 0.5155 GB, free: 72.3 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.465e-05/0.4898, allocations: 25.44 kB / 0.5155 GB, free: 72.3 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00274/0.4925, allocations: 383.9 kB / 0.5159 GB, free: 72.23 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002004/0.4945, allocations: 453.5 kB / 0.5163 GB, free: 72.18 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004926/0.4995, allocations: 4.065 MB / 0.5203 GB, free: 68.54 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00164/0.5012, allocations: 80.53 kB / 0.5204 GB, free: 68.5 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002371/0.5014, allocations: 107.3 kB / 0.5205 GB, free: 68.49 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.0008617/0.5023, allocations: 387.5 kB / 0.5209 GB, free: 68.2 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00037/0.5027, allocations: 122.9 kB / 0.521 GB, free: 68.13 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004828/0.5075, allocations: 1.61 MB / 0.5226 GB, free: 67.55 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.899e-05/0.5075, allocations: 11.34 kB / 0.5226 GB, free: 67.55 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.275e-06/0.5076, allocations: 9.125 kB / 0.5226 GB, free: 67.54 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.368e-05/0.5076, allocations: 7.625 kB / 0.5226 GB, free: 67.54 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002159/0.5097, allocations: 1.477 MB / 0.524 GB, free: 66.8 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.035e-05/0.5098, allocations: 7.281 kB / 0.524 GB, free: 66.8 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001233/0.511, allocations: 238.9 kB / 0.5243 GB, free: 66.78 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002426/0.5135, allocations: 357.9 kB / 0.5246 GB, free: 66.7 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001108/0.5136, allocations: 41.94 kB / 0.5246 GB, free: 66.69 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004078/0.5177, allocations: 4.005 MB / 0.5285 GB, free: 63.05 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/0.5177, allocations: 4.688 kB / 0.5286 GB, free: 63.05 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004531/0.5222, allocations: 2.209 MB / 0.5307 GB, free: 61.95 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003371/0.5226, allocations: 182.1 kB / 0.5309 GB, free: 61.79 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001506/0.5227, allocations: 23.19 kB / 0.5309 GB, free: 61.77 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006835/0.5234, allocations: 35.52 kB / 0.5309 GB, free: 61.76 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000205/0.5236, allocations: 101.8 kB / 0.531 GB, free: 61.74 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.766e-05/0.5237, allocations: 53.98 kB / 0.5311 GB, free: 61.73 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006079/0.5244, allocations: 0.5719 MB / 0.5316 GB, free: 61.48 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5244, allocations: 0 / 0.5316 GB, free: 61.48 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001997/0.5264, allocations: 0.7213 MB / 0.5324 GB, free: 61.39 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.00109/0.5275, allocations: 0.7118 MB / 0.533 GB, free: 61.23 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002314/0.5298, allocations: 1.543 MB / 0.5346 GB, free: 60.51 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.5298, allocations: 0 / 0.5346 GB, free: 60.51 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001071/0.5309, allocations: 0.831 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.001214/0.5321, allocations: 241.4 kB / 0.5356 GB, free: 59.78 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004128/0.5362, allocations: 2.999 MB / 0.5385 GB, free: 56.89 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005839/0.5368, allocations: 1.256 MB / 0.5398 GB, free: 55.62 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001019/0.5379, allocations: 342 kB / 0.5401 GB, free: 55.39 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003863/0.5383, allocations: 216.9 kB / 0.5403 GB, free: 55.18 MB / 382.1 MB Notification: Performance of SimCode: time 8.12e-07/0.5383, allocations: 0 / 0.5403 GB, free: 55.18 MB / 382.1 MB Notification: Performance of Templates: time 0.0312/0.5695, allocations: 25.03 MB / 0.5647 GB, free: 30.89 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 cvode -lv LOG_STATS > Chemical_Chemical.Examples.WaterElectrolysis.pipe 2>&1)