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.001288/0.001288, allocations: 116 kB / 17.16 MB, free: 5.863 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.00213/0.00213, allocations: 209.5 kB / 20.13 MB, free: 2.922 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.479/1.479, allocations: 230.6 MB / 253.5 MB, free: 15.08 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.1395/0.1395, allocations: 23.89 MB / 333.4 MB, free: 1.262 MB / 254.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.002171/0.002171, allocations: 62.64 kB / 466.7 MB, free: 30.7 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1117/0.1139, allocations: 59.84 MB / 0.5142 GB, free: 12.92 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.04622/0.1601, allocations: 29.56 MB / 0.5431 GB, free: 15.4 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.02619/0.1863, allocations: 17.91 MB / 0.5606 GB, free: 13.43 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001549/0.1879, allocations: 31.75 kB / 0.5606 GB, free: 13.39 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00172/0.1896, allocations: 480.2 kB / 0.5611 GB, free: 12.92 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004526/0.1941, allocations: 1.322 MB / 0.5623 GB, free: 11.59 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007934/0.2021, allocations: 2.548 MB / 0.5648 GB, free: 9.027 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.00399/0.206, allocations: 2.288 MB / 0.5671 GB, free: 6.727 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002361/0.2084, allocations: 1.226 MB / 0.5683 GB, free: 5.445 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002144/0.2106, allocations: 1.056 MB / 0.5693 GB, free: 4.387 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002197/0.2128, allocations: 1.164 MB / 0.5704 GB, free: 3.219 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007573/0.2135, allocations: 224 kB / 0.5706 GB, free: 3 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005906/0.2194, allocations: 1.837 MB / 0.5724 GB, free: 1.16 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008226/0.2202, allocations: 0.4946 MB / 0.5729 GB, free: 0.6641 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001722/0.222, allocations: 1.101 MB / 0.574 GB, free: 15.56 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009006/0.231, allocations: 4.346 MB / 0.5782 GB, free: 11.2 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.231, allocations: 0 / 0.5782 GB, free: 11.2 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.231, allocations: 0 / 0.5782 GB, free: 11.2 MB / 446.1 MB Notification: Performance of Transformations before backend: time 8.312e-05/0.2311, allocations: 0 / 0.5782 GB, free: 11.2 MB / 446.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.005678/0.2367, allocations: 2.553 MB / 0.5807 GB, free: 8.582 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.446e-05/0.2368, allocations: 8.031 kB / 0.5807 GB, free: 8.574 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 6.853e-05/0.2368, allocations: 52.12 kB / 0.5808 GB, free: 8.523 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004542/0.2373, allocations: 274.9 kB / 0.5811 GB, free: 8.246 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001833/0.2391, allocations: 447 kB / 0.5815 GB, free: 7.809 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002194/0.2413, allocations: 1.131 MB / 0.5826 GB, free: 6.633 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001884/0.2415, allocations: 177.6 kB / 0.5828 GB, free: 6.453 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003812/0.2419, allocations: 208 kB / 0.583 GB, free: 6.25 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004392/0.2463, allocations: 2.131 MB / 0.585 GB, free: 4.055 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.108e-05/0.2463, allocations: 0 / 0.585 GB, free: 4.055 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002272/0.2466, allocations: 80 kB / 0.5851 GB, free: 3.977 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.595e-05/0.2466, allocations: 48 kB / 0.5852 GB, free: 3.93 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004072/0.2507, allocations: 2.237 MB / 0.5873 GB, free: 1.688 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.2441/0.4947, allocations: 7.372 MB / 0.5945 GB, free: 60.09 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002731/0.4975, allocations: 1.657 MB / 0.5962 GB, free: 59.44 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008771/0.4984, allocations: 0.5225 MB / 0.5967 GB, free: 59.22 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008083/0.5064, allocations: 6.404 MB / 0.6029 GB, free: 54.23 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.49e-05/0.5065, allocations: 41.38 kB / 0.603 GB, free: 54.18 MB / 446.1 MB Notification: Performance of pre-optimization done (n=88): time 2.795e-06/0.5065, allocations: 2.688 kB / 0.603 GB, free: 54.18 MB / 446.1 MB Notification: Performance of matching and sorting (n=106): time 0.01877/0.5252, allocations: 4.912 MB / 0.6078 GB, free: 52.02 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.538e-05/0.5253, allocations: 116.1 kB / 0.6079 GB, free: 51.9 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001443/0.5267, allocations: 0.9202 MB / 0.6088 GB, free: 51.52 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001784/0.5269, allocations: 41.27 kB / 0.6088 GB, free: 51.47 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005344/0.5275, allocations: 0.9656 MB / 0.6098 GB, free: 50.84 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003944/0.5279, allocations: 402.5 kB / 0.6101 GB, free: 50.58 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005526/0.5284, allocations: 347.3 kB / 0.6105 GB, free: 50.41 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.594e-05/0.5285, allocations: 304.8 kB / 0.6108 GB, free: 50.12 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008398/0.5293, allocations: 453.5 kB / 0.6112 GB, free: 49.96 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001227/0.5305, allocations: 1.192 MB / 0.6124 GB, free: 48.82 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002207/0.5327, allocations: 1.803 MB / 0.6141 GB, free: 47.34 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.572e-05/0.5328, allocations: 11.88 kB / 0.6141 GB, free: 47.34 MB / 446.1 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.00511/0.5379, allocations: 2.061 MB / 0.6161 GB, free: 46.54 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.269e-05/0.5379, allocations: 16.5 kB / 0.6162 GB, free: 46.54 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.37e-05/0.5379, allocations: 23.62 kB / 0.6162 GB, free: 46.54 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002365/0.5403, allocations: 385.1 kB / 0.6165 GB, free: 46.41 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001686/0.542, allocations: 452.2 kB / 0.617 GB, free: 46.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004264/0.5463, allocations: 4.072 MB / 0.621 GB, free: 42.46 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001331/0.5476, allocations: 85.42 kB / 0.621 GB, free: 42.43 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001769/0.5478, allocations: 106.6 kB / 0.6211 GB, free: 42.41 MB / 446.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.0006283/0.5484, allocations: 380.3 kB / 0.6215 GB, free: 42.13 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002781/0.5487, allocations: 131.8 kB / 0.6216 GB, free: 42.06 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004483/0.5532, allocations: 1.603 MB / 0.6232 GB, free: 41.23 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.088e-05/0.5532, allocations: 14.47 kB / 0.6232 GB, free: 41.23 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.5532, allocations: 3.969 kB / 0.6232 GB, free: 41.23 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.656e-05/0.5532, allocations: 7.969 kB / 0.6232 GB, free: 41.23 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00204/0.5552, allocations: 1.483 MB / 0.6247 GB, free: 40.18 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.802e-06/0.5552, allocations: 10.25 kB / 0.6247 GB, free: 40.17 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001209/0.5564, allocations: 231.2 kB / 0.6249 GB, free: 40.12 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002283/0.5587, allocations: 351.7 kB / 0.6252 GB, free: 39.96 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001099/0.5588, allocations: 50.36 kB / 0.6253 GB, free: 39.93 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004042/0.5629, allocations: 4.004 MB / 0.6292 GB, free: 36.13 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.5629, allocations: 3.938 kB / 0.6292 GB, free: 36.13 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004443/0.5673, allocations: 2.208 MB / 0.6313 GB, free: 34.8 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003884/0.5677, allocations: 198.3 kB / 0.6315 GB, free: 34.62 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001518/0.5679, allocations: 22.91 kB / 0.6316 GB, free: 34.61 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000681/0.5686, allocations: 36.7 kB / 0.6316 GB, free: 34.59 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002142/0.5688, allocations: 102.7 kB / 0.6317 GB, free: 34.54 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.671e-05/0.5689, allocations: 49.33 kB / 0.6317 GB, free: 34.52 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0006358/0.5695, allocations: 0.5756 MB / 0.6323 GB, free: 34.19 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5695, allocations: 0 / 0.6323 GB, free: 34.19 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002349/0.5718, allocations: 0.7327 MB / 0.633 GB, free: 34.02 MB / 446.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.005675/0.5775, allocations: 3.382 MB / 0.6363 GB, free: 30.8 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002379/0.5799, allocations: 1.469 MB / 0.6378 GB, free: 29.32 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.61e-06/0.5799, allocations: 0 / 0.6378 GB, free: 29.32 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00105/0.5809, allocations: 0.7708 MB / 0.6385 GB, free: 28.53 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001447/0.5824, allocations: 240.6 kB / 0.6387 GB, free: 28.33 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01763/0.6, allocations: 12.18 MB / 0.6506 GB, free: 15.46 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005931/0.6006, allocations: 1.26 MB / 0.6519 GB, free: 14.19 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001113/0.6017, allocations: 338.6 kB / 0.6522 GB, free: 13.97 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007542/0.6025, allocations: 0.7466 MB / 0.6529 GB, free: 13.23 MB / 446.1 MB Notification: Performance of SimCode: time 9.72e-07/0.6025, allocations: 0 / 0.6529 GB, free: 13.23 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07841/0.6809, allocations: 38.46 MB / 0.6905 GB, free: 7.422 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 21.26/21.94, allocations: 14.8 kB / 0.6905 GB, free: 7.41 MB / 478.1 MB " [Timeout remaining time 638] (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: 24.96927493799012] Failed to read output from testmodel.py, exit status != 0: 22.110364172956906 22.124057912 21.889979947 Calling exit ...