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.001338/0.001338, allocations: 104.4 kB / 19.7 MB, free: 2.125 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.001498/0.001498, allocations: 217.3 kB / 22.99 MB, free: 4.945 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.474/1.474, allocations: 230.6 MB / 256.8 MB, free: 7.789 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.1345/0.1345, allocations: 23.89 MB / 337.1 MB, free: 10.95 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.002094/0.002094, allocations: 63.91 kB / 472.4 MB, free: 7.008 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3149/0.317, allocations: 59.86 MB / 0.5197 GB, free: 9.766 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.07302/0.39, allocations: 28.8 MB / 0.5479 GB, free: 11.02 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02294/0.4129, allocations: 15.78 MB / 0.5633 GB, free: 12.68 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001777/0.4147, allocations: 23.81 kB / 0.5633 GB, free: 12.65 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001676/0.4164, allocations: 453.6 kB / 0.5637 GB, free: 12.32 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00471/0.4211, allocations: 1.294 MB / 0.565 GB, free: 11.21 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007428/0.4285, allocations: 2.595 MB / 0.5675 GB, free: 8.922 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.00376/0.4323, allocations: 2.276 MB / 0.5698 GB, free: 6.633 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001584/0.4339, allocations: 1.187 MB / 0.5709 GB, free: 5.391 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001228/0.4351, allocations: 1.056 MB / 0.572 GB, free: 4.332 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00142/0.4365, allocations: 1.027 MB / 0.573 GB, free: 3.301 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003228/0.4368, allocations: 224 kB / 0.5732 GB, free: 3.082 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004549/0.4414, allocations: 1.72 MB / 0.5748 GB, free: 1.359 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004783/0.4419, allocations: 0.5024 MB / 0.5753 GB, free: 0.8555 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009455/0.4428, allocations: 0.9182 MB / 0.5762 GB, free: 15.93 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007174/0.45, allocations: 4.342 MB / 0.5805 GB, free: 11.57 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.45, allocations: 0 / 0.5805 GB, free: 11.57 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.45, allocations: 3.938 kB / 0.5805 GB, free: 11.57 MB / 430.1 MB Notification: Performance of Transformations before backend: time 2.958e-05/0.45, allocations: 0 / 0.5805 GB, free: 11.57 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.004234/0.4543, allocations: 2.478 MB / 0.5829 GB, free: 9.051 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.734e-05/0.4543, allocations: 8.031 kB / 0.5829 GB, free: 9.043 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001587/0.4559, allocations: 447 kB / 0.5833 GB, free: 8.605 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001977/0.4579, allocations: 1.051 MB / 0.5844 GB, free: 7.527 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001947/0.458, allocations: 211.6 kB / 0.5846 GB, free: 7.309 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003057/0.4584, allocations: 200 kB / 0.5848 GB, free: 7.113 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003396/0.4617, allocations: 2.153 MB / 0.5869 GB, free: 4.891 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.38e-05/0.4618, allocations: 3.938 kB / 0.5869 GB, free: 4.887 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001766/0.462, allocations: 88 kB / 0.5869 GB, free: 4.801 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.026e-05/0.462, allocations: 48 kB / 0.587 GB, free: 4.754 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00355/0.4656, allocations: 2.218 MB / 0.5892 GB, free: 2.531 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.009482/0.475, allocations: 5.849 MB / 0.5949 GB, free: 12.51 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002588/0.4776, allocations: 1.5 MB / 0.5963 GB, free: 11 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008479/0.4785, allocations: 0.5332 MB / 0.5969 GB, free: 10.45 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007348/0.4858, allocations: 3.306 MB / 0.6001 GB, free: 7.121 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.251e-05/0.4859, allocations: 43.56 kB / 0.6001 GB, free: 7.07 MB / 446.1 MB Notification: Performance of pre-optimization done (n=88): time 3.256e-06/0.4859, allocations: 0 / 0.6001 GB, free: 7.07 MB / 446.1 MB Notification: Performance of matching and sorting (n=106): time 0.01725/0.5031, allocations: 4.666 MB / 0.6047 GB, free: 2.375 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.958e-05/0.5032, allocations: 115.8 kB / 0.6048 GB, free: 2.238 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001113/0.5043, allocations: 0.8671 MB / 0.6056 GB, free: 1.348 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 8.218e-05/0.5044, allocations: 41.7 kB / 0.6057 GB, free: 1.301 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007162/0.5051, allocations: 0.9749 MB / 0.6066 GB, free: 320 kB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003641/0.5055, allocations: 400.9 kB / 0.607 GB, free: 15.91 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004814/0.506, allocations: 347.4 kB / 0.6073 GB, free: 15.57 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001798/0.5061, allocations: 353.9 kB / 0.6077 GB, free: 15.21 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008226/0.507, allocations: 455.8 kB / 0.6081 GB, free: 14.77 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001472/0.5084, allocations: 1.195 MB / 0.6093 GB, free: 13.22 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002461/0.5109, allocations: 1.794 MB / 0.611 GB, free: 11.07 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.338e-05/0.5109, allocations: 8 kB / 0.611 GB, free: 11.06 MB / 462.1 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.005094/0.516, allocations: 2.053 MB / 0.613 GB, free: 8.996 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.081e-05/0.516, allocations: 23.88 kB / 0.6131 GB, free: 8.973 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.355e-05/0.5161, allocations: 24 kB / 0.6131 GB, free: 8.949 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002357/0.5184, allocations: 386.5 kB / 0.6135 GB, free: 8.562 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00171/0.5201, allocations: 447.3 kB / 0.6139 GB, free: 8.125 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005401/0.5255, allocations: 3.826 MB / 0.6176 GB, free: 4.066 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00114/0.5267, allocations: 79.92 kB / 0.6177 GB, free: 3.988 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001729/0.5268, allocations: 108 kB / 0.6178 GB, free: 3.883 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.000703/0.5275, allocations: 385 kB / 0.6182 GB, free: 3.496 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002703/0.5278, allocations: 123.2 kB / 0.6183 GB, free: 3.375 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004734/0.5326, allocations: 1.597 MB / 0.6198 GB, free: 1.758 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.676e-05/0.5326, allocations: 15.94 kB / 0.6199 GB, free: 1.742 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.5326, allocations: 0 / 0.6199 GB, free: 1.742 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.128e-05/0.5326, allocations: 3.984 kB / 0.6199 GB, free: 1.738 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001871/0.5345, allocations: 1.121 MB / 0.621 GB, free: 0.5547 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.596e-06/0.5345, allocations: 4 kB / 0.621 GB, free: 0.5508 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001224/0.5357, allocations: 239.7 kB / 0.6212 GB, free: 324 kB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002297/0.538, allocations: 346.5 kB / 0.6215 GB, free: 15.97 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.72e-05/0.5381, allocations: 43.98 kB / 0.6216 GB, free: 15.93 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005072/0.5432, allocations: 3.724 MB / 0.6252 GB, free: 11.97 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.5432, allocations: 96 / 0.6252 GB, free: 11.97 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005016/0.5482, allocations: 2.204 MB / 0.6274 GB, free: 9.707 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002747/0.5484, allocations: 111.1 kB / 0.6275 GB, free: 9.598 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001423/0.5486, allocations: 24 kB / 0.6275 GB, free: 9.574 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006455/0.5492, allocations: 31.98 kB / 0.6275 GB, free: 9.543 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002119/0.5494, allocations: 108.7 kB / 0.6276 GB, free: 9.438 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.93e-05/0.5495, allocations: 55.98 kB / 0.6277 GB, free: 9.383 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0006947/0.5502, allocations: 0.5045 MB / 0.6282 GB, free: 8.867 MB / 478.1 MB Notification: Performance of sort global known variables: time 7e-08/0.5502, allocations: 0 / 0.6282 GB, free: 8.867 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002161/0.5524, allocations: 0.725 MB / 0.6289 GB, free: 8.141 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.001269/0.5537, allocations: 0.7351 MB / 0.6296 GB, free: 7.395 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.002731/0.5564, allocations: 1.468 MB / 0.631 GB, free: 5.902 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.5564, allocations: 0 / 0.631 GB, free: 5.902 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001279/0.5577, allocations: 0.7809 MB / 0.6318 GB, free: 5.102 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001265/0.5589, allocations: 227.3 kB / 0.632 GB, free: 4.883 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005052/0.564, allocations: 3.101 MB / 0.635 GB, free: 1.711 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007379/0.5647, allocations: 0.6721 MB / 0.6357 GB, free: 1.004 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005725/0.5653, allocations: 267.2 kB / 0.6359 GB, free: 0.7422 MB / 478.1 MB Notification: Performance of SimCode: time 7.02e-07/0.5653, allocations: 3.938 kB / 0.6359 GB, free: 0.7383 MB / 478.1 MB Notification: Performance of Templates: time 0.05489/0.6202, allocations: 44.06 MB / 0.679 GB, free: 4.699 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: 10.094203498214483] Failed to read output from testmodel.py, exit status != 0: 0.6293366886675358 0.643092643 0.190023249 Calling exit ...