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.001333/0.001333, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001517/0.001517, allocations: 214 kB / 22.25 MB, free: 4.855 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.435/1.435, allocations: 230.6 MB / 256 MB, free: 7.797 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.1396/0.1396, allocations: 23.99 MB / 336.4 MB, free: 10.85 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.00216/0.00216, allocations: 67.89 kB / 471.3 MB, free: 7.359 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3002/0.3024, allocations: 59.89 MB / 0.5187 GB, free: 9.531 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.0733/0.3757, allocations: 28.81 MB / 0.5469 GB, free: 10.84 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02265/0.3984, allocations: 15.78 MB / 0.5623 GB, free: 12.5 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001717/0.4001, allocations: 27.75 kB / 0.5623 GB, free: 12.47 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001613/0.4017, allocations: 449.7 kB / 0.5627 GB, free: 12.14 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004339/0.406, allocations: 1.297 MB / 0.564 GB, free: 11.03 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007321/0.4133, allocations: 2.581 MB / 0.5665 GB, free: 8.746 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003666/0.417, allocations: 2.291 MB / 0.5688 GB, free: 6.441 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001629/0.4186, allocations: 1.183 MB / 0.5699 GB, free: 5.203 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00131/0.42, allocations: 1.06 MB / 0.5709 GB, free: 4.141 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001536/0.4215, allocations: 1.019 MB / 0.5719 GB, free: 3.117 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003798/0.4219, allocations: 224 kB / 0.5722 GB, free: 2.898 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004746/0.4266, allocations: 1.724 MB / 0.5738 GB, free: 1.172 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006239/0.4272, allocations: 0.5024 MB / 0.5743 GB, free: 0.668 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001221/0.4285, allocations: 0.9221 MB / 0.5752 GB, free: 15.74 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007965/0.4364, allocations: 4.334 MB / 0.5795 GB, free: 11.39 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.4364, allocations: 0 / 0.5795 GB, free: 11.39 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.4364, allocations: 0 / 0.5795 GB, free: 11.39 MB / 430.1 MB Notification: Performance of Transformations before backend: time 4.82e-05/0.4365, allocations: 0 / 0.5795 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.004696/0.4412, allocations: 2.481 MB / 0.5819 GB, free: 8.867 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.214e-05/0.4412, allocations: 8.031 kB / 0.5819 GB, free: 8.859 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003412/0.4416, allocations: 278.9 kB / 0.5822 GB, free: 8.578 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001696/0.4433, allocations: 447 kB / 0.5826 GB, free: 8.141 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002235/0.4455, allocations: 1.051 MB / 0.5836 GB, free: 7.062 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002018/0.4457, allocations: 203.5 kB / 0.5838 GB, free: 6.852 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003344/0.446, allocations: 200 kB / 0.584 GB, free: 6.656 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003916/0.4499, allocations: 2.164 MB / 0.5861 GB, free: 4.422 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.569e-05/0.45, allocations: 4 kB / 0.5861 GB, free: 4.418 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001848/0.4502, allocations: 84 kB / 0.5862 GB, free: 4.336 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.646e-05/0.4502, allocations: 48 kB / 0.5862 GB, free: 4.289 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003924/0.4541, allocations: 2.218 MB / 0.5884 GB, free: 2.066 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.01103/0.4652, allocations: 6.105 MB / 0.5944 GB, free: 11.78 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002775/0.4679, allocations: 1.489 MB / 0.5958 GB, free: 10.27 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009116/0.4689, allocations: 0.5332 MB / 0.5963 GB, free: 9.727 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008079/0.4769, allocations: 3.319 MB / 0.5996 GB, free: 6.383 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.094e-05/0.477, allocations: 47.5 kB / 0.5996 GB, free: 6.328 MB / 446.1 MB Notification: Performance of pre-optimization done (n=88): time 3.206e-06/0.477, allocations: 0 / 0.5996 GB, free: 6.328 MB / 446.1 MB Notification: Performance of matching and sorting (n=106): time 0.01851/0.4955, allocations: 4.673 MB / 0.6042 GB, free: 1.625 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.749e-05/0.4956, allocations: 119.8 kB / 0.6043 GB, free: 1.484 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00125/0.4968, allocations: 0.9583 MB / 0.6052 GB, free: 0.5078 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001115/0.4969, allocations: 45.7 kB / 0.6053 GB, free: 468 kB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007222/0.4977, allocations: 0.9711 MB / 0.6062 GB, free: 15.47 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003829/0.498, allocations: 396.7 kB / 0.6066 GB, free: 15.08 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004883/0.4985, allocations: 347.4 kB / 0.6069 GB, free: 14.73 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001234/0.4987, allocations: 305.1 kB / 0.6072 GB, free: 14.43 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008969/0.4995, allocations: 455.8 kB / 0.6077 GB, free: 13.98 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001502/0.5011, allocations: 1.191 MB / 0.6088 GB, free: 12.44 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0026/0.5037, allocations: 1.794 MB / 0.6106 GB, free: 10.29 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.737e-05/0.5037, allocations: 8 kB / 0.6106 GB, free: 10.28 MB / 462.1 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.005466/0.5091, allocations: 2.065 MB / 0.6126 GB, free: 8.203 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.384e-05/0.5092, allocations: 16.59 kB / 0.6126 GB, free: 8.188 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.551e-05/0.5092, allocations: 28 kB / 0.6126 GB, free: 8.16 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002492/0.5117, allocations: 378.3 kB / 0.613 GB, free: 7.781 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001929/0.5136, allocations: 447.3 kB / 0.6134 GB, free: 7.344 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005928/0.5196, allocations: 3.862 MB / 0.6172 GB, free: 3.223 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001344/0.5209, allocations: 87.92 kB / 0.6173 GB, free: 3.137 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002149/0.5211, allocations: 104 kB / 0.6174 GB, free: 3.035 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.0007472/0.5219, allocations: 385 kB / 0.6178 GB, free: 2.648 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003434/0.5222, allocations: 127.2 kB / 0.6179 GB, free: 2.523 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005068/0.5273, allocations: 1.61 MB / 0.6194 GB, free: 0.8945 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.626e-05/0.5273, allocations: 12 kB / 0.6195 GB, free: 0.8828 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.5273, allocations: 3.938 kB / 0.6195 GB, free: 0.8789 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.689e-05/0.5273, allocations: 7.969 kB / 0.6195 GB, free: 0.8711 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002454/0.5298, allocations: 1.32 MB / 0.6208 GB, free: 15.48 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.112e-06/0.5298, allocations: 0 / 0.6208 GB, free: 15.48 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001313/0.5311, allocations: 248 kB / 0.621 GB, free: 15.23 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002409/0.5335, allocations: 353.9 kB / 0.6213 GB, free: 14.88 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001454/0.5336, allocations: 43.98 kB / 0.6214 GB, free: 14.84 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005307/0.5389, allocations: 3.755 MB / 0.625 GB, free: 10.82 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.23e-06/0.5389, allocations: 4 kB / 0.625 GB, free: 10.82 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00542/0.5444, allocations: 2.212 MB / 0.6272 GB, free: 8.551 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003287/0.5447, allocations: 127 kB / 0.6273 GB, free: 8.426 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001682/0.5449, allocations: 28 kB / 0.6274 GB, free: 8.398 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007024/0.5456, allocations: 32 kB / 0.6274 GB, free: 8.367 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002242/0.5458, allocations: 108.8 kB / 0.6275 GB, free: 8.262 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000109/0.5459, allocations: 51.98 kB / 0.6275 GB, free: 8.211 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0008632/0.5468, allocations: 0.5698 MB / 0.6281 GB, free: 7.633 MB / 478.1 MB Notification: Performance of sort global known variables: time 7e-08/0.5468, allocations: 0 / 0.6281 GB, free: 7.633 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002196/0.549, allocations: 0.7327 MB / 0.6288 GB, free: 6.898 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.006928/0.5559, allocations: 3.378 MB / 0.6321 GB, free: 3.449 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.002966/0.5589, allocations: 1.46 MB / 0.6335 GB, free: 1.973 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.811e-06/0.5589, allocations: 8.188 kB / 0.6335 GB, free: 1.965 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00146/0.5603, allocations: 0.7838 MB / 0.6343 GB, free: 1.152 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001428/0.5617, allocations: 254.5 kB / 0.6346 GB, free: 0.9102 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02335/0.5851, allocations: 12.16 MB / 0.6464 GB, free: 3.797 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008586/0.586, allocations: 0.6724 MB / 0.6471 GB, free: 3.09 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0013/0.5873, allocations: 346.5 kB / 0.6474 GB, free: 2.746 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001139/0.5884, allocations: 0.7491 MB / 0.6481 GB, free: 1.996 MB / 494.1 MB Notification: Performance of SimCode: time 1.313e-06/0.5884, allocations: 0 / 0.6481 GB, free: 1.996 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0889/0.6773, allocations: 39.51 MB / 0.6867 GB, free: 10.81 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.55/15.23, allocations: 10.56 kB / 0.6867 GB, free: 10.8 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.965078728739172] Failed to read output from testmodel.py, exit status != 0: 15.370213443879038 15.38657643 14.946794123 Calling exit ...