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.001905/0.001905, allocations: 107.3 kB / 16.46 MB, free: 6.508 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.002204/0.002204, allocations: 213.7 kB / 19.43 MB, free: 3.648 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.487/1.487, allocations: 230.6 MB / 252.8 MB, free: 9.109 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.1436/0.1436, allocations: 23.85 MB / 332.7 MB, free: 12.38 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.002097/0.002097, allocations: 67.89 kB / 466.5 MB, free: 9.598 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.296/0.298, allocations: 59.81 MB / 0.5139 GB, free: 9.129 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.04077/0.3388, allocations: 29.51 MB / 0.5428 GB, free: 11.37 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02517/0.364, allocations: 17.9 MB / 0.5602 GB, free: 10.88 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00163/0.3656, allocations: 27.81 kB / 0.5603 GB, free: 10.85 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001675/0.3673, allocations: 497.2 kB / 0.5607 GB, free: 10.47 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004913/0.3722, allocations: 1.314 MB / 0.562 GB, free: 9.355 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007686/0.3799, allocations: 2.55 MB / 0.5645 GB, free: 7.273 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.004235/0.3841, allocations: 2.293 MB / 0.5668 GB, free: 5.164 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001835/0.386, allocations: 1.234 MB / 0.568 GB, free: 3.875 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001432/0.3874, allocations: 1.052 MB / 0.569 GB, free: 2.82 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001768/0.3892, allocations: 1.167 MB / 0.5701 GB, free: 1.648 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003825/0.3895, allocations: 224 kB / 0.5703 GB, free: 1.43 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005769/0.3953, allocations: 1.829 MB / 0.5721 GB, free: 15.6 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005721/0.3959, allocations: 0.5024 MB / 0.5726 GB, free: 15.09 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001291/0.3972, allocations: 1.101 MB / 0.5737 GB, free: 13.99 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008282/0.4055, allocations: 4.338 MB / 0.5779 GB, free: 9.633 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.4055, allocations: 0 / 0.5779 GB, free: 9.633 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.4055, allocations: 0 / 0.5779 GB, free: 9.633 MB / 430.1 MB Notification: Performance of Transformations before backend: time 3.832e-05/0.4055, allocations: 0 / 0.5779 GB, free: 9.633 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.004849/0.4103, allocations: 2.553 MB / 0.5804 GB, free: 7.02 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.339e-05/0.4104, allocations: 12.03 kB / 0.5804 GB, free: 7.008 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001797/0.4122, allocations: 446.9 kB / 0.5809 GB, free: 6.57 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001994/0.4142, allocations: 1.123 MB / 0.582 GB, free: 5.406 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001731/0.4144, allocations: 178 kB / 0.5821 GB, free: 5.227 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003245/0.4147, allocations: 207.9 kB / 0.5823 GB, free: 5.023 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003725/0.4184, allocations: 2.131 MB / 0.5844 GB, free: 2.828 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.768e-05/0.4184, allocations: 3.938 kB / 0.5844 GB, free: 2.824 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002023/0.4186, allocations: 80 kB / 0.5845 GB, free: 2.746 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.397e-05/0.4187, allocations: 48 kB / 0.5845 GB, free: 2.699 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004007/0.4227, allocations: 2.241 MB / 0.5867 GB, free: 464 kB / 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.01137/0.4341, allocations: 7.36 MB / 0.5939 GB, free: 8.738 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003006/0.4371, allocations: 1.671 MB / 0.5955 GB, free: 7.012 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009547/0.438, allocations: 0.5295 MB / 0.5961 GB, free: 6.473 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009705/0.4477, allocations: 6.396 MB / 0.6023 GB, free: 15.33 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.668e-05/0.4478, allocations: 43.56 kB / 0.6024 GB, free: 15.28 MB / 462.1 MB Notification: Performance of pre-optimization done (n=88): time 2.354e-06/0.4478, allocations: 0 / 0.6024 GB, free: 15.28 MB / 462.1 MB Notification: Performance of matching and sorting (n=106): time 0.0195/0.4673, allocations: 4.907 MB / 0.6071 GB, free: 10.29 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.028e-05/0.4674, allocations: 115.8 kB / 0.6073 GB, free: 10.15 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001312/0.4687, allocations: 0.9197 MB / 0.6082 GB, free: 9.211 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001019/0.4688, allocations: 45.7 kB / 0.6082 GB, free: 9.16 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007534/0.4695, allocations: 0.9555 MB / 0.6091 GB, free: 8.191 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003855/0.4699, allocations: 412.6 kB / 0.6095 GB, free: 7.785 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005288/0.4704, allocations: 347.4 kB / 0.6099 GB, free: 7.438 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001296/0.4706, allocations: 301.1 kB / 0.6101 GB, free: 7.141 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000932/0.4715, allocations: 455.8 kB / 0.6106 GB, free: 6.695 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001628/0.4731, allocations: 1.191 MB / 0.6117 GB, free: 5.152 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002733/0.4759, allocations: 1.79 MB / 0.6135 GB, free: 3.008 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-05/0.4759, allocations: 8 kB / 0.6135 GB, free: 3 MB / 462.1 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.005794/0.4817, allocations: 2.077 MB / 0.6155 GB, free: 0.9062 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.469e-05/0.4817, allocations: 16 kB / 0.6155 GB, free: 0.8906 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.772e-05/0.4818, allocations: 24 kB / 0.6156 GB, free: 0.8672 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002671/0.4844, allocations: 382.5 kB / 0.6159 GB, free: 496 kB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001896/0.4863, allocations: 447.3 kB / 0.6164 GB, free: 48 kB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006055/0.4924, allocations: 4.072 MB / 0.6203 GB, free: 11.67 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001341/0.4937, allocations: 95.84 kB / 0.6204 GB, free: 11.57 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002137/0.4939, allocations: 99.98 kB / 0.6205 GB, free: 11.48 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.0007624/0.4947, allocations: 389 kB / 0.6209 GB, free: 11.09 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003452/0.495, allocations: 127.2 kB / 0.621 GB, free: 10.96 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005274/0.5003, allocations: 1.614 MB / 0.6226 GB, free: 9.332 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.217e-05/0.5003, allocations: 8 kB / 0.6226 GB, free: 9.324 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.5003, allocations: 4 kB / 0.6226 GB, free: 9.32 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.359e-05/0.5003, allocations: 7.922 kB / 0.6226 GB, free: 9.312 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002532/0.5029, allocations: 1.489 MB / 0.6241 GB, free: 7.734 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.091e-06/0.5029, allocations: 0 / 0.6241 GB, free: 7.734 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001382/0.5043, allocations: 247.9 kB / 0.6243 GB, free: 7.492 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002566/0.5068, allocations: 350.2 kB / 0.6246 GB, free: 7.141 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001177/0.5069, allocations: 43.97 kB / 0.6247 GB, free: 7.098 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005799/0.5127, allocations: 4 MB / 0.6286 GB, free: 2.793 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/0.5127, allocations: 0 / 0.6286 GB, free: 2.793 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005674/0.5184, allocations: 2.208 MB / 0.6307 GB, free: 0.5273 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003738/0.5188, allocations: 188.2 kB / 0.6309 GB, free: 332 kB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001638/0.519, allocations: 35.94 kB / 0.6309 GB, free: 296 kB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007198/0.5197, allocations: 31.98 kB / 0.631 GB, free: 264 kB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002613/0.5199, allocations: 100.8 kB / 0.6311 GB, free: 164 kB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001145/0.5201, allocations: 51.98 kB / 0.6311 GB, free: 112 kB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0008828/0.5209, allocations: 0.5815 MB / 0.6317 GB, free: 15.52 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5209, allocations: 0 / 0.6317 GB, free: 15.52 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002413/0.5234, allocations: 0.7289 MB / 0.6324 GB, free: 14.79 MB / 494.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.001421/0.5248, allocations: 0.7273 MB / 0.6331 GB, free: 14.05 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.002962/0.5277, allocations: 1.464 MB / 0.6345 GB, free: 12.57 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.5277, allocations: 384 / 0.6345 GB, free: 12.57 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001474/0.5292, allocations: 0.776 MB / 0.6353 GB, free: 11.76 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001623/0.5308, allocations: 248 kB / 0.6355 GB, free: 11.52 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005526/0.5364, allocations: 3.037 MB / 0.6385 GB, free: 8.418 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001007/0.5374, allocations: 1.255 MB / 0.6397 GB, free: 7.133 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001133/0.5385, allocations: 342.5 kB / 0.6401 GB, free: 6.793 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004721/0.539, allocations: 219.2 kB / 0.6403 GB, free: 6.582 MB / 494.1 MB Notification: Performance of SimCode: time 8.61e-07/0.539, allocations: 3.938 kB / 0.6403 GB, free: 6.578 MB / 494.1 MB Notification: Performance of Templates: time 0.04493/0.5839, allocations: 25.96 MB / 0.6656 GB, free: 12.68 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: 6.022972639650106] Failed to read output from testmodel.py, exit status != 0: 0.5924828387796879 0.606209277 0.197589117 Calling exit ...