Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_Chemical.Obsolete.Examples.WaterElectrolysis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001255/0.001255, allocations: 99.75 kB / 18.95 MB, free: 2.832 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001403/0.001403, allocations: 220.4 kB / 22.25 MB, free: 5.105 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.403/1.403, allocations: 230.6 MB / 256 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo): time 0.1352/0.1352, allocations: 23.93 MB / 336.4 MB, free: 10.9 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Chemical.Obsolete.Examples.WaterElectrolysis,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_WaterElectrolysis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.WaterElectrolysis,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_WaterElectrolysis",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Chemical requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001984/0.001984, allocations: 67.91 kB / 471.2 MB, free: 7.453 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2985/0.3005, allocations: 59.87 MB / 0.5186 GB, free: 9.516 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/Obsolete.mo:12638:6-12638: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 master/Obsolete.mo:12638:6-12638: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.Obsolete.Examples.WaterElectrolysis): time 0.07078/0.3712, allocations: 28.69 MB / 0.5466 GB, free: 11 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02243/0.3937, allocations: 15.78 MB / 0.562 GB, free: 12.66 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001455/0.3951, allocations: 27.81 kB / 0.5621 GB, free: 12.63 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001261/0.3964, allocations: 458.4 kB / 0.5625 GB, free: 12.29 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003419/0.3998, allocations: 1.293 MB / 0.5638 GB, free: 11.19 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006831/0.4066, allocations: 2.581 MB / 0.5663 GB, free: 8.969 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003069/0.4097, allocations: 2.288 MB / 0.5685 GB, free: 6.668 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001525/0.4112, allocations: 1.222 MB / 0.5697 GB, free: 5.391 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001138/0.4124, allocations: 1.056 MB / 0.5707 GB, free: 4.332 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001498/0.4139, allocations: 1.16 MB / 0.5719 GB, free: 3.168 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003144/0.4142, allocations: 224 kB / 0.5721 GB, free: 2.949 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004794/0.419, allocations: 1.767 MB / 0.5738 GB, free: 1.18 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005831/0.4196, allocations: 0.5062 MB / 0.5743 GB, free: 0.6719 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001129/0.4207, allocations: 0.9143 MB / 0.5752 GB, free: 15.75 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008248/0.4289, allocations: 4.342 MB / 0.5794 GB, free: 11.39 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.823e-06/0.4289, allocations: 3.984 kB / 0.5794 GB, free: 11.39 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.4289, allocations: 0 / 0.5794 GB, free: 11.39 MB / 430.1 MB Notification: Performance of Transformations before backend: time 3.677e-05/0.429, allocations: 0 / 0.5794 GB, free: 11.39 MB / 430.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.00457/0.4336, allocations: 2.47 MB / 0.5819 GB, free: 8.879 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.029e-05/0.4336, allocations: 12.03 kB / 0.5819 GB, free: 8.867 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003267/0.4339, allocations: 274.9 kB / 0.5821 GB, free: 8.59 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001697/0.4356, allocations: 443 kB / 0.5825 GB, free: 8.156 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002099/0.4377, allocations: 1.062 MB / 0.5836 GB, free: 7.066 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001977/0.4379, allocations: 207.5 kB / 0.5838 GB, free: 6.852 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003404/0.4383, allocations: 200 kB / 0.584 GB, free: 6.656 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003541/0.4418, allocations: 2.157 MB / 0.5861 GB, free: 4.43 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.981e-05/0.4418, allocations: 8 kB / 0.5861 GB, free: 4.422 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002071/0.442, allocations: 76 kB / 0.5862 GB, free: 4.348 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.249e-05/0.4421, allocations: 51.98 kB / 0.5862 GB, free: 4.297 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003632/0.4457, allocations: 2.218 MB / 0.5884 GB, free: 2.074 MB / 430.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.01095/0.4567, allocations: 6.085 MB / 0.5943 GB, free: 11.8 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002956/0.4596, allocations: 1.505 MB / 0.5958 GB, free: 10.28 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009153/0.4605, allocations: 0.5332 MB / 0.5963 GB, free: 9.734 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008143/0.4687, allocations: 3.311 MB / 0.5995 GB, free: 6.398 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.147e-05/0.4687, allocations: 47.56 kB / 0.5996 GB, free: 6.344 MB / 446.1 MB Notification: Performance of pre-optimization done (n=88): time 2.945e-06/0.4687, allocations: 0 / 0.5996 GB, free: 6.344 MB / 446.1 MB Notification: Performance of matching and sorting (n=106): time 0.02053/0.4893, allocations: 4.685 MB / 0.6042 GB, free: 1.629 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.744e-05/0.4893, allocations: 115.8 kB / 0.6043 GB, free: 1.492 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001331/0.4907, allocations: 0.9582 MB / 0.6052 GB, free: 0.5156 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 9.304e-05/0.4908, allocations: 45.7 kB / 0.6053 GB, free: 476 kB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007913/0.4916, allocations: 0.9634 MB / 0.6062 GB, free: 15.48 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003922/0.492, allocations: 400.7 kB / 0.6066 GB, free: 15.09 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005076/0.4925, allocations: 347.4 kB / 0.6069 GB, free: 14.74 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000156/0.4926, allocations: 301.1 kB / 0.6072 GB, free: 14.45 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008383/0.4935, allocations: 455.8 kB / 0.6076 GB, free: 14 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001465/0.4949, allocations: 1.195 MB / 0.6088 GB, free: 12.45 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002455/0.4974, allocations: 1.802 MB / 0.6106 GB, free: 10.29 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.015e-05/0.4974, allocations: 4 kB / 0.6106 GB, free: 10.29 MB / 462.1 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.005586/0.503, allocations: 2.069 MB / 0.6126 GB, free: 8.207 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.237e-05/0.503, allocations: 16.59 kB / 0.6126 GB, free: 8.191 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.366e-05/0.503, allocations: 24 kB / 0.6126 GB, free: 8.168 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002749/0.5058, allocations: 382.2 kB / 0.613 GB, free: 7.785 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001825/0.5076, allocations: 451.3 kB / 0.6134 GB, free: 7.344 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005892/0.5135, allocations: 3.85 MB / 0.6172 GB, free: 3.234 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001318/0.5148, allocations: 87.86 kB / 0.6173 GB, free: 3.148 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000206/0.515, allocations: 112 kB / 0.6174 GB, free: 3.039 MB / 462.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.0006752/0.5157, allocations: 377.1 kB / 0.6177 GB, free: 2.66 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002931/0.516, allocations: 135.1 kB / 0.6179 GB, free: 2.527 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005174/0.5212, allocations: 1.61 MB / 0.6194 GB, free: 0.9023 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.307e-05/0.5212, allocations: 12 kB / 0.6194 GB, free: 0.8906 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.283e-06/0.5212, allocations: 4 kB / 0.6194 GB, free: 0.8867 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.357e-05/0.5212, allocations: 3.984 kB / 0.6194 GB, free: 0.8828 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002332/0.5235, allocations: 1.324 MB / 0.6207 GB, free: 15.48 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.894e-06/0.5235, allocations: 4 kB / 0.6207 GB, free: 15.48 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001303/0.5248, allocations: 236 kB / 0.621 GB, free: 15.25 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002663/0.5275, allocations: 354 kB / 0.6213 GB, free: 14.89 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001211/0.5276, allocations: 47.97 kB / 0.6213 GB, free: 14.85 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005371/0.533, allocations: 3.763 MB / 0.625 GB, free: 10.83 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.552e-06/0.533, allocations: 7.938 kB / 0.625 GB, free: 10.82 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005591/0.5386, allocations: 2.204 MB / 0.6272 GB, free: 8.555 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003458/0.5389, allocations: 127 kB / 0.6273 GB, free: 8.43 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001788/0.5391, allocations: 31.98 kB / 0.6273 GB, free: 8.398 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007349/0.5399, allocations: 28 kB / 0.6274 GB, free: 8.371 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002223/0.5401, allocations: 116.6 kB / 0.6275 GB, free: 8.258 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001195/0.5402, allocations: 51.97 kB / 0.6275 GB, free: 8.207 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0007964/0.541, allocations: 0.5737 MB / 0.6281 GB, free: 7.625 MB / 478.1 MB Notification: Performance of sort global known variables: time 8e-08/0.541, allocations: 0 / 0.6281 GB, free: 7.625 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002388/0.5434, allocations: 0.7211 MB / 0.6288 GB, free: 6.902 MB / 478.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.007247/0.5506, allocations: 3.389 MB / 0.6321 GB, free: 3.441 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00281/0.5534, allocations: 1.468 MB / 0.6335 GB, free: 1.957 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.621e-06/0.5534, allocations: 192 / 0.6335 GB, free: 1.957 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001374/0.5548, allocations: 0.7761 MB / 0.6343 GB, free: 1.156 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001448/0.5563, allocations: 240.7 kB / 0.6345 GB, free: 0.9219 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02248/0.5787, allocations: 12.18 MB / 0.6464 GB, free: 3.789 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007557/0.5795, allocations: 0.6685 MB / 0.6471 GB, free: 3.086 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001108/0.5806, allocations: 338.5 kB / 0.6474 GB, free: 2.75 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001038/0.5816, allocations: 0.7491 MB / 0.6481 GB, free: 2 MB / 494.1 MB Notification: Performance of SimCode: time 8.02e-07/0.5816, allocations: 0 / 0.6481 GB, free: 2 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08512/0.6668, allocations: 40.07 MB / 0.6872 GB, free: 10.26 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.86/14.52, allocations: 14.3 kB / 0.6873 GB, free: 10.25 MB / 0.5294 GB " [Timeout remaining time 645] (rm -f Chemical_master_Chemical.Obsolete.Examples.WaterElectrolysis.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.WaterElectrolysis.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.WaterElectrolysis.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.WaterElectrolysis.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_master_Chemical_Obsolete_Examples_WaterElectrolysis_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 Chemical_master_Chemical_Obsolete_Examples_WaterElectrolysis.fmu > Chemical_master_Chemical.Obsolete.Examples.WaterElectrolysis.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 17.180315742996754] Failed to read output from testmodel.py, exit status != 0: 14.661436233000131 14.675328169 14.243428203 Calling exit ...