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.001331/0.001331, allocations: 107.2 kB / 16.45 MB, free: 6.5 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.001444/0.001444, allocations: 210.4 kB / 19.43 MB, free: 3.656 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.4/1.4, allocations: 230.6 MB / 252.8 MB, free: 8.953 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.1344/0.1344, allocations: 23.89 MB / 332.7 MB, free: 12.31 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.002224/0.002224, allocations: 63.91 kB / 466 MB, free: 10.03 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3326/0.3348, allocations: 59.84 MB / 0.5135 GB, free: 8.816 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.03999/0.3748, allocations: 29.73 MB / 0.5426 GB, free: 11.06 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02386/0.3986, allocations: 17.9 MB / 0.5601 GB, free: 10.57 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001698/0.4003, allocations: 31.75 kB / 0.5601 GB, free: 10.54 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00179/0.4021, allocations: 485.3 kB / 0.5606 GB, free: 10.17 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004712/0.4068, allocations: 1.322 MB / 0.5618 GB, free: 9.047 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007976/0.4148, allocations: 2.547 MB / 0.5643 GB, free: 6.969 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.004665/0.4195, allocations: 2.288 MB / 0.5666 GB, free: 4.891 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002246/0.4217, allocations: 1.228 MB / 0.5678 GB, free: 3.629 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001798/0.4235, allocations: 1.06 MB / 0.5688 GB, free: 2.566 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00201/0.4255, allocations: 1.167 MB / 0.5699 GB, free: 1.395 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006094/0.4261, allocations: 224 kB / 0.5702 GB, free: 1.176 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006746/0.4329, allocations: 1.829 MB / 0.5719 GB, free: 15.34 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007817/0.4337, allocations: 0.4985 MB / 0.5724 GB, free: 14.84 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001778/0.4354, allocations: 1.104 MB / 0.5735 GB, free: 13.73 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009598/0.445, allocations: 4.334 MB / 0.5777 GB, free: 9.383 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.445, allocations: 0 / 0.5777 GB, free: 9.383 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.445, allocations: 0 / 0.5777 GB, free: 9.383 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001051/0.4452, allocations: 7.938 kB / 0.5778 GB, free: 9.375 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.005726/0.4509, allocations: 2.549 MB / 0.5802 GB, free: 6.766 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.272e-05/0.4509, allocations: 8.031 kB / 0.5802 GB, free: 6.758 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004976/0.4514, allocations: 282.9 kB / 0.5805 GB, free: 6.473 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001825/0.4532, allocations: 446.9 kB / 0.5809 GB, free: 6.035 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002157/0.4554, allocations: 1.119 MB / 0.582 GB, free: 4.875 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002038/0.4556, allocations: 193.7 kB / 0.5822 GB, free: 4.68 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003924/0.456, allocations: 196 kB / 0.5824 GB, free: 4.488 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004051/0.46, allocations: 2.127 MB / 0.5845 GB, free: 2.301 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.752e-05/0.4601, allocations: 11.94 kB / 0.5845 GB, free: 2.289 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002115/0.4603, allocations: 80 kB / 0.5846 GB, free: 2.211 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.974e-05/0.4604, allocations: 48 kB / 0.5846 GB, free: 2.164 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004002/0.4644, allocations: 2.241 MB / 0.5868 GB, free: 15.92 MB / 446.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.01203/0.4764, allocations: 7.372 MB / 0.594 GB, free: 8.191 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003003/0.4794, allocations: 1.668 MB / 0.5956 GB, free: 6.465 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009636/0.4804, allocations: 0.5257 MB / 0.5961 GB, free: 5.93 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009834/0.4902, allocations: 6.377 MB / 0.6024 GB, free: 14.8 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.266e-05/0.4902, allocations: 47.56 kB / 0.6024 GB, free: 14.75 MB / 462.1 MB Notification: Performance of pre-optimization done (n=88): time 2.985e-06/0.4902, allocations: 0 / 0.6024 GB, free: 14.75 MB / 462.1 MB Notification: Performance of matching and sorting (n=106): time 0.01923/0.5095, allocations: 4.915 MB / 0.6072 GB, free: 9.754 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.21e-05/0.5095, allocations: 115.8 kB / 0.6073 GB, free: 9.613 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001305/0.5109, allocations: 0.9157 MB / 0.6082 GB, free: 8.68 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001064/0.511, allocations: 49.69 kB / 0.6083 GB, free: 8.625 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007157/0.5117, allocations: 0.9594 MB / 0.6092 GB, free: 7.652 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003909/0.5121, allocations: 404.6 kB / 0.6096 GB, free: 7.254 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005347/0.5126, allocations: 351.4 kB / 0.6099 GB, free: 6.902 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000128/0.5127, allocations: 301.1 kB / 0.6102 GB, free: 6.605 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008952/0.5136, allocations: 455.8 kB / 0.6107 GB, free: 6.16 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001515/0.5151, allocations: 1.191 MB / 0.6118 GB, free: 4.617 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002538/0.5177, allocations: 1.806 MB / 0.6136 GB, free: 2.457 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.915e-05/0.5177, allocations: 8 kB / 0.6136 GB, free: 2.449 MB / 462.1 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.005447/0.5231, allocations: 2.061 MB / 0.6156 GB, free: 380 kB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.31e-05/0.5232, allocations: 16 kB / 0.6156 GB, free: 364 kB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.21e-05/0.5232, allocations: 24 kB / 0.6156 GB, free: 340 kB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002512/0.5258, allocations: 390.7 kB / 0.616 GB, free: 15.94 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001741/0.5275, allocations: 451.3 kB / 0.6164 GB, free: 15.5 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005773/0.5333, allocations: 4.072 MB / 0.6204 GB, free: 11.12 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001308/0.5346, allocations: 91.84 kB / 0.6205 GB, free: 11.03 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002455/0.5348, allocations: 108 kB / 0.6206 GB, free: 10.93 MB / 478.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.0008021/0.5356, allocations: 380.1 kB / 0.621 GB, free: 10.55 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003617/0.536, allocations: 131.2 kB / 0.6211 GB, free: 10.42 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005048/0.541, allocations: 1.61 MB / 0.6227 GB, free: 8.793 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.28e-05/0.541, allocations: 12 kB / 0.6227 GB, free: 8.781 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.101e-06/0.5411, allocations: 0 / 0.6227 GB, free: 8.781 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.39e-05/0.5411, allocations: 7.984 kB / 0.6227 GB, free: 8.773 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002551/0.5436, allocations: 1.481 MB / 0.6241 GB, free: 7.203 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.512e-05/0.5436, allocations: 7.938 kB / 0.6241 GB, free: 7.195 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001289/0.5449, allocations: 239.7 kB / 0.6244 GB, free: 6.961 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0025/0.5474, allocations: 350.3 kB / 0.6247 GB, free: 6.609 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001193/0.5475, allocations: 51.98 kB / 0.6248 GB, free: 6.559 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005362/0.5529, allocations: 4 MB / 0.6287 GB, free: 2.254 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.579e-06/0.5529, allocations: 4 kB / 0.6287 GB, free: 2.25 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005311/0.5582, allocations: 2.212 MB / 0.6308 GB, free: 15.98 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003673/0.5586, allocations: 196.1 kB / 0.631 GB, free: 15.77 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002328/0.5588, allocations: 31.98 kB / 0.631 GB, free: 15.74 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007542/0.5596, allocations: 35.94 kB / 0.6311 GB, free: 15.7 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002311/0.5598, allocations: 96.81 kB / 0.6312 GB, free: 15.61 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001104/0.5599, allocations: 55.91 kB / 0.6312 GB, free: 15.55 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0008806/0.5608, allocations: 0.5737 MB / 0.6318 GB, free: 14.97 MB / 494.1 MB Notification: Performance of sort global known variables: time 6e-08/0.5608, allocations: 0 / 0.6318 GB, free: 14.97 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002403/0.5632, allocations: 0.7327 MB / 0.6325 GB, free: 14.24 MB / 494.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.007006/0.5702, allocations: 3.384 MB / 0.6358 GB, free: 10.79 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.002984/0.5732, allocations: 1.464 MB / 0.6372 GB, free: 9.305 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.711e-06/0.5732, allocations: 0 / 0.6372 GB, free: 9.305 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00146/0.5747, allocations: 0.7768 MB / 0.638 GB, free: 8.504 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001582/0.5762, allocations: 245.3 kB / 0.6382 GB, free: 8.262 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02366/0.5999, allocations: 12.16 MB / 0.6501 GB, free: 11.14 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001182/0.6011, allocations: 1.255 MB / 0.6513 GB, free: 9.859 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001174/0.6023, allocations: 334.5 kB / 0.6516 GB, free: 9.527 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001133/0.6034, allocations: 0.7491 MB / 0.6524 GB, free: 8.777 MB / 0.4981 GB Notification: Performance of SimCode: time 1.102e-06/0.6034, allocations: 4 kB / 0.6524 GB, free: 8.773 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09128/0.6947, allocations: 38.43 MB / 0.6899 GB, free: 2.535 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.95/20.65, allocations: 6.328 kB / 0.6899 GB, free: 2.531 MB / 0.5294 GB " [Timeout remaining time 639] (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: 23.402957482961938] Failed to read output from testmodel.py, exit status != 0: 20.765796438092366 20.788389115 20.338980535 Calling exit ...