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.001284/0.001284, allocations: 103.6 kB / 18.95 MB, free: 2.66 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.001367/0.001367, allocations: 218.8 kB / 22.24 MB, free: 5.254 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.384/1.384, allocations: 230.6 MB / 256 MB, free: 7.77 MB / 206.1 MB " [Timeout remaining time 178] 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.1316/0.1316, allocations: 23.88 MB / 336.3 MB, free: 10.96 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.001849/0.001849, allocations: 70.7 kB / 471.1 MB, free: 7.516 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3028/0.3047, allocations: 59.86 MB / 0.5185 GB, free: 9.5 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.07534/0.38, allocations: 28.72 MB / 0.5466 GB, free: 11.08 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02468/0.4047, allocations: 15.79 MB / 0.562 GB, free: 12.73 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002017/0.4067, allocations: 31.75 kB / 0.562 GB, free: 12.7 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00159/0.4083, allocations: 445.4 kB / 0.5624 GB, free: 12.37 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005448/0.4138, allocations: 1.298 MB / 0.5637 GB, free: 11.27 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008325/0.4221, allocations: 2.581 MB / 0.5662 GB, free: 9.062 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003901/0.426, allocations: 2.284 MB / 0.5685 GB, free: 6.766 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00182/0.4278, allocations: 1.222 MB / 0.5697 GB, free: 5.488 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001425/0.4292, allocations: 1.052 MB / 0.5707 GB, free: 4.434 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001723/0.4309, allocations: 1.164 MB / 0.5718 GB, free: 3.266 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004064/0.4314, allocations: 224 kB / 0.572 GB, free: 3.047 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005101/0.4365, allocations: 1.767 MB / 0.5738 GB, free: 1.277 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006282/0.4371, allocations: 0.5023 MB / 0.5743 GB, free: 0.7734 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001239/0.4383, allocations: 0.922 MB / 0.5752 GB, free: 15.84 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007737/0.4461, allocations: 4.342 MB / 0.5794 GB, free: 11.49 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.4461, allocations: 4 kB / 0.5794 GB, free: 11.48 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.4461, allocations: 0 / 0.5794 GB, free: 11.48 MB / 430.1 MB Notification: Performance of Transformations before backend: time 3.673e-05/0.4461, allocations: 0 / 0.5794 GB, free: 11.48 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.004175/0.4503, allocations: 2.47 MB / 0.5818 GB, free: 8.973 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.108e-05/0.4503, allocations: 16.03 kB / 0.5818 GB, free: 8.957 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002992/0.4506, allocations: 274.9 kB / 0.5821 GB, free: 8.68 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00154/0.4522, allocations: 443 kB / 0.5825 GB, free: 8.246 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001947/0.4541, allocations: 1.055 MB / 0.5835 GB, free: 7.164 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002146/0.4543, allocations: 207.5 kB / 0.5837 GB, free: 6.949 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003014/0.4546, allocations: 200 kB / 0.5839 GB, free: 6.754 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003379/0.458, allocations: 2.157 MB / 0.586 GB, free: 4.527 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.079e-05/0.458, allocations: 4 kB / 0.586 GB, free: 4.523 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001737/0.4582, allocations: 80 kB / 0.5861 GB, free: 4.445 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.142e-05/0.4583, allocations: 48 kB / 0.5862 GB, free: 4.398 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00369/0.4619, allocations: 2.222 MB / 0.5883 GB, free: 2.172 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.01007/0.472, allocations: 6.097 MB / 0.5943 GB, free: 11.89 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002721/0.4747, allocations: 1.516 MB / 0.5958 GB, free: 10.36 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000902/0.4756, allocations: 0.5254 MB / 0.5963 GB, free: 9.82 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007676/0.4833, allocations: 3.307 MB / 0.5995 GB, free: 6.488 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.984e-05/0.4834, allocations: 47.5 kB / 0.5996 GB, free: 6.434 MB / 446.1 MB Notification: Performance of pre-optimization done (n=88): time 4.368e-06/0.4834, allocations: 3.984 kB / 0.5996 GB, free: 6.43 MB / 446.1 MB Notification: Performance of matching and sorting (n=106): time 0.01654/0.4999, allocations: 4.679 MB / 0.6041 GB, free: 1.723 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.334e-05/0.5, allocations: 119.8 kB / 0.6042 GB, free: 1.582 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001267/0.5012, allocations: 0.9621 MB / 0.6052 GB, free: 0.6016 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001054/0.5014, allocations: 41.7 kB / 0.6052 GB, free: 0.5547 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007043/0.5021, allocations: 0.9635 MB / 0.6062 GB, free: 15.57 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003625/0.5024, allocations: 396.7 kB / 0.6065 GB, free: 15.18 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004781/0.5029, allocations: 351.4 kB / 0.6069 GB, free: 14.83 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000127/0.503, allocations: 301.2 kB / 0.6072 GB, free: 14.54 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007891/0.5038, allocations: 455.8 kB / 0.6076 GB, free: 14.09 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001442/0.5053, allocations: 1.202 MB / 0.6088 GB, free: 12.53 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002378/0.5076, allocations: 1.786 MB / 0.6105 GB, free: 10.39 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.124e-05/0.5076, allocations: 4 kB / 0.6105 GB, free: 10.39 MB / 462.1 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.004931/0.5126, allocations: 2.069 MB / 0.6125 GB, free: 8.305 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.573e-05/0.5126, allocations: 16 kB / 0.6126 GB, free: 8.289 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.704e-05/0.5126, allocations: 27.94 kB / 0.6126 GB, free: 8.262 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00222/0.5149, allocations: 382.1 kB / 0.6129 GB, free: 7.879 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00168/0.5165, allocations: 447.3 kB / 0.6134 GB, free: 7.441 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005092/0.5216, allocations: 3.865 MB / 0.6171 GB, free: 3.316 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001191/0.5228, allocations: 83.86 kB / 0.6172 GB, free: 3.234 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000177/0.523, allocations: 108 kB / 0.6173 GB, free: 3.129 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.0006797/0.5237, allocations: 383.6 kB / 0.6177 GB, free: 2.746 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002796/0.524, allocations: 135.2 kB / 0.6178 GB, free: 2.613 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004494/0.5285, allocations: 1.606 MB / 0.6194 GB, free: 0.9922 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.248e-05/0.5285, allocations: 16 kB / 0.6194 GB, free: 0.9766 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.5285, allocations: 0 / 0.6194 GB, free: 0.9766 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.645e-05/0.5285, allocations: 11.97 kB / 0.6194 GB, free: 0.9648 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002104/0.5306, allocations: 1.308 MB / 0.6207 GB, free: 15.58 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.013e-06/0.5306, allocations: 4 kB / 0.6207 GB, free: 15.58 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001175/0.5318, allocations: 240 kB / 0.6209 GB, free: 15.34 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002098/0.5339, allocations: 350.1 kB / 0.6213 GB, free: 14.99 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001102/0.534, allocations: 47.98 kB / 0.6213 GB, free: 14.95 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004855/0.5388, allocations: 3.762 MB / 0.625 GB, free: 10.93 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/0.5388, allocations: 4 kB / 0.625 GB, free: 10.92 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004963/0.5438, allocations: 2.208 MB / 0.6271 GB, free: 8.652 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004414/0.5443, allocations: 131 kB / 0.6273 GB, free: 8.523 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001517/0.5444, allocations: 24 kB / 0.6273 GB, free: 8.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000631/0.545, allocations: 28 kB / 0.6273 GB, free: 8.473 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002247/0.5453, allocations: 108.8 kB / 0.6274 GB, free: 8.367 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001022/0.5454, allocations: 47.98 kB / 0.6275 GB, free: 8.32 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0007988/0.5462, allocations: 0.5736 MB / 0.628 GB, free: 7.738 MB / 478.1 MB Notification: Performance of sort global known variables: time 8e-08/0.5462, allocations: 4 kB / 0.628 GB, free: 7.734 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002408/0.5486, allocations: 0.725 MB / 0.6287 GB, free: 7.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.006489/0.5551, allocations: 3.39 MB / 0.632 GB, free: 3.547 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.002813/0.5579, allocations: 1.471 MB / 0.6335 GB, free: 2.059 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.252e-06/0.5579, allocations: 3.938 kB / 0.6335 GB, free: 2.055 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001306/0.5592, allocations: 0.7738 MB / 0.6342 GB, free: 1.258 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001396/0.5606, allocations: 239.8 kB / 0.6345 GB, free: 1.023 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02056/0.5811, allocations: 12.17 MB / 0.6464 GB, free: 3.895 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007322/0.5819, allocations: 0.6763 MB / 0.647 GB, free: 3.184 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001067/0.5829, allocations: 346.5 kB / 0.6474 GB, free: 2.84 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009437/0.5839, allocations: 0.7413 MB / 0.6481 GB, free: 2.098 MB / 494.1 MB Notification: Performance of SimCode: time 9.01e-07/0.5839, allocations: 0 / 0.6481 GB, free: 2.098 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08804/0.6719, allocations: 40.08 MB / 0.6872 GB, free: 10.35 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.8/14.47, allocations: 8.047 kB / 0.6872 GB, free: 10.34 MB / 0.5294 GB " [Timeout remaining time 645] (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: 17.151250421011355] Failed to read output from testmodel.py, exit status != 0: 14.615170466975542 14.64276192 14.191448099 Calling exit ...