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.001755/0.001755, allocations: 110.4 kB / 19.73 MB, free: 2.242 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.002137/0.002137, allocations: 219.1 kB / 23.05 MB, free: 5.074 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.429/1.429, allocations: 230.6 MB / 256.8 MB, free: 7.988 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.1336/0.1336, allocations: 23.88 MB / 337.1 MB, free: 11.18 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.0 (/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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.WaterElectrolysis,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_WaterElectrolysis",fmuType="cs",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.002021/0.002021, allocations: 68.19 kB / 472 MB, free: 7.688 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2984/0.3004, allocations: 59.87 MB / 0.5194 GB, free: 9.633 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.03855/0.339, allocations: 29.61 MB / 0.5483 GB, free: 10.37 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02366/0.3626, allocations: 17.95 MB / 0.5658 GB, free: 9.848 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001956/0.3646, allocations: 31.75 kB / 0.5659 GB, free: 9.816 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001947/0.3665, allocations: 485.4 kB / 0.5663 GB, free: 9.449 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005393/0.3719, allocations: 1.325 MB / 0.5676 GB, free: 8.316 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007622/0.3795, allocations: 2.581 MB / 0.5701 GB, free: 6.129 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003919/0.3835, allocations: 2.288 MB / 0.5724 GB, free: 3.828 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001772/0.3852, allocations: 1.219 MB / 0.5736 GB, free: 2.555 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001337/0.3866, allocations: 1.052 MB / 0.5746 GB, free: 1.5 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001657/0.3882, allocations: 1.16 MB / 0.5757 GB, free: 344 kB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003553/0.3886, allocations: 224 kB / 0.5759 GB, free: 120 kB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00551/0.3941, allocations: 1.837 MB / 0.5777 GB, free: 14.28 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005715/0.3947, allocations: 0.4946 MB / 0.5782 GB, free: 13.78 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001267/0.3959, allocations: 1.104 MB / 0.5793 GB, free: 12.67 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008158/0.4041, allocations: 4.334 MB / 0.5835 GB, free: 8.32 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.4041, allocations: 4 kB / 0.5835 GB, free: 8.316 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.4041, allocations: 0 / 0.5835 GB, free: 8.316 MB / 430.1 MB Notification: Performance of Transformations before backend: time 3.498e-05/0.4041, allocations: 4 kB / 0.5835 GB, free: 8.312 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.004593/0.4087, allocations: 2.485 MB / 0.586 GB, free: 5.785 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.254e-05/0.4088, allocations: 12.03 kB / 0.586 GB, free: 5.773 MB / 430.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.351e-05/0.4088, allocations: 48.12 kB / 0.586 GB, free: 5.727 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003063/0.4091, allocations: 278.9 kB / 0.5863 GB, free: 5.445 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001662/0.4108, allocations: 446.9 kB / 0.5867 GB, free: 5.008 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00194/0.4127, allocations: 1.047 MB / 0.5877 GB, free: 3.934 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001885/0.4129, allocations: 211.3 kB / 0.5879 GB, free: 3.715 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003036/0.4132, allocations: 200 kB / 0.5881 GB, free: 3.52 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003483/0.4167, allocations: 2.135 MB / 0.5902 GB, free: 1.32 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.692e-05/0.4167, allocations: 0 / 0.5902 GB, free: 1.32 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001915/0.4169, allocations: 80 kB / 0.5903 GB, free: 1.242 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.256e-05/0.417, allocations: 56 kB / 0.5903 GB, free: 1.188 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003815/0.4208, allocations: 2.237 MB / 0.5925 GB, free: 14.95 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.01092/0.4317, allocations: 7.264 MB / 0.5996 GB, free: 7.324 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00273/0.4344, allocations: 1.516 MB / 0.6011 GB, free: 5.789 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008836/0.4353, allocations: 0.5255 MB / 0.6016 GB, free: 5.25 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007614/0.4429, allocations: 3.486 MB / 0.605 GB, free: 1.738 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.079e-05/0.443, allocations: 43.5 kB / 0.6051 GB, free: 1.688 MB / 446.1 MB Notification: Performance of pre-optimization done (n=88): time 2.905e-06/0.443, allocations: 0 / 0.6051 GB, free: 1.688 MB / 446.1 MB Notification: Performance of matching and sorting (n=106): time 0.01784/0.4608, allocations: 4.677 MB / 0.6096 GB, free: 12.98 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.906e-05/0.4609, allocations: 119.8 kB / 0.6097 GB, free: 12.84 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001156/0.462, allocations: 0.9196 MB / 0.6106 GB, free: 11.9 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 9.156e-05/0.4621, allocations: 49.77 kB / 0.6107 GB, free: 11.84 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006623/0.4628, allocations: 0.9555 MB / 0.6116 GB, free: 10.88 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003404/0.4631, allocations: 404.6 kB / 0.612 GB, free: 10.48 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004839/0.4636, allocations: 347.4 kB / 0.6123 GB, free: 10.13 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000115/0.4637, allocations: 301.1 kB / 0.6126 GB, free: 9.832 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008244/0.4646, allocations: 455.8 kB / 0.6131 GB, free: 9.387 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001425/0.466, allocations: 1.202 MB / 0.6142 GB, free: 7.832 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002423/0.4684, allocations: 1.786 MB / 0.616 GB, free: 5.691 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.005e-05/0.4684, allocations: 4 kB / 0.616 GB, free: 5.688 MB / 462.1 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.00521/0.4736, allocations: 2.065 MB / 0.618 GB, free: 3.605 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.541e-05/0.4737, allocations: 16 kB / 0.618 GB, free: 3.59 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.494e-05/0.4737, allocations: 24 kB / 0.618 GB, free: 3.566 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002423/0.4761, allocations: 386.5 kB / 0.6184 GB, free: 3.18 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001744/0.4779, allocations: 451.3 kB / 0.6188 GB, free: 2.738 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005539/0.4834, allocations: 3.892 MB / 0.6226 GB, free: 14.59 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001265/0.4847, allocations: 87.84 kB / 0.6227 GB, free: 14.5 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002253/0.4849, allocations: 104.1 kB / 0.6228 GB, free: 14.4 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.0007283/0.4856, allocations: 381.7 kB / 0.6232 GB, free: 14.02 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003179/0.4859, allocations: 131.2 kB / 0.6233 GB, free: 13.89 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004778/0.4907, allocations: 1.61 MB / 0.6249 GB, free: 12.27 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.538e-05/0.4907, allocations: 12 kB / 0.6249 GB, free: 12.25 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.4907, allocations: 0 / 0.6249 GB, free: 12.25 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.308e-05/0.4908, allocations: 7.984 kB / 0.6249 GB, free: 12.25 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002328/0.4931, allocations: 1.453 MB / 0.6263 GB, free: 10.72 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.514e-06/0.4931, allocations: 4 kB / 0.6263 GB, free: 10.71 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001241/0.4943, allocations: 244 kB / 0.6265 GB, free: 10.48 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002299/0.4966, allocations: 350.1 kB / 0.6269 GB, free: 10.12 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001185/0.4967, allocations: 43.98 kB / 0.6269 GB, free: 10.08 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005129/0.5019, allocations: 3.794 MB / 0.6306 GB, free: 6.031 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.059e-06/0.5019, allocations: 4 kB / 0.6306 GB, free: 6.027 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005127/0.507, allocations: 2.212 MB / 0.6328 GB, free: 3.754 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002913/0.5073, allocations: 131.2 kB / 0.6329 GB, free: 3.625 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001646/0.5075, allocations: 28 kB / 0.6329 GB, free: 3.598 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006765/0.5081, allocations: 31.92 kB / 0.633 GB, free: 3.566 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002243/0.5084, allocations: 108.8 kB / 0.6331 GB, free: 3.461 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001015/0.5085, allocations: 47.98 kB / 0.6331 GB, free: 3.414 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0008175/0.5093, allocations: 0.5814 MB / 0.6337 GB, free: 2.824 MB / 478.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5093, allocations: 4.094 kB / 0.6337 GB, free: 2.82 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002245/0.5115, allocations: 0.7288 MB / 0.6344 GB, free: 2.09 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.006768/0.5183, allocations: 3.374 MB / 0.6377 GB, free: 14.64 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.002812/0.5211, allocations: 1.471 MB / 0.6391 GB, free: 13.16 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/0.5211, allocations: 0 / 0.6391 GB, free: 13.16 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001295/0.5224, allocations: 0.7819 MB / 0.6399 GB, free: 12.35 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001408/0.5238, allocations: 239.2 kB / 0.6401 GB, free: 12.12 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02121/0.545, allocations: 12.17 MB / 0.652 GB, free: 14.99 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009436/0.546, allocations: 1.255 MB / 0.6532 GB, free: 13.71 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001085/0.5471, allocations: 334.5 kB / 0.6536 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009999/0.5481, allocations: 0.753 MB / 0.6543 GB, free: 12.62 MB / 0.4981 GB Notification: Performance of SimCode: time 6.52e-07/0.5481, allocations: 0 / 0.6543 GB, free: 12.62 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08046/0.6285, allocations: 39.83 MB / 0.6932 GB, free: 5.004 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.05/22.68, allocations: 11.44 kB / 0.6932 GB, free: 4.996 MB / 0.5294 GB " [Timeout remaining time 637] (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: 25.58276901091449] Failed to read output from testmodel.py, exit status != 0: 22.87335556303151 22.894828376 22.487192703 Calling exit ...