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.001462/0.001462, 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.001727/0.001727, allocations: 219.5 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.381/1.381, allocations: 230.6 MB / 256 MB, free: 8 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.1297/0.1297, allocations: 23.86 MB / 336.3 MB, free: 11.2 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: translateModel(Chemical.Obsolete.Examples.WaterElectrolysis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Obsolete.Examples.WaterElectrolysis") translateModel(Chemical.Obsolete.Examples.WaterElectrolysis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Obsolete.Examples.WaterElectrolysis") [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.002069/0.002069, allocations: 67.89 kB / 471.6 MB, free: 7.207 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2928/0.2949, allocations: 59.86 MB / 0.519 GB, free: 9.859 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.0386/0.3335, allocations: 29.78 MB / 0.5481 GB, free: 10.27 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02391/0.3574, allocations: 17.95 MB / 0.5657 GB, free: 9.746 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001616/0.359, allocations: 27.81 kB / 0.5657 GB, free: 9.719 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001599/0.3606, allocations: 489.7 kB / 0.5662 GB, free: 9.348 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004111/0.3647, allocations: 1.332 MB / 0.5675 GB, free: 8.207 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007336/0.3721, allocations: 2.575 MB / 0.57 GB, free: 5.965 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003746/0.3758, allocations: 2.292 MB / 0.5722 GB, free: 3.66 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001817/0.3776, allocations: 1.211 MB / 0.5734 GB, free: 2.395 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001583/0.3792, allocations: 1.052 MB / 0.5744 GB, free: 1.34 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002075/0.3813, allocations: 1.167 MB / 0.5756 GB, free: 172 kB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005256/0.3818, allocations: 224 kB / 0.5758 GB, free: 15.95 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005794/0.3876, allocations: 1.833 MB / 0.5776 GB, free: 14.11 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000711/0.3883, allocations: 0.5063 MB / 0.5781 GB, free: 13.61 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001612/0.3899, allocations: 1.101 MB / 0.5791 GB, free: 12.5 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008226/0.3982, allocations: 4.338 MB / 0.5834 GB, free: 8.145 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.3982, allocations: 0 / 0.5834 GB, free: 8.145 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.3982, allocations: 3.938 kB / 0.5834 GB, free: 8.141 MB / 430.1 MB Notification: Performance of Transformations before backend: time 8.247e-05/0.3982, allocations: 3.938 kB / 0.5834 GB, free: 8.137 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.005323/0.4036, allocations: 2.478 MB / 0.5858 GB, free: 5.617 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.664e-05/0.4036, allocations: 8.031 kB / 0.5858 GB, free: 5.609 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001763/0.4054, allocations: 443 kB / 0.5862 GB, free: 5.176 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002165/0.4075, allocations: 1.055 MB / 0.5872 GB, free: 4.094 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002034/0.4077, allocations: 211.7 kB / 0.5875 GB, free: 3.875 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003533/0.4081, allocations: 199.9 kB / 0.5876 GB, free: 3.68 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003827/0.4119, allocations: 2.128 MB / 0.5897 GB, free: 1.488 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.589e-05/0.412, allocations: 7.938 kB / 0.5897 GB, free: 1.48 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001845/0.4121, allocations: 84 kB / 0.5898 GB, free: 1.398 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.21e-05/0.4122, allocations: 48 kB / 0.5899 GB, free: 1.352 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003836/0.416, allocations: 2.241 MB / 0.592 GB, free: 15.11 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.01133/0.4274, allocations: 7.252 MB / 0.5991 GB, free: 7.496 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002724/0.4301, allocations: 1.52 MB / 0.6006 GB, free: 5.957 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000893/0.431, allocations: 0.5332 MB / 0.6011 GB, free: 5.41 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007948/0.4389, allocations: 3.482 MB / 0.6045 GB, free: 1.902 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.897e-05/0.439, allocations: 43.55 kB / 0.6046 GB, free: 1.852 MB / 446.1 MB Notification: Performance of pre-optimization done (n=88): time 2.314e-06/0.439, allocations: 0 / 0.6046 GB, free: 1.852 MB / 446.1 MB Notification: Performance of matching and sorting (n=106): time 0.01897/0.4579, allocations: 4.676 MB / 0.6091 GB, free: 13.14 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.897e-05/0.458, allocations: 111.8 kB / 0.6092 GB, free: 13.01 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001213/0.4592, allocations: 0.9197 MB / 0.6101 GB, free: 12.07 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 7.795e-05/0.4593, allocations: 49.77 kB / 0.6102 GB, free: 12.02 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007081/0.46, allocations: 0.9594 MB / 0.6111 GB, free: 11.05 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003582/0.4604, allocations: 404.6 kB / 0.6115 GB, free: 10.65 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000485/0.4608, allocations: 347.4 kB / 0.6118 GB, free: 10.3 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001269/0.461, allocations: 305.1 kB / 0.6121 GB, free: 10 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008654/0.4618, allocations: 459.8 kB / 0.6126 GB, free: 9.551 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001473/0.4633, allocations: 1.195 MB / 0.6137 GB, free: 8.004 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002485/0.4658, allocations: 1.786 MB / 0.6155 GB, free: 5.863 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.835e-05/0.4658, allocations: 12 kB / 0.6155 GB, free: 5.852 MB / 462.1 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.005373/0.4712, allocations: 2.065 MB / 0.6175 GB, free: 3.77 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.941e-05/0.4712, allocations: 16 kB / 0.6175 GB, free: 3.754 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.531e-05/0.4713, allocations: 28.53 kB / 0.6176 GB, free: 3.727 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002597/0.4739, allocations: 381.9 kB / 0.6179 GB, free: 3.344 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001703/0.4756, allocations: 451.3 kB / 0.6184 GB, free: 2.902 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005708/0.4813, allocations: 3.889 MB / 0.6221 GB, free: 14.76 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001158/0.4824, allocations: 91.78 kB / 0.6222 GB, free: 14.67 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001852/0.4826, allocations: 107.9 kB / 0.6223 GB, free: 14.56 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.0006803/0.4833, allocations: 381.7 kB / 0.6227 GB, free: 14.18 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003226/0.4836, allocations: 131.2 kB / 0.6228 GB, free: 14.05 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004989/0.4886, allocations: 1.606 MB / 0.6244 GB, free: 12.43 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.624e-05/0.4886, allocations: 15.98 kB / 0.6244 GB, free: 12.41 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.4886, allocations: 0 / 0.6244 GB, free: 12.41 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.323e-05/0.4886, allocations: 3.984 kB / 0.6244 GB, free: 12.41 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00238/0.491, allocations: 1.456 MB / 0.6258 GB, free: 10.88 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.058e-05/0.491, allocations: 4 kB / 0.6258 GB, free: 10.88 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001236/0.4923, allocations: 244 kB / 0.6261 GB, free: 10.64 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002456/0.4947, allocations: 346.2 kB / 0.6264 GB, free: 10.29 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001056/0.4948, allocations: 47.97 kB / 0.6264 GB, free: 10.24 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005307/0.5001, allocations: 3.786 MB / 0.6301 GB, free: 6.199 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.5001, allocations: 4.031 kB / 0.6301 GB, free: 6.195 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00518/0.5053, allocations: 2.208 MB / 0.6323 GB, free: 3.926 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002932/0.5056, allocations: 139.2 kB / 0.6324 GB, free: 3.789 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001867/0.5058, allocations: 27.94 kB / 0.6325 GB, free: 3.762 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006946/0.5065, allocations: 31.98 kB / 0.6325 GB, free: 3.73 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002043/0.5067, allocations: 104.8 kB / 0.6326 GB, free: 3.629 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.879e-05/0.5068, allocations: 55.92 kB / 0.6326 GB, free: 3.574 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0008052/0.5076, allocations: 0.5775 MB / 0.6332 GB, free: 2.988 MB / 478.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5076, allocations: 0 / 0.6332 GB, free: 2.988 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.00212/0.5097, allocations: 0.7328 MB / 0.6339 GB, free: 2.254 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.001407/0.5111, allocations: 0.7126 MB / 0.6346 GB, free: 1.531 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.002673/0.5138, allocations: 1.472 MB / 0.6361 GB, free: 40 kB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.47e-06/0.5138, allocations: 4 kB / 0.6361 GB, free: 36 kB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001298/0.5151, allocations: 0.7692 MB / 0.6368 GB, free: 15.24 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001218/0.5163, allocations: 250.7 kB / 0.6371 GB, free: 15 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005123/0.5214, allocations: 3.05 MB / 0.64 GB, free: 11.88 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000995/0.5224, allocations: 1.259 MB / 0.6413 GB, free: 10.59 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0009942/0.5234, allocations: 338.5 kB / 0.6416 GB, free: 10.26 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000425/0.5239, allocations: 207.3 kB / 0.6418 GB, free: 10.06 MB / 494.1 MB Notification: Performance of SimCode: time 3.81e-07/0.5239, allocations: 0 / 0.6418 GB, free: 10.06 MB / 494.1 MB Notification: Performance of Templates: time 0.04462/0.5685, allocations: 27.02 MB / 0.6682 GB, free: 15.09 MB / 0.5137 GB " [Timeout remaining time 659] make -j1 -f Chemical_Chemical.Obsolete.Examples.WaterElectrolysis.makefile [Timeout 660] (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 & ./Chemical_Chemical.Obsolete.Examples.WaterElectrolysis -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Obsolete.Examples.WaterElectrolysis.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.729328640038148] Failed to read output from testmodel.py, exit status != 0: 0.5778112050611526 0.592371507 0.191098933 Calling exit ...