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: "" <> buildModelFMU(Chemical.Examples.WaterElectrolysis,fileNamePrefix="Chemical_Chemical_Examples_WaterElectrolysis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.WaterElectrolysis,fileNamePrefix="Chemical_Chemical_Examples_WaterElectrolysis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007952/0.007952, allocations: 103 kB / 15.73 MB, free: 6.051 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.001859/0.001859, allocations: 197.2 kB / 16.67 MB, free: 5.98 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.394/1.394, allocations: 222.9 MB / 240.4 MB, free: 4.18 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2362/0.2362, allocations: 15.31 MB / 305.9 MB, free: 15.28 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001567/0.001568, allocations: 63.89 kB / 424.7 MB, free: 13.61 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2971/0.2987, allocations: 53.61 MB / 478.3 MB, free: 25.51 MB / 366.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.03597/0.3347, allocations: 28.52 MB / 0.4949 GB, free: 6.191 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01934/0.3541, allocations: 17.81 MB / 0.5123 GB, free: 4.316 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002404/0.3565, allocations: 19.94 kB / 0.5124 GB, free: 4.297 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001816/0.3584, allocations: 488.1 kB / 0.5128 GB, free: 3.816 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00479/0.3632, allocations: 1.319 MB / 0.5141 GB, free: 2.488 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00767/0.3709, allocations: 2.548 MB / 0.5166 GB, free: 15.93 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004842/0.3758, allocations: 2.284 MB / 0.5188 GB, free: 13.63 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002492/0.3783, allocations: 1.515 MB / 0.5203 GB, free: 12.06 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001884/0.3802, allocations: 1.036 MB / 0.5213 GB, free: 11.02 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001784/0.382, allocations: 1.148 MB / 0.5224 GB, free: 9.871 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004553/0.3825, allocations: 224 kB / 0.5227 GB, free: 9.652 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006563/0.3891, allocations: 1.818 MB / 0.5244 GB, free: 7.832 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006493/0.3898, allocations: 0.4946 MB / 0.5249 GB, free: 7.336 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001364/0.3911, allocations: 1.104 MB / 0.526 GB, free: 6.227 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009227/0.4004, allocations: 4.181 MB / 0.5301 GB, free: 2.031 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.672e-06/0.4004, allocations: 0 / 0.5301 GB, free: 2.031 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.4004, allocations: 0 / 0.5301 GB, free: 2.031 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.038e-05/0.4005, allocations: 4 kB / 0.5301 GB, free: 2.027 MB / 398.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.004453/0.4049, allocations: 2.492 MB / 0.5325 GB, free: 15.48 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.629e-05/0.405, allocations: 8.031 kB / 0.5325 GB, free: 15.47 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002905/0.4053, allocations: 274.9 kB / 0.5328 GB, free: 15.19 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001584/0.4069, allocations: 439.1 kB / 0.5332 GB, free: 14.76 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001782/0.4087, allocations: 1.107 MB / 0.5343 GB, free: 13.61 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001693/0.4089, allocations: 181.8 kB / 0.5345 GB, free: 13.43 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000293/0.4092, allocations: 203.9 kB / 0.5346 GB, free: 13.23 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003265/0.4124, allocations: 2.135 MB / 0.5367 GB, free: 11.03 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.927e-05/0.4125, allocations: 0 / 0.5367 GB, free: 11.03 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001911/0.4127, allocations: 76 kB / 0.5368 GB, free: 10.96 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.704e-05/0.4127, allocations: 48 kB / 0.5369 GB, free: 10.91 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003494/0.4162, allocations: 2.241 MB / 0.539 GB, free: 8.664 MB / 414.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.01045/0.4267, allocations: 7.326 MB / 0.5462 GB, free: 0.9805 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002673/0.4294, allocations: 1.736 MB / 0.5479 GB, free: 15.18 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008368/0.4302, allocations: 0.5729 MB / 0.5484 GB, free: 14.59 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008354/0.4386, allocations: 6.365 MB / 0.5547 GB, free: 7.492 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.7e-05/0.4387, allocations: 47.56 kB / 0.5547 GB, free: 7.438 MB / 430.1 MB Notification: Performance of pre-optimization done (n=88): time 2.495e-06/0.4387, allocations: 0 / 0.5547 GB, free: 7.438 MB / 430.1 MB Notification: Performance of matching and sorting (n=106): time 0.0184/0.4571, allocations: 4.849 MB / 0.5594 GB, free: 2.492 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.189e-05/0.4572, allocations: 115.8 kB / 0.5596 GB, free: 2.355 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00124/0.4584, allocations: 0.9233 MB / 0.5605 GB, free: 1.414 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 8.19e-05/0.4585, allocations: 45.7 kB / 0.5605 GB, free: 1.363 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005601/0.4591, allocations: 0.9247 MB / 0.5614 GB, free: 432 kB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002987/0.4594, allocations: 386.6 kB / 0.5618 GB, free: 40 kB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004708/0.4599, allocations: 343.2 kB / 0.5621 GB, free: 15.69 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.659e-05/0.46, allocations: 309.2 kB / 0.5624 GB, free: 15.39 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008256/0.4608, allocations: 455.8 kB / 0.5628 GB, free: 14.94 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001233/0.4621, allocations: 1.199 MB / 0.564 GB, free: 13.39 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002177/0.4643, allocations: 1.79 MB / 0.5657 GB, free: 11.25 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.345e-05/0.4643, allocations: 12 kB / 0.5658 GB, free: 11.24 MB / 446.1 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.00507/0.4694, allocations: 2.069 MB / 0.5678 GB, free: 9.148 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.964e-05/0.4694, allocations: 22.44 kB / 0.5678 GB, free: 9.129 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.828e-05/0.4694, allocations: 24 kB / 0.5678 GB, free: 9.105 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002488/0.4719, allocations: 386.2 kB / 0.5682 GB, free: 8.719 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001646/0.4736, allocations: 447.3 kB / 0.5686 GB, free: 8.281 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005241/0.4788, allocations: 4.067 MB / 0.5726 GB, free: 3.918 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001109/0.48, allocations: 83.81 kB / 0.5727 GB, free: 3.836 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001782/0.4802, allocations: 112 kB / 0.5728 GB, free: 3.727 MB / 446.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.0006319/0.4808, allocations: 373.1 kB / 0.5731 GB, free: 3.352 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002804/0.4811, allocations: 122.4 kB / 0.5732 GB, free: 3.23 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004767/0.4859, allocations: 1.614 MB / 0.5748 GB, free: 1.602 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.06e-05/0.4859, allocations: 19.94 kB / 0.5748 GB, free: 1.582 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.4859, allocations: 0 / 0.5748 GB, free: 1.582 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.496e-05/0.4859, allocations: 7.969 kB / 0.5749 GB, free: 1.574 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002068/0.488, allocations: 1.481 MB / 0.5763 GB, free: 8 kB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.618e-06/0.488, allocations: 7.938 kB / 0.5763 GB, free: 0 / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001219/0.4892, allocations: 239.7 kB / 0.5765 GB, free: 15.77 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002359/0.4916, allocations: 342.4 kB / 0.5769 GB, free: 15.42 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001023/0.4917, allocations: 43.98 kB / 0.5769 GB, free: 15.38 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004767/0.4965, allocations: 4.004 MB / 0.5808 GB, free: 11.07 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5e-06/0.4965, allocations: 4 kB / 0.5808 GB, free: 11.06 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005071/0.5016, allocations: 2.215 MB / 0.583 GB, free: 8.789 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003524/0.502, allocations: 187.5 kB / 0.5832 GB, free: 8.586 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001862/0.5022, allocations: 24 kB / 0.5832 GB, free: 8.562 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007283/0.5029, allocations: 31.98 kB / 0.5832 GB, free: 8.531 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002078/0.5031, allocations: 100.8 kB / 0.5833 GB, free: 8.43 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001036/0.5032, allocations: 55.92 kB / 0.5834 GB, free: 8.375 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0007569/0.504, allocations: 0.5698 MB / 0.5839 GB, free: 7.797 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.504, allocations: 0 / 0.5839 GB, free: 7.797 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002382/0.5064, allocations: 0.7261 MB / 0.5846 GB, free: 7.07 MB / 462.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.006779/0.5132, allocations: 3.367 MB / 0.5879 GB, free: 3.645 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.002817/0.516, allocations: 1.538 MB / 0.5894 GB, free: 2.082 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.211e-06/0.5161, allocations: 7.938 kB / 0.5894 GB, free: 2.074 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001357/0.5174, allocations: 0.8239 MB / 0.5902 GB, free: 1.227 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001672/0.5191, allocations: 240.9 kB / 0.5905 GB, free: 0.9922 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0224/0.5415, allocations: 12.12 MB / 0.6023 GB, free: 3.914 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001088/0.5427, allocations: 1.251 MB / 0.6035 GB, free: 2.629 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00115/0.5438, allocations: 338.5 kB / 0.6038 GB, free: 2.293 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001002/0.5449, allocations: 0.7452 MB / 0.6046 GB, free: 1.547 MB / 478.1 MB Notification: Performance of SimCode: time 9.42e-07/0.5449, allocations: 4 kB / 0.6046 GB, free: 1.543 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3163/0.8612, allocations: 37.82 MB / 0.6415 GB, free: 103.4 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 20.11/20.98, allocations: 2.812 kB / 0.6415 GB, free: 103.4 MB / 478.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_WaterElectrolysis_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_WaterElectrolysis.fmu > Chemical_Chemical.Examples.WaterElectrolysis.pipe 2>&1)