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.001424/0.001424, 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.001515/0.001515, allocations: 213.3 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.467/1.467, allocations: 230.6 MB / 256 MB, free: 7.781 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.1373/0.1373, allocations: 24 MB / 336.4 MB, free: 10.82 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.002349/0.002349, allocations: 63.91 kB / 471.3 MB, free: 7.332 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3028/0.3052, allocations: 59.89 MB / 0.5187 GB, free: 9.52 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.07246/0.3776, allocations: 28.81 MB / 0.5469 GB, free: 10.79 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02272/0.4003, allocations: 15.78 MB / 0.5623 GB, free: 12.44 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001582/0.4019, allocations: 27.75 kB / 0.5623 GB, free: 12.41 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001718/0.4036, allocations: 441.6 kB / 0.5627 GB, free: 12.09 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004512/0.4081, allocations: 1.298 MB / 0.564 GB, free: 10.98 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007656/0.4158, allocations: 2.579 MB / 0.5665 GB, free: 8.758 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.004217/0.42, allocations: 2.295 MB / 0.5687 GB, free: 6.449 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001981/0.422, allocations: 1.187 MB / 0.5699 GB, free: 5.207 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001934/0.4239, allocations: 1.056 MB / 0.5709 GB, free: 4.148 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002076/0.426, allocations: 1.023 MB / 0.5719 GB, free: 3.121 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007023/0.4267, allocations: 224 kB / 0.5722 GB, free: 2.902 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005633/0.4323, allocations: 1.724 MB / 0.5738 GB, free: 1.176 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000914/0.4333, allocations: 0.4985 MB / 0.5743 GB, free: 0.6758 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001738/0.435, allocations: 0.922 MB / 0.5752 GB, free: 15.75 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01022/0.4452, allocations: 4.334 MB / 0.5795 GB, free: 11.4 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.063e-06/0.4452, allocations: 4 kB / 0.5795 GB, free: 11.39 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.983e-06/0.4452, allocations: 0 / 0.5795 GB, free: 11.39 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001169/0.4453, 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.005875/0.4512, allocations: 2.477 MB / 0.5819 GB, free: 8.875 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.313e-05/0.4513, allocations: 8.031 kB / 0.5819 GB, free: 8.867 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003782/0.4517, allocations: 278.9 kB / 0.5822 GB, free: 8.586 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001754/0.4534, allocations: 443 kB / 0.5826 GB, free: 8.152 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002321/0.4557, allocations: 1.051 MB / 0.5836 GB, free: 7.074 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002205/0.4559, allocations: 215.4 kB / 0.5838 GB, free: 6.852 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003441/0.4563, allocations: 204 kB / 0.584 GB, free: 6.652 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003614/0.4599, allocations: 2.16 MB / 0.5861 GB, free: 4.422 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.277e-05/0.4599, allocations: 3.938 kB / 0.5861 GB, free: 4.418 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001803/0.4601, allocations: 84 kB / 0.5862 GB, free: 4.336 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.246e-05/0.4602, allocations: 51.94 kB / 0.5862 GB, free: 4.285 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003735/0.4639, allocations: 2.21 MB / 0.5884 GB, free: 2.07 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.01057/0.4745, allocations: 6.101 MB / 0.5944 GB, free: 11.79 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002817/0.4773, allocations: 1.492 MB / 0.5958 GB, free: 10.28 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009638/0.4783, allocations: 0.5293 MB / 0.5963 GB, free: 9.738 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00761/0.4859, allocations: 3.319 MB / 0.5996 GB, free: 6.395 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.315e-05/0.4859, allocations: 39.56 kB / 0.5996 GB, free: 6.348 MB / 446.1 MB Notification: Performance of pre-optimization done (n=88): time 2.665e-06/0.4859, allocations: 0 / 0.5996 GB, free: 6.348 MB / 446.1 MB Notification: Performance of matching and sorting (n=106): time 0.0182/0.5041, allocations: 4.68 MB / 0.6042 GB, free: 1.637 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.834e-05/0.5042, allocations: 115.8 kB / 0.6043 GB, free: 1.5 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001258/0.5054, allocations: 0.9622 MB / 0.6052 GB, free: 0.5195 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001227/0.5056, allocations: 41.7 kB / 0.6053 GB, free: 484 kB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000708/0.5063, allocations: 0.9673 MB / 0.6062 GB, free: 15.49 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000386/0.5067, allocations: 400.7 kB / 0.6066 GB, free: 15.09 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000474/0.5071, allocations: 347.4 kB / 0.6069 GB, free: 14.75 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001392/0.5073, allocations: 305.1 kB / 0.6072 GB, free: 14.45 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008582/0.5081, allocations: 459.8 kB / 0.6077 GB, free: 13.99 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00157/0.5097, allocations: 1.195 MB / 0.6088 GB, free: 12.45 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002647/0.5124, allocations: 1.786 MB / 0.6106 GB, free: 10.3 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.482e-05/0.5124, allocations: 12 kB / 0.6106 GB, free: 10.29 MB / 462.1 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.005377/0.5177, allocations: 2.073 MB / 0.6126 GB, free: 8.207 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.295e-05/0.5178, allocations: 16 kB / 0.6126 GB, free: 8.191 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.254e-05/0.5178, allocations: 24 kB / 0.6126 GB, free: 8.168 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002452/0.5203, allocations: 382.2 kB / 0.613 GB, free: 7.785 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001813/0.5221, allocations: 443.3 kB / 0.6134 GB, free: 7.352 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005852/0.5279, allocations: 3.858 MB / 0.6172 GB, free: 3.234 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001259/0.5292, allocations: 87.97 kB / 0.6173 GB, free: 3.148 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001914/0.5294, allocations: 104 kB / 0.6174 GB, free: 3.047 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.0007004/0.5301, allocations: 389 kB / 0.6178 GB, free: 2.656 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002988/0.5304, allocations: 127.2 kB / 0.6179 GB, free: 2.531 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004768/0.5351, allocations: 1.614 MB / 0.6195 GB, free: 0.8984 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.368e-05/0.5352, allocations: 12 kB / 0.6195 GB, free: 0.8867 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.7e-06/0.5352, allocations: 4 kB / 0.6195 GB, free: 0.8828 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.382e-05/0.5352, allocations: 4.125 kB / 0.6195 GB, free: 0.8789 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002331/0.5375, allocations: 1.324 MB / 0.6208 GB, free: 15.48 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.382e-06/0.5375, allocations: 0 / 0.6208 GB, free: 15.48 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001262/0.5388, allocations: 244 kB / 0.621 GB, free: 15.24 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002363/0.5411, allocations: 353.9 kB / 0.6213 GB, free: 14.89 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001405/0.5413, allocations: 43.98 kB / 0.6214 GB, free: 14.84 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005305/0.5466, allocations: 3.759 MB / 0.625 GB, free: 10.83 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.448e-06/0.5466, allocations: 4 kB / 0.625 GB, free: 10.82 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005266/0.5519, allocations: 2.208 MB / 0.6272 GB, free: 8.559 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003599/0.5522, allocations: 123 kB / 0.6273 GB, free: 8.438 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001752/0.5524, allocations: 32 kB / 0.6274 GB, free: 8.406 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006923/0.5531, allocations: 31.98 kB / 0.6274 GB, free: 8.375 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002079/0.5533, allocations: 104.7 kB / 0.6275 GB, free: 8.273 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001066/0.5534, allocations: 51.98 kB / 0.6275 GB, free: 8.223 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.000809/0.5542, allocations: 0.5737 MB / 0.6281 GB, free: 7.641 MB / 478.1 MB Notification: Performance of sort global known variables: time 8e-08/0.5542, allocations: 96 / 0.6281 GB, free: 7.641 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002345/0.5566, allocations: 0.7366 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.007156/0.5637, allocations: 3.383 MB / 0.6321 GB, free: 3.445 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.003091/0.5668, allocations: 1.468 MB / 0.6336 GB, free: 1.961 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.911e-06/0.5668, allocations: 0 / 0.6336 GB, free: 1.961 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001477/0.5683, allocations: 0.7735 MB / 0.6343 GB, free: 1.16 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001569/0.5699, allocations: 243.5 kB / 0.6345 GB, free: 0.9258 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02278/0.5926, allocations: 12.18 MB / 0.6464 GB, free: 3.797 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008276/0.5935, allocations: 0.6763 MB / 0.6471 GB, free: 3.086 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001226/0.5947, allocations: 342.5 kB / 0.6474 GB, free: 2.746 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001042/0.5957, allocations: 0.7452 MB / 0.6481 GB, free: 2 MB / 494.1 MB Notification: Performance of SimCode: time 1.333e-06/0.5957, allocations: 0 / 0.6481 GB, free: 2 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09226/0.688, allocations: 39.52 MB / 0.6867 GB, free: 10.81 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.73/15.42, allocations: 11.92 kB / 0.6867 GB, free: 10.8 MB / 0.5294 GB " [Timeout remaining time 644] (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 & python3 -m fmpy simulate --output-file Chemical_master_Chemical.Obsolete.Examples.WaterElectrolysis_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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: 18.249544002115726] Failed to read output from testmodel.py, exit status != 0: 15.567762587219477 15.584529269 15.136031538 Calling exit ...