Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Physiolibrary_Physiolibrary.Chemical.Examples.WaterElectrolysis.conf.json 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo", uses=false) Using package Physiolibrary with version 3.0.0-beta1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/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) 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) Running command: translateModel(Physiolibrary.Chemical.Examples.WaterElectrolysis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Chemical.Examples.WaterElectrolysis") translateModel(Physiolibrary.Chemical.Examples.WaterElectrolysis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Chemical.Examples.WaterElectrolysis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001727/0.001727, allocations: 183.1 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.302/1.302, allocations: 222.9 MB / 239.6 MB, free: 10.97 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001012/0.001012, allocations: 94.83 kB / 289.9 MB, free: 10.92 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo): time 0.3994/0.3994, allocations: 36.67 MB / 376.7 MB, free: 41.43 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001246/0.001246, allocations: 71.89 kB / 446.4 MB, free: 11.82 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1181/0.1194, allocations: 58.91 MB / 0.4935 GB, free: 0.8516 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/Chemical.mo:2986:6-2986: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/Physiolibrary 3.0.0-master/Chemical.mo:2986:6-2986: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(Physiolibrary.Chemical.Examples.WaterElectrolysis): time 0.2485/0.3679, allocations: 26.94 MB / 0.5198 GB, free: 31.42 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01988/0.3878, allocations: 17.76 MB / 0.5371 GB, free: 18.75 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002504/0.3904, allocations: 43.59 kB / 0.5372 GB, free: 18.73 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001771/0.3922, allocations: 429.5 kB / 0.5376 GB, free: 18.51 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00443/0.3966, allocations: 1.151 MB / 0.5387 GB, free: 17.8 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007385/0.404, allocations: 2.218 MB / 0.5409 GB, free: 16.48 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.003594/0.4077, allocations: 2.207 MB / 0.543 GB, free: 15.42 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002258/0.4099, allocations: 1.292 MB / 0.5443 GB, free: 14.82 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002305/0.4123, allocations: 0.9779 MB / 0.5452 GB, free: 14.47 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002311/0.4146, allocations: 1.133 MB / 0.5463 GB, free: 13.97 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000679/0.4153, allocations: 148.8 kB / 0.5465 GB, free: 13.97 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007246/0.4226, allocations: 1.728 MB / 0.5482 GB, free: 13.55 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008023/0.4234, allocations: 452.9 kB / 0.5486 GB, free: 13.29 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002386/0.4258, allocations: 1.032 MB / 0.5496 GB, free: 12.7 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01019/0.436, allocations: 4.051 MB / 0.5536 GB, free: 10.73 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.436, allocations: 0 / 0.5536 GB, free: 10.73 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.804e-06/0.436, allocations: 0 / 0.5536 GB, free: 10.73 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001299/0.4362, allocations: 0 / 0.5536 GB, free: 10.73 MB / 378.7 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.005877/0.4421, allocations: 2.488 MB / 0.556 GB, free: 8.445 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.131e-05/0.4421, allocations: 12.03 kB / 0.556 GB, free: 8.434 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001552/0.4437, allocations: 426.9 kB / 0.5564 GB, free: 8.078 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001785/0.4455, allocations: 1.097 MB / 0.5575 GB, free: 7.125 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001316/0.4456, allocations: 183.3 kB / 0.5577 GB, free: 6.941 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000243/0.4459, allocations: 196.6 kB / 0.5578 GB, free: 6.75 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003118/0.449, allocations: 2.137 MB / 0.5599 GB, free: 4.945 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.463e-05/0.4491, allocations: 3.938 kB / 0.5599 GB, free: 4.941 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000151/0.4492, allocations: 84 kB / 0.56 GB, free: 4.859 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.074e-05/0.4493, allocations: 53.5 kB / 0.5601 GB, free: 4.809 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003208/0.4525, allocations: 2.244 MB / 0.5623 GB, free: 2.867 MB / 378.7 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.01097/0.4635, allocations: 7.389 MB / 0.5695 GB, free: 12.23 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002755/0.4662, allocations: 1.728 MB / 0.5712 GB, free: 10.59 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008692/0.4671, allocations: 0.5867 MB / 0.5717 GB, free: 10.02 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009219/0.4764, allocations: 6.411 MB / 0.578 GB, free: 2.863 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.504e-05/0.4764, allocations: 43.56 kB / 0.578 GB, free: 2.812 MB / 394.7 MB Notification: Performance of pre-optimization done (n=88): time 2.455e-06/0.4764, allocations: 0 / 0.578 GB, free: 2.812 MB / 394.7 MB Notification: Performance of matching and sorting (n=106): time 0.01892/0.4954, allocations: 4.862 MB / 0.5828 GB, free: 13.86 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.018e-05/0.4955, allocations: 115.8 kB / 0.5829 GB, free: 13.72 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001344/0.4968, allocations: 0.9234 MB / 0.5838 GB, free: 12.78 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000106/0.497, allocations: 41.7 kB / 0.5838 GB, free: 12.73 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006372/0.4976, allocations: 0.9285 MB / 0.5847 GB, free: 11.79 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003646/0.498, allocations: 378.6 kB / 0.5851 GB, free: 11.41 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005095/0.4985, allocations: 347.2 kB / 0.5854 GB, free: 11.07 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001195/0.4986, allocations: 305.1 kB / 0.5857 GB, free: 10.77 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008741/0.4995, allocations: 455.8 kB / 0.5862 GB, free: 10.32 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001415/0.5009, allocations: 1.206 MB / 0.5873 GB, free: 8.766 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002498/0.5035, allocations: 1.798 MB / 0.5891 GB, free: 6.609 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.991e-05/0.5035, allocations: 8 kB / 0.5891 GB, free: 6.602 MB / 410.7 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.005392/0.5089, allocations: 2.073 MB / 0.5911 GB, free: 4.516 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.576e-05/0.509, allocations: 16 kB / 0.5911 GB, free: 4.5 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.9e-05/0.509, allocations: 28 kB / 0.5912 GB, free: 4.473 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002457/0.5115, allocations: 386.2 kB / 0.5915 GB, free: 4.086 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001958/0.5134, allocations: 471.3 kB / 0.592 GB, free: 3.625 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005324/0.5188, allocations: 3.848 MB / 0.5957 GB, free: 15.48 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001455/0.5203, allocations: 123.6 kB / 0.5959 GB, free: 15.36 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002882/0.5206, allocations: 112 kB / 0.596 GB, free: 15.25 MB / 426.7 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.0008625/0.5214, allocations: 381 kB / 0.5963 GB, free: 14.87 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004553/0.5219, allocations: 122.4 kB / 0.5964 GB, free: 14.75 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005482/0.5274, allocations: 1.633 MB / 0.598 GB, free: 13.1 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.283e-05/0.5274, allocations: 8 kB / 0.5981 GB, free: 13.09 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.77e-06/0.5274, allocations: 4 kB / 0.5981 GB, free: 13.09 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.614e-05/0.5275, allocations: 7.922 kB / 0.5981 GB, free: 13.08 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002589/0.5301, allocations: 1.489 MB / 0.5995 GB, free: 11.51 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.425e-06/0.5301, allocations: 0 / 0.5995 GB, free: 11.51 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001382/0.5315, allocations: 268 kB / 0.5998 GB, free: 11.25 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002336/0.5338, allocations: 354 kB / 0.6001 GB, free: 10.89 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001076/0.5339, allocations: 43.97 kB / 0.6002 GB, free: 10.85 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004576/0.5385, allocations: 3.764 MB / 0.6038 GB, free: 6.789 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.868e-06/0.5385, allocations: 4 kB / 0.6038 GB, free: 6.785 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02505/0.5636, allocations: 11.07 MB / 0.6146 GB, free: 11.23 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003076/0.5639, allocations: 191.5 kB / 0.6148 GB, free: 11.02 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002588/0.5642, allocations: 28.05 kB / 0.6149 GB, free: 11 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008604/0.5651, allocations: 51.83 kB / 0.6149 GB, free: 10.95 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003145/0.5654, allocations: 108.8 kB / 0.615 GB, free: 10.84 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001531/0.5656, allocations: 55.97 kB / 0.6151 GB, free: 10.79 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0008824/0.5665, allocations: 0.5698 MB / 0.6156 GB, free: 10.21 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.21e-07/0.5665, allocations: 96 / 0.6156 GB, free: 10.21 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003212/0.5697, allocations: 0.8784 MB / 0.6165 GB, free: 9.328 MB / 442.7 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.001762/0.5715, allocations: 0.7137 MB / 0.6172 GB, free: 8.605 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003031/0.5745, allocations: 1.533 MB / 0.6187 GB, free: 7.051 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.935e-06/0.5746, allocations: 0 / 0.6187 GB, free: 7.051 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00146/0.576, allocations: 0.8328 MB / 0.6195 GB, free: 6.195 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001627/0.5777, allocations: 234.8 kB / 0.6197 GB, free: 5.965 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007441/0.5851, allocations: 4.699 MB / 0.6243 GB, free: 1.164 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00175/0.5869, allocations: 1.3 MB / 0.6256 GB, free: 15.82 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002885/0.5898, allocations: 357.5 kB / 0.6259 GB, free: 15.48 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007967/0.5907, allocations: 219.3 kB / 0.6261 GB, free: 15.26 MB / 458.7 MB Notification: Performance of SimCode: time 1.433e-06/0.5907, allocations: 4 kB / 0.6261 GB, free: 15.26 MB / 458.7 MB Notification: Performance of Templates: time 0.05531/0.646, allocations: 27.81 MB / 0.6533 GB, free: 3.535 MB / 474.7 MB make -j1 -f Physiolibrary_Physiolibrary.Chemical.Examples.WaterElectrolysis.makefile (rm -f Physiolibrary_Physiolibrary.Chemical.Examples.WaterElectrolysis.pipe ; mkfifo Physiolibrary_Physiolibrary.Chemical.Examples.WaterElectrolysis.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Chemical.Examples.WaterElectrolysis.pipe >> ../files/Physiolibrary_Physiolibrary.Chemical.Examples.WaterElectrolysis.sim & ./Physiolibrary_Physiolibrary.Chemical.Examples.WaterElectrolysis -abortSlowSimulation -alarm=480 -lv LOG_STATS > Physiolibrary_Physiolibrary.Chemical.Examples.WaterElectrolysis.pipe 2>&1)