Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_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.001484/0.001484, allocations: 109.2 kB / 18.94 MB, free: 2.949 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.001665/0.001665, allocations: 219 kB / 22.26 MB, free: 5.125 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.339/1.339, allocations: 230.6 MB / 256 MB, free: 8 MB / 206.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo): time 0.1278/0.1278, allocations: 23.85 MB / 336.3 MB, free: 11.22 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/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_Chemical_Obsolete_Examples_WaterElectrolysis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.WaterElectrolysis,fileNamePrefix="Chemical_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.00191/0.00191, allocations: 67.89 kB / 471.2 MB, free: 7.703 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2703/0.2722, allocations: 59.85 MB / 0.5186 GB, free: 9.625 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/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 2.0.0/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.03558/0.3077, allocations: 29.78 MB / 0.5477 GB, free: 10.22 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02257/0.3303, allocations: 17.95 MB / 0.5652 GB, free: 9.699 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001459/0.3318, allocations: 27.81 kB / 0.5652 GB, free: 9.672 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001388/0.3332, allocations: 485.3 kB / 0.5657 GB, free: 9.305 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003981/0.3371, allocations: 1.332 MB / 0.567 GB, free: 8.164 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006712/0.3439, allocations: 2.575 MB / 0.5695 GB, free: 5.988 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003413/0.3473, allocations: 2.292 MB / 0.5717 GB, free: 3.684 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00149/0.3488, allocations: 1.211 MB / 0.5729 GB, free: 2.418 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001229/0.35, allocations: 1.056 MB / 0.5739 GB, free: 1.359 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001563/0.3515, allocations: 1.167 MB / 0.5751 GB, free: 192 kB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003364/0.3519, allocations: 224 kB / 0.5753 GB, free: 15.96 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005162/0.357, allocations: 1.825 MB / 0.5771 GB, free: 14.14 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006231/0.3577, allocations: 0.5102 MB / 0.5776 GB, free: 13.63 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001266/0.3589, allocations: 1.101 MB / 0.5786 GB, free: 12.52 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008385/0.3673, allocations: 4.334 MB / 0.5829 GB, free: 8.172 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.75e-06/0.3673, allocations: 0 / 0.5829 GB, free: 8.172 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.3673, allocations: 0 / 0.5829 GB, free: 8.172 MB / 430.1 MB Notification: Performance of Transformations before backend: time 4.71e-05/0.3674, allocations: 0 / 0.5829 GB, free: 8.172 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.00454/0.3719, allocations: 2.481 MB / 0.5853 GB, free: 5.648 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.945e-05/0.372, allocations: 8.031 kB / 0.5853 GB, free: 5.641 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003065/0.3723, allocations: 282.8 kB / 0.5856 GB, free: 5.355 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001563/0.3738, allocations: 443 kB / 0.586 GB, free: 4.922 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002008/0.3758, allocations: 1.055 MB / 0.587 GB, free: 3.84 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001829/0.376, allocations: 207.5 kB / 0.5872 GB, free: 3.625 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003112/0.3763, allocations: 203.9 kB / 0.5874 GB, free: 3.426 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003504/0.3798, allocations: 2.131 MB / 0.5895 GB, free: 1.23 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.354e-05/0.3799, allocations: 7.984 kB / 0.5895 GB, free: 1.223 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001786/0.38, allocations: 80 kB / 0.5896 GB, free: 1.145 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.302e-05/0.3801, allocations: 52 kB / 0.5896 GB, free: 1.094 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003752/0.3838, allocations: 2.233 MB / 0.5918 GB, free: 14.86 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.01079/0.3946, allocations: 7.26 MB / 0.5989 GB, free: 7.238 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002664/0.3973, allocations: 1.524 MB / 0.6004 GB, free: 5.695 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008801/0.3982, allocations: 0.5371 MB / 0.6009 GB, free: 5.145 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007644/0.4058, allocations: 3.471 MB / 0.6043 GB, free: 1.648 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.009e-05/0.4059, allocations: 47.5 kB / 0.6044 GB, free: 1.594 MB / 446.1 MB Notification: Performance of pre-optimization done (n=88): time 2.394e-06/0.4059, allocations: 0 / 0.6044 GB, free: 1.594 MB / 446.1 MB Notification: Performance of matching and sorting (n=106): time 0.01841/0.4243, allocations: 4.677 MB / 0.6089 GB, free: 12.88 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.633e-05/0.4243, allocations: 115.8 kB / 0.609 GB, free: 12.75 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001179/0.4255, allocations: 0.9198 MB / 0.6099 GB, free: 11.81 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001145/0.4256, allocations: 45.7 kB / 0.61 GB, free: 11.76 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006815/0.4263, allocations: 0.9594 MB / 0.6109 GB, free: 10.79 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003506/0.4267, allocations: 400.6 kB / 0.6113 GB, free: 10.39 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004706/0.4271, allocations: 347.4 kB / 0.6116 GB, free: 10.04 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000122/0.4273, allocations: 305.1 kB / 0.6119 GB, free: 9.742 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008163/0.4281, allocations: 463.7 kB / 0.6124 GB, free: 9.289 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001396/0.4295, allocations: 1.195 MB / 0.6135 GB, free: 7.742 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002405/0.4319, allocations: 1.798 MB / 0.6153 GB, free: 5.59 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.075e-05/0.4319, allocations: 4 kB / 0.6153 GB, free: 5.586 MB / 462.1 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.005331/0.4372, allocations: 2.069 MB / 0.6173 GB, free: 3.5 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.146e-05/0.4373, allocations: 16.59 kB / 0.6173 GB, free: 3.484 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.457e-05/0.4373, allocations: 24 kB / 0.6173 GB, free: 3.461 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002628/0.4399, allocations: 382 kB / 0.6177 GB, free: 3.078 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001776/0.4417, allocations: 455.3 kB / 0.6181 GB, free: 2.633 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005559/0.4473, allocations: 3.876 MB / 0.6219 GB, free: 14.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001198/0.4485, allocations: 87.73 kB / 0.622 GB, free: 14.41 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001691/0.4486, allocations: 112 kB / 0.6221 GB, free: 14.3 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.0006508/0.4493, allocations: 377.6 kB / 0.6225 GB, free: 13.93 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002658/0.4495, allocations: 131.2 kB / 0.6226 GB, free: 13.8 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004821/0.4544, allocations: 1.614 MB / 0.6242 GB, free: 12.17 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.474e-05/0.4544, allocations: 12 kB / 0.6242 GB, free: 12.16 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.4544, allocations: 4 kB / 0.6242 GB, free: 12.15 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.482e-05/0.4544, allocations: 8.109 kB / 0.6242 GB, free: 12.14 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002242/0.4566, allocations: 1.449 MB / 0.6256 GB, free: 10.62 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.404e-06/0.4566, allocations: 7.938 kB / 0.6256 GB, free: 10.61 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001217/0.4579, allocations: 248 kB / 0.6259 GB, free: 10.37 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002472/0.4603, allocations: 346.2 kB / 0.6262 GB, free: 10.02 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001353/0.4605, allocations: 47.92 kB / 0.6262 GB, free: 9.977 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005244/0.4657, allocations: 3.79 MB / 0.6299 GB, free: 5.93 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.504e-06/0.4657, allocations: 7.938 kB / 0.6299 GB, free: 5.922 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005328/0.471, allocations: 2.208 MB / 0.6321 GB, free: 3.652 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003509/0.4714, allocations: 123 kB / 0.6322 GB, free: 3.531 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001721/0.4716, allocations: 31.94 kB / 0.6323 GB, free: 3.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006708/0.4722, allocations: 28 kB / 0.6323 GB, free: 3.473 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002052/0.4724, allocations: 100.8 kB / 0.6324 GB, free: 3.375 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001053/0.4726, allocations: 55.91 kB / 0.6324 GB, free: 3.32 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0007731/0.4733, allocations: 0.5776 MB / 0.633 GB, free: 2.734 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4733, allocations: 0 / 0.633 GB, free: 2.734 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002231/0.4756, allocations: 0.725 MB / 0.6337 GB, free: 2.008 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.006789/0.4823, allocations: 3.393 MB / 0.637 GB, free: 14.55 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.002755/0.4851, allocations: 1.474 MB / 0.6385 GB, free: 13.05 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.14e-06/0.4851, allocations: 0 / 0.6385 GB, free: 13.05 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001369/0.4865, allocations: 0.7785 MB / 0.6392 GB, free: 12.25 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001415/0.4879, allocations: 235.1 kB / 0.6394 GB, free: 12.03 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02166/0.5096, allocations: 12.19 MB / 0.6513 GB, free: 14.89 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009663/0.5105, allocations: 1.259 MB / 0.6526 GB, free: 13.6 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001088/0.5116, allocations: 338.5 kB / 0.6529 GB, free: 13.26 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009561/0.5126, allocations: 0.7413 MB / 0.6536 GB, free: 12.52 MB / 0.4981 GB Notification: Performance of SimCode: time 1.072e-06/0.5126, allocations: 0 / 0.6536 GB, free: 12.52 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09147/0.604, allocations: 39.79 MB / 0.6925 GB, free: 4.934 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.89/21.49, allocations: 7.547 kB / 0.6925 GB, free: 4.93 MB / 0.5294 GB " [Timeout remaining time 638] (rm -f Chemical_Chemical.Obsolete.Examples.WaterElectrolysis.pipe ; mkfifo Chemical_Chemical.Obsolete.Examples.WaterElectrolysis.pipe ; head -c 1048576 < Chemical_Chemical.Obsolete.Examples.WaterElectrolysis.pipe >> ../files/Chemical_Chemical.Obsolete.Examples.WaterElectrolysis.sim & python3 -m fmpy simulate --output-file Chemical_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_Chemical_Obsolete_Examples_WaterElectrolysis.fmu > Chemical_Chemical.Obsolete.Examples.WaterElectrolysis.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 24.082821736003098] Failed to read output from testmodel.py, exit status != 0: 21.64190240100288 21.656648845 21.286294823 Calling exit ...