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.001327/0.001327, allocations: 104.3 kB / 19.7 MB, free: 2.156 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.001382/0.001382, allocations: 215.5 kB / 22.99 MB, free: 4.984 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.43/1.43, allocations: 230.6 MB / 256.8 MB, free: 7.805 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.134/0.134, allocations: 23.88 MB / 337.1 MB, free: 10.98 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.002028/0.002028, allocations: 63.89 kB / 472.3 MB, free: 7.035 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3183/0.3203, allocations: 59.86 MB / 0.5197 GB, free: 9.781 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.07605/0.3964, allocations: 28.65 MB / 0.5477 GB, free: 11.2 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02561/0.422, allocations: 15.78 MB / 0.5631 GB, free: 12.86 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003418/0.4254, allocations: 31.75 kB / 0.5632 GB, free: 12.82 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001896/0.4273, allocations: 449.8 kB / 0.5636 GB, free: 12.49 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005426/0.4327, allocations: 1.301 MB / 0.5649 GB, free: 11.38 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008108/0.4408, allocations: 2.577 MB / 0.5674 GB, free: 9.121 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.004911/0.4458, allocations: 2.28 MB / 0.5696 GB, free: 6.828 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00203/0.4478, allocations: 1.222 MB / 0.5708 GB, free: 5.551 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001517/0.4493, allocations: 1.056 MB / 0.5718 GB, free: 4.492 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001775/0.4511, allocations: 1.164 MB / 0.573 GB, free: 3.324 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003397/0.4514, allocations: 224 kB / 0.5732 GB, free: 3.105 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005312/0.4567, allocations: 1.771 MB / 0.5749 GB, free: 1.332 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006127/0.4573, allocations: 0.4985 MB / 0.5754 GB, free: 0.832 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001255/0.4586, allocations: 0.9259 MB / 0.5763 GB, free: 15.9 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00944/0.468, allocations: 4.334 MB / 0.5805 GB, free: 11.55 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.693e-06/0.468, allocations: 0 / 0.5805 GB, free: 11.55 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.468, allocations: 0 / 0.5805 GB, free: 11.55 MB / 430.1 MB Notification: Performance of Transformations before backend: time 4.145e-05/0.4681, allocations: 3.938 kB / 0.5805 GB, free: 11.55 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.005004/0.4731, allocations: 2.481 MB / 0.5829 GB, free: 9.023 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.406e-05/0.4731, allocations: 8.031 kB / 0.583 GB, free: 9.016 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001815/0.475, allocations: 443 kB / 0.5834 GB, free: 8.582 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002203/0.4772, allocations: 1.051 MB / 0.5844 GB, free: 7.504 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002254/0.4774, allocations: 207.7 kB / 0.5846 GB, free: 7.289 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000341/0.4777, allocations: 200 kB / 0.5848 GB, free: 7.094 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003874/0.4816, allocations: 2.164 MB / 0.5869 GB, free: 4.859 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.306e-05/0.4816, allocations: 3.938 kB / 0.5869 GB, free: 4.855 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001965/0.4818, allocations: 80 kB / 0.587 GB, free: 4.777 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.455e-05/0.4819, allocations: 48 kB / 0.587 GB, free: 4.73 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003707/0.4856, allocations: 2.218 MB / 0.5892 GB, free: 2.508 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.01067/0.4963, allocations: 5.849 MB / 0.5949 GB, free: 12.49 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002812/0.4991, allocations: 1.505 MB / 0.5964 GB, free: 10.96 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008959/0.5, allocations: 0.5293 MB / 0.5969 GB, free: 10.42 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008096/0.5081, allocations: 3.299 MB / 0.6001 GB, free: 7.098 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.209e-05/0.5081, allocations: 43.5 kB / 0.6002 GB, free: 7.047 MB / 446.1 MB Notification: Performance of pre-optimization done (n=88): time 3.136e-06/0.5081, allocations: 4 kB / 0.6002 GB, free: 7.043 MB / 446.1 MB Notification: Performance of matching and sorting (n=106): time 0.02041/0.5285, allocations: 4.655 MB / 0.6047 GB, free: 2.359 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.026e-05/0.5286, allocations: 123.7 kB / 0.6048 GB, free: 2.215 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001121/0.5297, allocations: 0.8709 MB / 0.6057 GB, free: 1.32 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 9.558e-05/0.5298, allocations: 49.77 kB / 0.6057 GB, free: 1.266 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006892/0.5305, allocations: 0.9709 MB / 0.6067 GB, free: 288 kB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003645/0.5309, allocations: 400.7 kB / 0.6071 GB, free: 15.89 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004801/0.5314, allocations: 347.4 kB / 0.6074 GB, free: 15.54 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001823/0.5315, allocations: 349.9 kB / 0.6077 GB, free: 15.19 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008317/0.5324, allocations: 463.8 kB / 0.6082 GB, free: 14.74 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001457/0.5338, allocations: 1.195 MB / 0.6093 GB, free: 13.19 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002436/0.5363, allocations: 1.79 MB / 0.6111 GB, free: 11.04 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.336e-05/0.5363, allocations: 8 kB / 0.6111 GB, free: 11.04 MB / 462.1 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.005751/0.542, allocations: 2.061 MB / 0.6131 GB, free: 8.957 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.473e-05/0.5421, allocations: 16 kB / 0.6131 GB, free: 8.941 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.605e-05/0.5421, allocations: 31.94 kB / 0.6131 GB, free: 8.91 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002804/0.5449, allocations: 378.5 kB / 0.6135 GB, free: 8.531 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001872/0.5468, allocations: 451.3 kB / 0.6139 GB, free: 8.09 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005895/0.5527, allocations: 3.8 MB / 0.6176 GB, free: 4.055 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001353/0.554, allocations: 87.91 kB / 0.6177 GB, free: 3.969 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001928/0.5542, allocations: 108 kB / 0.6178 GB, free: 3.863 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.0007593/0.555, allocations: 381 kB / 0.6182 GB, free: 3.48 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002988/0.5553, allocations: 123.2 kB / 0.6183 GB, free: 3.359 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005197/0.5605, allocations: 1.605 MB / 0.6199 GB, free: 1.738 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.354e-05/0.5605, allocations: 11.94 kB / 0.6199 GB, free: 1.727 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.398e-06/0.5605, allocations: 4 kB / 0.6199 GB, free: 1.723 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.356e-05/0.5605, allocations: 7.969 kB / 0.6199 GB, free: 1.715 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002071/0.5626, allocations: 1.117 MB / 0.621 GB, free: 0.5352 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.891e-06/0.5626, allocations: 0 / 0.621 GB, free: 0.5352 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001295/0.5639, allocations: 243.7 kB / 0.6212 GB, free: 304 kB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002756/0.5666, allocations: 346.4 kB / 0.6216 GB, free: 15.95 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001086/0.5667, allocations: 43.92 kB / 0.6216 GB, free: 15.91 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005429/0.5722, allocations: 3.732 MB / 0.6252 GB, free: 11.94 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/0.5722, allocations: 4 kB / 0.6252 GB, free: 11.94 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00563/0.5778, allocations: 2.208 MB / 0.6274 GB, free: 9.668 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000379/0.5782, allocations: 107.1 kB / 0.6275 GB, free: 9.562 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001574/0.5783, allocations: 27.98 kB / 0.6275 GB, free: 9.535 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007053/0.579, allocations: 28 kB / 0.6276 GB, free: 9.508 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002291/0.5793, allocations: 108.7 kB / 0.6277 GB, free: 9.402 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001115/0.5794, allocations: 55.97 kB / 0.6277 GB, free: 9.348 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0007071/0.5801, allocations: 0.5085 MB / 0.6282 GB, free: 8.828 MB / 478.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5801, allocations: 0 / 0.6282 GB, free: 8.828 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002415/0.5825, allocations: 0.725 MB / 0.6289 GB, free: 8.102 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.001424/0.5839, allocations: 0.7308 MB / 0.6296 GB, free: 7.363 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.002805/0.5867, allocations: 1.464 MB / 0.6311 GB, free: 5.879 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.813e-06/0.5867, allocations: 8.25 kB / 0.6311 GB, free: 5.871 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001323/0.5881, allocations: 0.7721 MB / 0.6318 GB, free: 5.078 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001322/0.5894, allocations: 238.6 kB / 0.6321 GB, free: 4.852 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005741/0.5951, allocations: 3.05 MB / 0.635 GB, free: 1.73 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008365/0.596, allocations: 0.6721 MB / 0.6357 GB, free: 1.023 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001185/0.5972, allocations: 334.1 kB / 0.636 GB, free: 0.6953 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004534/0.5976, allocations: 207.3 kB / 0.6362 GB, free: 0.4922 MB / 478.1 MB Notification: Performance of SimCode: time 1.503e-06/0.5976, allocations: 0 / 0.6362 GB, free: 0.4922 MB / 478.1 MB Notification: Performance of Templates: time 0.04495/0.6426, allocations: 27.45 MB / 0.663 GB, free: 5.23 MB / 0.4981 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 -s cvode -lv LOG_STATS > Chemical_Chemical.Obsolete.Examples.WaterElectrolysis.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.932527672004653] Failed to read output from testmodel.py, exit status != 0: 0.6522194020071765 0.666932258 0.19566766399999996 Calling exit ...