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.001207/0.001207, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001153/0.001153, allocations: 197 kB / 16.53 MB, free: 6.664 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.147/1.147, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.157/0.157, allocations: 15.32 MB / 305.7 MB, free: 15.29 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001101/0.001101, allocations: 55.91 kB / 370.4 MB, free: 3.875 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07588/0.07699, allocations: 53.61 MB / 424 MB, free: 14.21 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.2631/0.3401, allocations: 28.5 MB / 452.5 MB, free: 39.79 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01309/0.3532, allocations: 17.82 MB / 470.4 MB, free: 31.74 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008559/0.3541, allocations: 18.56 kB / 470.4 MB, free: 31.73 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009269/0.3551, allocations: 481.1 kB / 470.8 MB, free: 31.46 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002364/0.3574, allocations: 1.311 MB / 472.2 MB, free: 30.63 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00491/0.3623, allocations: 2.528 MB / 474.7 MB, free: 29.13 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001849/0.3642, allocations: 2.268 MB / 477 MB, free: 27.99 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001168/0.3654, allocations: 1.516 MB / 478.5 MB, free: 27.27 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008186/0.3662, allocations: 1.023 MB / 479.5 MB, free: 26.84 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009307/0.3672, allocations: 1.152 MB / 480.6 MB, free: 26.31 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002668/0.3674, allocations: 224.5 kB / 480.9 MB, free: 26.31 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004569/0.372, allocations: 1.813 MB / 482.7 MB, free: 25.88 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002896/0.3723, allocations: 0.5037 MB / 483.2 MB, free: 25.54 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007365/0.3731, allocations: 1.097 MB / 484.3 MB, free: 24.88 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00496/0.378, allocations: 4.142 MB / 488.4 MB, free: 23.05 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.378, allocations: 0 / 488.4 MB, free: 23.05 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.378, allocations: 0 / 488.4 MB, free: 23.05 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.913e-05/0.3781, allocations: 1.375 kB / 488.4 MB, free: 23.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.00379/0.3819, allocations: 2.489 MB / 490.9 MB, free: 21.57 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.371e-05/0.3819, allocations: 10.66 kB / 490.9 MB, free: 21.57 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002511/0.3822, allocations: 274.6 kB / 491.2 MB, free: 21.4 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001391/0.3836, allocations: 438.2 kB / 491.6 MB, free: 21.26 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001338/0.3849, allocations: 1.092 MB / 492.7 MB, free: 20.6 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.753e-05/0.385, allocations: 180.8 kB / 492.9 MB, free: 20.5 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002009/0.3852, allocations: 201.5 kB / 493.1 MB, free: 20.43 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002552/0.3878, allocations: 2.129 MB / 495.2 MB, free: 19.53 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.265e-05/0.3879, allocations: 3.844 kB / 495.2 MB, free: 19.53 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001437/0.388, allocations: 75.03 kB / 495.3 MB, free: 19.47 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.203e-05/0.388, allocations: 54.12 kB / 495.3 MB, free: 19.46 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002679/0.3907, allocations: 2.245 MB / 497.6 MB, free: 18.79 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.007631/0.3984, allocations: 7.377 MB / 0.4931 GB, free: 13.68 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001975/0.4003, allocations: 1.743 MB / 0.4948 GB, free: 12.01 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006346/0.401, allocations: 0.5677 MB / 0.4954 GB, free: 11.48 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005957/0.407, allocations: 6.37 MB / 0.5016 GB, free: 5.066 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.736e-05/0.407, allocations: 43.56 kB / 0.5016 GB, free: 5.016 MB / 366.1 MB Notification: Performance of pre-optimization done (n=88): time 2.254e-06/0.407, allocations: 0 / 0.5016 GB, free: 5.016 MB / 366.1 MB Notification: Performance of matching and sorting (n=106): time 0.01444/0.4214, allocations: 4.861 MB / 0.5064 GB, free: 224 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.747e-05/0.4215, allocations: 111.8 kB / 0.5065 GB, free: 84 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009321/0.4224, allocations: 0.9196 MB / 0.5074 GB, free: 15.14 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.852e-05/0.4225, allocations: 45.7 kB / 0.5074 GB, free: 15.09 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004605/0.423, allocations: 0.9286 MB / 0.5083 GB, free: 14.15 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002461/0.4232, allocations: 382.6 kB / 0.5087 GB, free: 13.77 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003811/0.4236, allocations: 343.2 kB / 0.509 GB, free: 13.43 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.311e-05/0.4237, allocations: 305.1 kB / 0.5093 GB, free: 13.13 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006871/0.4244, allocations: 459.8 kB / 0.5098 GB, free: 12.68 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001062/0.4254, allocations: 1.195 MB / 0.5109 GB, free: 11.13 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001934/0.4274, allocations: 1.794 MB / 0.5127 GB, free: 8.988 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.648e-06/0.4274, allocations: 8 kB / 0.5127 GB, free: 8.98 MB / 382.1 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.004484/0.4319, allocations: 2.072 MB / 0.5147 GB, free: 6.887 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.24e-05/0.4319, allocations: 16 kB / 0.5147 GB, free: 6.871 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.405e-05/0.432, allocations: 28 kB / 0.5148 GB, free: 6.844 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00221/0.4342, allocations: 374.8 kB / 0.5151 GB, free: 6.469 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00148/0.4357, allocations: 447.3 kB / 0.5155 GB, free: 6.027 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004511/0.4402, allocations: 4.074 MB / 0.5195 GB, free: 1.656 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001022/0.4412, allocations: 83.81 kB / 0.5196 GB, free: 1.574 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001271/0.4414, allocations: 108 kB / 0.5197 GB, free: 1.469 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.0005601/0.4419, allocations: 378.6 kB / 0.5201 GB, free: 1.09 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002179/0.4421, allocations: 130.4 kB / 0.5202 GB, free: 0.9609 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004338/0.4465, allocations: 1.61 MB / 0.5218 GB, free: 15.33 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.023e-05/0.4465, allocations: 12 kB / 0.5218 GB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.4465, allocations: 0 / 0.5218 GB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.24e-05/0.4465, allocations: 11.97 kB / 0.5218 GB, free: 15.31 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001755/0.4483, allocations: 1.477 MB / 0.5232 GB, free: 13.74 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.224e-06/0.4483, allocations: 7.938 kB / 0.5232 GB, free: 13.73 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001098/0.4494, allocations: 239.7 kB / 0.5235 GB, free: 13.5 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002104/0.4515, allocations: 358.5 kB / 0.5238 GB, free: 13.14 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.286e-05/0.4516, allocations: 43.98 kB / 0.5238 GB, free: 13.1 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004198/0.4558, allocations: 4.002 MB / 0.5278 GB, free: 8.793 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.378e-06/0.4558, allocations: 7.938 kB / 0.5278 GB, free: 8.785 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004257/0.4601, allocations: 2.203 MB / 0.5299 GB, free: 6.527 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001781/0.4603, allocations: 191.4 kB / 0.5301 GB, free: 6.32 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001526/0.4605, allocations: 32 kB / 0.5301 GB, free: 6.289 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006092/0.4611, allocations: 28 kB / 0.5302 GB, free: 6.262 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001646/0.4612, allocations: 104.8 kB / 0.5303 GB, free: 6.16 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.201e-05/0.4613, allocations: 51.92 kB / 0.5303 GB, free: 6.109 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005836/0.4619, allocations: 0.5737 MB / 0.5309 GB, free: 5.527 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4619, allocations: 0 / 0.5309 GB, free: 5.527 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001797/0.4637, allocations: 0.7183 MB / 0.5316 GB, free: 4.809 MB / 398.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.005798/0.4695, allocations: 3.366 MB / 0.5349 GB, free: 1.375 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002768/0.4723, allocations: 1.628 MB / 0.5364 GB, free: 15.72 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.045e-06/0.4723, allocations: 0 / 0.5364 GB, free: 15.72 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001103/0.4734, allocations: 0.8277 MB / 0.5373 GB, free: 14.87 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001165/0.4746, allocations: 241.4 kB / 0.5375 GB, free: 14.64 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01713/0.4918, allocations: 12.85 MB / 0.55 GB, free: 0.5781 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006976/0.4925, allocations: 1.255 MB / 0.5513 GB, free: 15.29 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001149/0.4936, allocations: 338.5 kB / 0.5516 GB, free: 14.96 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007948/0.4944, allocations: 0.7452 MB / 0.5523 GB, free: 14.21 MB / 430.1 MB Notification: Performance of SimCode: time 3.71e-07/0.4944, allocations: 4 kB / 0.5523 GB, free: 14.21 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08769/0.5821, allocations: 37.29 MB / 0.5887 GB, free: 9.066 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.85/12.44, allocations: 19.97 kB / 0.5887 GB, free: 9.047 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)