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.0009455/0.0009455, allocations: 72.45 kB / 19.17 MB, free: 0.7344 MB / 13.93 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.001735/0.001735, allocations: 173.9 kB / 22.46 MB, free: 2.09 MB / 18.57 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 0.8647/0.8647, allocations: 177.1 MB / 202.8 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] 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.07677/0.07677, allocations: 17.45 MB / 276.6 MB, free: 11.75 MB / 266.7 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: Performance of FrontEnd - loaded program: time 1.763e-06/1.763e-06, allocations: 0 / 411.6 MB, free: 12.46 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.964e-05/2.14e-05, allocations: 7.312 kB / 411.6 MB, free: 12.45 MB / 330.7 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.02268/0.02271, allocations: 29.06 MB / 440.6 MB, free: 11.36 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.01423/0.03693, allocations: 15.8 MB / 456.4 MB, free: 13.02 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001275/0.03821, allocations: 23.81 kB / 456.5 MB, free: 12.99 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000971/0.03918, allocations: 449.2 kB / 456.9 MB, free: 12.64 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00267/0.04185, allocations: 1.357 MB / 458.3 MB, free: 11.27 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004889/0.04674, allocations: 2.648 MB / 460.9 MB, free: 8.609 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.001804/0.04854, allocations: 2.369 MB / 463.3 MB, free: 6.23 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001065/0.04961, allocations: 1.195 MB / 464.5 MB, free: 4.988 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001199/0.0508, allocations: 1.525 MB / 466 MB, free: 3.461 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009334/0.05174, allocations: 0.8844 MB / 466.9 MB, free: 2.574 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005013/0.05224, allocations: 224 kB / 467.1 MB, free: 2.355 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003769/0.05601, allocations: 1.743 MB / 468.8 MB, free: 0.6094 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005069/0.05651, allocations: 0.5139 MB / 469.4 MB, free: 96 kB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001183/0.0577, allocations: 0.7874 MB / 470.1 MB, free: 15.3 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007167/0.06486, allocations: 4.531 MB / 474.7 MB, free: 10.76 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.863e-06/0.06487, allocations: 0 / 474.7 MB, free: 10.76 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.06487, allocations: 0 / 474.7 MB, free: 10.76 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001146/0.06499, allocations: 0 / 474.7 MB, free: 10.76 MB / 378.7 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.003461/0.06845, allocations: 2.458 MB / 477.1 MB, free: 8.258 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.668e-05/0.0685, allocations: 12.03 kB / 477.1 MB, free: 8.246 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002262/0.06872, allocations: 278.9 kB / 477.4 MB, free: 7.965 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009431/0.06966, allocations: 435 kB / 477.8 MB, free: 7.539 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001227/0.07089, allocations: 1.054 MB / 478.9 MB, free: 6.453 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001316/0.07102, allocations: 207.8 kB / 479.1 MB, free: 6.238 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002051/0.07123, allocations: 200.3 kB / 479.3 MB, free: 6.043 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002253/0.07348, allocations: 2.156 MB / 481.4 MB, free: 3.816 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.756e-05/0.07351, allocations: 4 kB / 481.4 MB, free: 3.812 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001266/0.07364, allocations: 80 kB / 481.5 MB, free: 3.734 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.8e-05/0.07366, allocations: 51.94 kB / 481.6 MB, free: 3.684 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002458/0.07612, allocations: 2.214 MB / 483.8 MB, free: 1.465 MB / 378.7 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.00643/0.08255, allocations: 6.092 MB / 489.9 MB, free: 11.2 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001623/0.08417, allocations: 1.494 MB / 491.4 MB, free: 9.672 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000525/0.0847, allocations: 0.5218 MB / 491.9 MB, free: 9.137 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004184/0.08888, allocations: 3.327 MB / 495.2 MB, free: 5.785 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.004e-05/0.08891, allocations: 55.48 kB / 495.3 MB, free: 5.723 MB / 394.7 MB Notification: Performance of pre-optimization done (n=88): time 2.254e-06/0.08891, allocations: 4 kB / 495.3 MB, free: 5.719 MB / 394.7 MB Notification: Performance of matching and sorting (n=106): time 0.008776/0.09769, allocations: 4.677 MB / 500 MB, free: 1.012 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.425e-05/0.09775, allocations: 115.8 kB / 0.4884 GB, free: 0.875 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008212/0.09857, allocations: 0.966 MB / 0.4893 GB, free: 15.89 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.171e-05/0.09862, allocations: 41.7 kB / 0.4893 GB, free: 15.84 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003993/0.09902, allocations: 0.9516 MB / 0.4903 GB, free: 14.88 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002033/0.09922, allocations: 404.7 kB / 0.4907 GB, free: 14.48 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003233/0.09954, allocations: 347.4 kB / 0.491 GB, free: 14.14 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 6.114e-05/0.09961, allocations: 301.1 kB / 0.4913 GB, free: 13.84 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005778/0.1002, allocations: 455.7 kB / 0.4917 GB, free: 13.39 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008659/0.101, allocations: 1.195 MB / 0.4929 GB, free: 11.85 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001414/0.1025, allocations: 1.794 MB / 0.4946 GB, free: 9.703 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.2e-05/0.1025, allocations: 8 kB / 0.4946 GB, free: 9.695 MB / 410.7 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.002927/0.1054, allocations: 2.061 MB / 0.4966 GB, free: 7.613 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.753e-05/0.1054, allocations: 19.94 kB / 0.4967 GB, free: 7.594 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.988e-05/0.1054, allocations: 24 kB / 0.4967 GB, free: 7.57 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001127/0.1066, allocations: 382.7 kB / 0.4971 GB, free: 7.188 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000828/0.1074, allocations: 451.3 kB / 0.4975 GB, free: 6.746 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003226/0.1106, allocations: 3.839 MB / 0.5012 GB, free: 2.652 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007583/0.1114, allocations: 83.84 kB / 0.5013 GB, free: 2.57 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000113/0.1115, allocations: 108 kB / 0.5014 GB, free: 2.465 MB / 410.7 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.0005828/0.1121, allocations: 389 kB / 0.5018 GB, free: 2.074 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002041/0.1123, allocations: 127.2 kB / 0.5019 GB, free: 1.949 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002717/0.115, allocations: 1.614 MB / 0.5035 GB, free: 324 kB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.246e-06/0.115, allocations: 12 kB / 0.5035 GB, free: 312 kB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.459e-06/0.115, allocations: 3.938 kB / 0.5035 GB, free: 308 kB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.094e-05/0.115, allocations: 11.97 kB / 0.5035 GB, free: 296 kB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001594/0.1166, allocations: 1.302 MB / 0.5048 GB, free: 14.91 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.265e-06/0.1166, allocations: 8.062 kB / 0.5048 GB, free: 14.9 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000607/0.1172, allocations: 235.7 kB / 0.505 GB, free: 14.67 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001091/0.1183, allocations: 350 kB / 0.5053 GB, free: 14.32 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.417e-05/0.1184, allocations: 51.92 kB / 0.5054 GB, free: 14.27 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002714/0.1211, allocations: 3.766 MB / 0.5091 GB, free: 10.25 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.1211, allocations: 7.938 kB / 0.5091 GB, free: 10.24 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002917/0.124, allocations: 2.196 MB / 0.5112 GB, free: 7.988 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001992/0.1242, allocations: 127.1 kB / 0.5113 GB, free: 7.863 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.658e-05/0.1243, allocations: 28 kB / 0.5114 GB, free: 7.836 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003545/0.1247, allocations: 27.94 kB / 0.5114 GB, free: 7.809 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001464/0.1248, allocations: 108.8 kB / 0.5115 GB, free: 7.699 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.055e-05/0.1249, allocations: 51.98 kB / 0.5116 GB, free: 7.648 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0005045/0.1254, allocations: 0.5698 MB / 0.5121 GB, free: 7.07 MB / 426.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1254, allocations: 0 / 0.5121 GB, free: 7.07 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001638/0.127, allocations: 0.7289 MB / 0.5128 GB, free: 6.34 MB / 426.7 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.003865/0.1309, allocations: 3.412 MB / 0.5162 GB, free: 2.859 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002102/0.133, allocations: 1.455 MB / 0.5176 GB, free: 1.383 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.133, allocations: 0 / 0.5176 GB, free: 1.383 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00078/0.1338, allocations: 0.7785 MB / 0.5183 GB, free: 0.582 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009603/0.1347, allocations: 241.3 kB / 0.5186 GB, free: 356 kB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01293/0.1477, allocations: 12.02 MB / 0.5303 GB, free: 3.359 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004677/0.1481, allocations: 0.6762 MB / 0.531 GB, free: 2.645 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0007059/0.1488, allocations: 342.5 kB / 0.5313 GB, free: 2.305 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006545/0.1495, allocations: 0.7541 MB / 0.532 GB, free: 1.547 MB / 442.7 MB Notification: Performance of SimCode: time 1.363e-06/0.1495, allocations: 0 / 0.532 GB, free: 1.547 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05109/0.2006, allocations: 39.67 MB / 0.5708 GB, free: 10.18 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.5/8.701, allocations: 2.812 kB / 0.5708 GB, free: 10.18 MB / 490.7 MB " [Timeout remaining time 651] (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: 10.741814721375704] Failed to read output from testmodel.py, exit status != 0: 8.943281748332083 8.945435036 8.8788302 Calling exit ...