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.0007574/0.0007574, allocations: 98.03 kB / 15.36 MB, free: 0.7305 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.0008187/0.0008187, allocations: 171.9 kB / 16.26 MB, free: 6.66 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.267/1.267, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1784/0.1784, allocations: 15.27 MB / 306.7 MB, free: 15.72 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002955/0.0002956, allocations: 8 kB / 372.2 MB, free: 3.547 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2394/0.2397, allocations: 54.61 MB / 426.8 MB, free: 40.23 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.02752/0.2673, allocations: 28.91 MB / 455.7 MB, free: 29.43 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01664/0.2839, allocations: 17.63 MB / 473.4 MB, free: 17.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002047/0.286, allocations: 40.31 kB / 473.4 MB, free: 17.05 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001322/0.2874, allocations: 432.3 kB / 473.8 MB, free: 16.83 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003711/0.2911, allocations: 1.172 MB / 475 MB, free: 16.11 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006038/0.2971, allocations: 2.21 MB / 477.2 MB, free: 14.8 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002595/0.2997, allocations: 2.192 MB / 479.4 MB, free: 13.35 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001126/0.3009, allocations: 1.217 MB / 480.6 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008544/0.3017, allocations: 0.9129 MB / 481.5 MB, free: 11.52 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009126/0.3027, allocations: 1.047 MB / 482.6 MB, free: 10.67 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001639/0.3028, allocations: 116 kB / 482.7 MB, free: 10.55 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004903/0.3078, allocations: 1.706 MB / 484.4 MB, free: 9.008 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002951/0.3081, allocations: 401.3 kB / 484.8 MB, free: 8.695 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007644/0.3088, allocations: 1 MB / 485.8 MB, free: 7.762 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006168/0.315, allocations: 3.851 MB / 489.6 MB, free: 4.84 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/0.3151, allocations: 3.938 kB / 489.6 MB, free: 4.836 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.3151, allocations: 4 kB / 489.6 MB, free: 4.832 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.312e-05/0.3151, allocations: 0 / 489.6 MB, free: 4.832 MB / 350.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.00343/0.3185, allocations: 2.099 MB / 491.7 MB, free: 2.91 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.869e-05/0.3186, allocations: 12.03 kB / 491.7 MB, free: 2.898 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002745/0.3189, allocations: 274.2 kB / 492 MB, free: 2.668 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001457/0.3203, allocations: 435.3 kB / 492.4 MB, free: 2.301 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001473/0.3218, allocations: 1.074 MB / 493.5 MB, free: 1.375 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001141/0.3219, allocations: 177.8 kB / 493.7 MB, free: 1.195 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002446/0.3222, allocations: 205.3 kB / 493.9 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003291/0.3255, allocations: 2.141 MB / 496 MB, free: 15.19 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.028e-05/0.3256, allocations: 3.938 kB / 496 MB, free: 15.19 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001824/0.3257, allocations: 80 kB / 496.1 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.807e-05/0.3258, allocations: 48 kB / 496.2 MB, free: 15.06 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00368/0.3295, allocations: 2.239 MB / 498.4 MB, free: 13.12 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.01026/0.3398, allocations: 7.355 MB / 0.4939 GB, free: 6.512 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002593/0.3424, allocations: 1.738 MB / 0.4956 GB, free: 4.75 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008581/0.3432, allocations: 0.5692 MB / 0.4961 GB, free: 4.172 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007739/0.351, allocations: 6.266 MB / 0.5023 GB, free: 13.16 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.217e-05/0.3511, allocations: 47.56 kB / 0.5023 GB, free: 13.11 MB / 382.1 MB Notification: Performance of pre-optimization done (n=88): time 2.544e-06/0.3511, allocations: 0 / 0.5023 GB, free: 13.11 MB / 382.1 MB Notification: Performance of matching and sorting (n=106): time 0.01887/0.3699, allocations: 4.913 MB / 0.5071 GB, free: 8.109 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.082e-05/0.37, allocations: 119.9 kB / 0.5072 GB, free: 7.965 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001102/0.3711, allocations: 0.9118 MB / 0.5081 GB, free: 7.035 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.401e-05/0.3712, allocations: 45.7 kB / 0.5082 GB, free: 6.984 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000545/0.3718, allocations: 0.9324 MB / 0.5091 GB, free: 6.031 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000277/0.3721, allocations: 378.6 kB / 0.5094 GB, free: 5.656 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001793/0.3723, allocations: 145.6 kB / 0.5096 GB, free: 5.508 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.779e-05/0.3723, allocations: 301.1 kB / 0.5099 GB, free: 5.211 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007757/0.3731, allocations: 455.8 kB / 0.5103 GB, free: 4.766 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0012/0.3743, allocations: 1.199 MB / 0.5115 GB, free: 3.215 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002128/0.3765, allocations: 1.79 MB / 0.5132 GB, free: 1.07 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.018e-05/0.3765, allocations: 8 kB / 0.5132 GB, free: 1.062 MB / 382.1 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.005195/0.3817, allocations: 2.077 MB / 0.5152 GB, free: 14.96 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.892e-05/0.3817, allocations: 19.94 kB / 0.5153 GB, free: 14.95 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.708e-05/0.3818, allocations: 28.03 kB / 0.5153 GB, free: 14.92 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002702/0.3845, allocations: 390.3 kB / 0.5157 GB, free: 14.53 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001738/0.3862, allocations: 451.3 kB / 0.5161 GB, free: 14.09 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005054/0.3913, allocations: 3.862 MB / 0.5199 GB, free: 9.938 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001171/0.3925, allocations: 127.5 kB / 0.52 GB, free: 9.812 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001458/0.3926, allocations: 104 kB / 0.5201 GB, free: 9.711 MB / 398.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.0006276/0.3933, allocations: 385.1 kB / 0.5205 GB, free: 9.324 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002073/0.3935, allocations: 122.4 kB / 0.5206 GB, free: 9.203 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005036/0.3985, allocations: 1.625 MB / 0.5222 GB, free: 7.562 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.106e-05/0.3985, allocations: 12 kB / 0.5222 GB, free: 7.551 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.858e-06/0.3986, allocations: 0 / 0.5222 GB, free: 7.551 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.652e-05/0.3986, allocations: 15.91 kB / 0.5222 GB, free: 7.535 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002034/0.4006, allocations: 1.485 MB / 0.5236 GB, free: 5.969 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.554e-06/0.4006, allocations: 4.312 kB / 0.5236 GB, free: 5.965 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001268/0.4019, allocations: 239.7 kB / 0.5239 GB, free: 5.73 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002653/0.4046, allocations: 369.9 kB / 0.5242 GB, free: 5.359 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.542e-05/0.4047, allocations: 39.98 kB / 0.5243 GB, free: 5.32 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004803/0.4095, allocations: 3.787 MB / 0.528 GB, free: 1.238 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.028e-06/0.4095, allocations: 4 kB / 0.528 GB, free: 1.234 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005208/0.4147, allocations: 2.223 MB / 0.5301 GB, free: 14.95 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003698/0.4151, allocations: 191.4 kB / 0.5303 GB, free: 14.75 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001507/0.4153, allocations: 28 kB / 0.5303 GB, free: 14.72 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007252/0.416, allocations: 43.88 kB / 0.5304 GB, free: 14.68 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002068/0.4162, allocations: 108.7 kB / 0.5305 GB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.571e-05/0.4163, allocations: 51.98 kB / 0.5305 GB, free: 14.52 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0007526/0.4171, allocations: 0.5776 MB / 0.5311 GB, free: 13.93 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4171, allocations: 96 / 0.5311 GB, free: 13.93 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002293/0.4194, allocations: 0.7144 MB / 0.5318 GB, free: 13.22 MB / 414.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.006406/0.4258, allocations: 3.373 MB / 0.5351 GB, free: 9.777 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002534/0.4284, allocations: 1.538 MB / 0.5366 GB, free: 8.219 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.057e-06/0.4284, allocations: 0 / 0.5366 GB, free: 8.219 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001233/0.4296, allocations: 0.8245 MB / 0.5374 GB, free: 7.371 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001756/0.4314, allocations: 228.9 kB / 0.5376 GB, free: 7.145 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0209/0.4523, allocations: 13.76 MB / 0.5511 GB, free: 8.184 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007427/0.4531, allocations: 1.259 MB / 0.5523 GB, free: 6.895 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001339/0.4544, allocations: 334.9 kB / 0.5526 GB, free: 6.562 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009298/0.4554, allocations: 0.7491 MB / 0.5533 GB, free: 5.812 MB / 430.1 MB Notification: Performance of SimCode: time 6.32e-07/0.4554, allocations: 0 / 0.5533 GB, free: 5.812 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08239/0.5378, allocations: 36.06 MB / 0.5885 GB, free: 1.93 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001712/0.538, allocations: 205.6 kB / 0.5887 GB, free: 1.676 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.746/3.284, allocations: 3.938 kB / 0.5887 GB, free: 1.672 MB / 462.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)