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.007192/0.007193, allocations: 108.2 kB / 15.74 MB, free: 6.02 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.00119/0.00119, allocations: 200.2 kB / 16.68 MB, free: 5.938 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.295/1.295, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.07448/0.07448, allocations: 15.31 MB / 305.8 MB, free: 15.39 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001185/0.001185, allocations: 68.11 kB / 424.7 MB, free: 11.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09222/0.09341, allocations: 53.61 MB / 478.3 MB, free: 6.273 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.03548/0.1289, allocations: 28.48 MB / 0.4949 GB, free: 9.863 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2135/0.3424, allocations: 17.8 MB / 0.5123 GB, free: 17.66 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001149/0.3436, allocations: 20.19 kB / 0.5123 GB, free: 17.66 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001219/0.3448, allocations: 490.4 kB / 0.5128 GB, free: 17.65 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003404/0.3483, allocations: 1.309 MB / 0.514 GB, free: 17.28 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006595/0.3549, allocations: 2.525 MB / 0.5165 GB, free: 16.49 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003153/0.358, allocations: 2.284 MB / 0.5187 GB, free: 15.95 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001895/0.36, allocations: 1.52 MB / 0.5202 GB, free: 15.62 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001525/0.3615, allocations: 1.033 MB / 0.5212 GB, free: 15.2 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00148/0.363, allocations: 1.153 MB / 0.5224 GB, free: 14.7 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003054/0.3633, allocations: 223.5 kB / 0.5226 GB, free: 14.7 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006284/0.3696, allocations: 1.811 MB / 0.5243 GB, free: 14.28 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000667/0.3703, allocations: 0.4993 MB / 0.5248 GB, free: 13.96 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001429/0.3717, allocations: 1.103 MB / 0.5259 GB, free: 13.3 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0095/0.3812, allocations: 4.172 MB / 0.53 GB, free: 11.71 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.975e-06/0.3813, allocations: 6.594 kB / 0.53 GB, free: 11.71 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.3813, allocations: 1.094 kB / 0.53 GB, free: 11.71 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.526e-05/0.3814, allocations: 0 / 0.53 GB, free: 11.71 MB / 382.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.004599/0.386, allocations: 2.49 MB / 0.5324 GB, free: 10.18 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.258e-05/0.386, allocations: 15.38 kB / 0.5324 GB, free: 10.17 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002494/0.3863, allocations: 272.2 kB / 0.5327 GB, free: 9.957 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001613/0.3879, allocations: 435.9 kB / 0.5331 GB, free: 9.754 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001686/0.3896, allocations: 1.113 MB / 0.5342 GB, free: 8.922 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001435/0.3898, allocations: 180.5 kB / 0.5344 GB, free: 8.82 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002605/0.39, allocations: 201.2 kB / 0.5346 GB, free: 8.75 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002908/0.393, allocations: 2.131 MB / 0.5366 GB, free: 7.457 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.592e-05/0.393, allocations: 5.812 kB / 0.5366 GB, free: 7.457 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001655/0.3932, allocations: 75.94 kB / 0.5367 GB, free: 7.398 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.305e-05/0.3932, allocations: 50.56 kB / 0.5368 GB, free: 7.398 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002918/0.3961, allocations: 2.241 MB / 0.539 GB, free: 6.422 MB / 382.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.008498/0.4047, allocations: 7.316 MB / 0.5461 GB, free: 15.42 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00262/0.4073, allocations: 1.737 MB / 0.5478 GB, free: 13.63 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00083/0.4081, allocations: 0.5765 MB / 0.5484 GB, free: 13.04 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008556/0.4167, allocations: 6.37 MB / 0.5546 GB, free: 5.984 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.119e-05/0.4168, allocations: 50.19 kB / 0.5546 GB, free: 5.93 MB / 398.1 MB Notification: Performance of pre-optimization done (n=88): time 2.545e-06/0.4168, allocations: 0 / 0.5546 GB, free: 5.93 MB / 398.1 MB Notification: Performance of matching and sorting (n=106): time 0.01953/0.4363, allocations: 4.846 MB / 0.5594 GB, free: 1.043 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.518e-05/0.4364, allocations: 118.5 kB / 0.5595 GB, free: 0.9062 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001168/0.4376, allocations: 0.9156 MB / 0.5604 GB, free: 15.97 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001133/0.4377, allocations: 49.58 kB / 0.5604 GB, free: 15.92 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005542/0.4383, allocations: 0.9264 MB / 0.5613 GB, free: 14.98 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000332/0.4386, allocations: 387.9 kB / 0.5617 GB, free: 14.61 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004428/0.4391, allocations: 349.9 kB / 0.562 GB, free: 14.26 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.255e-05/0.4392, allocations: 301.1 kB / 0.5623 GB, free: 13.96 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007727/0.44, allocations: 455.7 kB / 0.5627 GB, free: 13.52 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001258/0.4412, allocations: 1.202 MB / 0.5639 GB, free: 11.99 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002147/0.4434, allocations: 1.793 MB / 0.5657 GB, free: 9.902 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.152e-05/0.4434, allocations: 8 kB / 0.5657 GB, free: 9.895 MB / 414.1 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.005346/0.4488, allocations: 2.072 MB / 0.5677 GB, free: 7.824 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.822e-05/0.4488, allocations: 16 kB / 0.5677 GB, free: 7.809 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.324e-05/0.4489, allocations: 26.66 kB / 0.5677 GB, free: 7.785 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002689/0.4515, allocations: 377.4 kB / 0.5681 GB, free: 7.418 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001742/0.4533, allocations: 451.3 kB / 0.5685 GB, free: 6.977 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005623/0.4589, allocations: 4.063 MB / 0.5725 GB, free: 2.633 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001402/0.4604, allocations: 91.39 kB / 0.5726 GB, free: 2.547 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001623/0.4605, allocations: 108 kB / 0.5727 GB, free: 2.441 MB / 414.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.0006499/0.4612, allocations: 379.7 kB / 0.573 GB, free: 2.062 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002586/0.4615, allocations: 118.5 kB / 0.5732 GB, free: 1.945 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004818/0.4663, allocations: 1.614 MB / 0.5747 GB, free: 392 kB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.979e-05/0.4663, allocations: 15.94 kB / 0.5748 GB, free: 376 kB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.4663, allocations: 0.6875 kB / 0.5748 GB, free: 376 kB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.324e-05/0.4664, allocations: 10.64 kB / 0.5748 GB, free: 368 kB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002253/0.4686, allocations: 1.478 MB / 0.5762 GB, free: 14.82 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.575e-06/0.4686, allocations: 4 kB / 0.5762 GB, free: 14.82 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001226/0.4699, allocations: 246.3 kB / 0.5764 GB, free: 14.58 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0025/0.4724, allocations: 352.7 kB / 0.5768 GB, free: 14.23 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001119/0.4725, allocations: 47.98 kB / 0.5768 GB, free: 14.19 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005115/0.4776, allocations: 3.988 MB / 0.5807 GB, free: 9.91 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.03e-06/0.4777, allocations: 4 kB / 0.5807 GB, free: 9.906 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005315/0.483, allocations: 2.207 MB / 0.5829 GB, free: 7.66 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003871/0.4834, allocations: 199.4 kB / 0.5831 GB, free: 7.445 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001773/0.4836, allocations: 37.48 kB / 0.5831 GB, free: 7.414 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007208/0.4843, allocations: 28 kB / 0.5831 GB, free: 7.387 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002008/0.4845, allocations: 92.88 kB / 0.5832 GB, free: 7.293 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.732e-05/0.4846, allocations: 50.64 kB / 0.5833 GB, free: 7.246 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0007394/0.4854, allocations: 0.5814 MB / 0.5838 GB, free: 6.656 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4854, allocations: 3.938 kB / 0.5838 GB, free: 6.652 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002331/0.4877, allocations: 0.7222 MB / 0.5845 GB, free: 5.93 MB / 430.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.006768/0.4945, allocations: 3.362 MB / 0.5878 GB, free: 2.621 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002772/0.4973, allocations: 1.532 MB / 0.5893 GB, free: 1.074 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.57e-06/0.4973, allocations: 0 / 0.5893 GB, free: 1.074 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001351/0.4987, allocations: 0.8359 MB / 0.5901 GB, free: 224 kB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001768/0.5005, allocations: 239.5 kB / 0.5904 GB, free: 0 / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02243/0.5229, allocations: 12.13 MB / 0.6022 GB, free: 3.188 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00104/0.524, allocations: 1.251 MB / 0.6034 GB, free: 1.922 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001167/0.5252, allocations: 333.3 kB / 0.6038 GB, free: 1.602 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001044/0.5262, allocations: 0.7505 MB / 0.6045 GB, free: 0.8555 MB / 446.1 MB Notification: Performance of SimCode: time 5.71e-07/0.5263, allocations: 0 / 0.6045 GB, free: 0.8555 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07159/0.5979, allocations: 38.37 MB / 0.642 GB, free: 10.9 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 20.16/20.76, allocations: 11.16 kB / 0.642 GB, free: 10.89 MB / 494.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)