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.001581/0.001581, allocations: 112.3 kB / 17.13 MB, free: 6.008 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.00167/0.00167, allocations: 212.7 kB / 20.1 MB, free: 3.055 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.472/1.472, allocations: 230.6 MB / 253.5 MB, free: 15.1 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.1469/0.1469, allocations: 23.86 MB / 333.4 MB, free: 1.203 MB / 254.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.001982/0.001982, allocations: 74.09 kB / 467.2 MB, free: 30.56 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.116/0.118, allocations: 59.83 MB / 0.5146 GB, free: 12.47 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.04363/0.1616, allocations: 29.54 MB / 0.5435 GB, free: 14.95 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.02344/0.1851, allocations: 17.91 MB / 0.561 GB, free: 12.98 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001843/0.1869, allocations: 27.81 kB / 0.561 GB, free: 12.95 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001425/0.1883, allocations: 484.2 kB / 0.5615 GB, free: 12.47 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004492/0.1928, allocations: 1.326 MB / 0.5628 GB, free: 11.14 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008627/0.2015, allocations: 2.544 MB / 0.5652 GB, free: 8.578 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.003989/0.2055, allocations: 2.284 MB / 0.5675 GB, free: 6.281 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001716/0.2072, allocations: 1.226 MB / 0.5687 GB, free: 5 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001447/0.2086, allocations: 1.06 MB / 0.5697 GB, free: 3.938 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001643/0.2103, allocations: 1.167 MB / 0.5708 GB, free: 2.766 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003279/0.2106, allocations: 224 kB / 0.5711 GB, free: 2.547 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006137/0.2167, allocations: 1.833 MB / 0.5728 GB, free: 0.7109 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006472/0.2174, allocations: 0.4946 MB / 0.5733 GB, free: 220 kB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001534/0.2189, allocations: 1.101 MB / 0.5744 GB, free: 15.11 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01316/0.2321, allocations: 4.338 MB / 0.5786 GB, free: 10.75 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.658e-06/0.2321, allocations: 7.938 kB / 0.5786 GB, free: 10.75 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.2321, allocations: 0 / 0.5786 GB, free: 10.75 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.871e-05/0.2321, allocations: 0 / 0.5786 GB, free: 10.75 MB / 446.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.005598/0.2377, allocations: 2.557 MB / 0.5811 GB, free: 8.129 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.835e-05/0.2378, allocations: 12.03 kB / 0.5812 GB, free: 8.117 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00172/0.2395, allocations: 439 kB / 0.5816 GB, free: 7.688 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002041/0.2415, allocations: 1.127 MB / 0.5827 GB, free: 6.516 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00018/0.2417, allocations: 178 kB / 0.5828 GB, free: 6.336 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003232/0.242, allocations: 203.9 kB / 0.583 GB, free: 6.137 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00362/0.2457, allocations: 2.135 MB / 0.5851 GB, free: 3.938 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.704e-05/0.2457, allocations: 3.938 kB / 0.5851 GB, free: 3.934 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001919/0.2459, allocations: 84 kB / 0.5852 GB, free: 3.852 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.482e-05/0.2459, allocations: 48 kB / 0.5853 GB, free: 3.805 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00401/0.2499, allocations: 2.233 MB / 0.5874 GB, free: 1.566 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.2999/0.5499, allocations: 7.355 MB / 0.5946 GB, free: 59.88 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003047/0.5529, allocations: 1.668 MB / 0.5962 GB, free: 59.2 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009372/0.5538, allocations: 0.5263 MB / 0.5968 GB, free: 58.97 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008974/0.5628, allocations: 6.407 MB / 0.603 GB, free: 53.98 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.163e-05/0.5629, allocations: 46.14 kB / 0.6031 GB, free: 53.93 MB / 446.1 MB Notification: Performance of pre-optimization done (n=88): time 3.537e-06/0.5629, allocations: 2.656 kB / 0.6031 GB, free: 53.93 MB / 446.1 MB Notification: Performance of matching and sorting (n=106): time 0.01917/0.582, allocations: 4.898 MB / 0.6078 GB, free: 51.79 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.546e-05/0.5821, allocations: 119 kB / 0.608 GB, free: 51.66 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001473/0.5836, allocations: 0.9161 MB / 0.6089 GB, free: 51.28 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001474/0.5837, allocations: 45.17 kB / 0.6089 GB, free: 51.23 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005061/0.5842, allocations: 0.9643 MB / 0.6098 GB, free: 50.59 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003318/0.5845, allocations: 405.4 kB / 0.6102 GB, free: 50.34 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004801/0.585, allocations: 344.8 kB / 0.6106 GB, free: 50.17 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.975e-05/0.5851, allocations: 301.7 kB / 0.6108 GB, free: 49.88 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008927/0.586, allocations: 459.6 kB / 0.6113 GB, free: 49.71 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001211/0.5872, allocations: 1.192 MB / 0.6124 GB, free: 48.58 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002096/0.5893, allocations: 1.799 MB / 0.6142 GB, free: 47.1 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.2e-05/0.5893, allocations: 12.41 kB / 0.6142 GB, free: 47.09 MB / 446.1 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.005607/0.5949, allocations: 2.066 MB / 0.6162 GB, free: 46.3 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.448e-05/0.595, allocations: 19.09 kB / 0.6162 GB, free: 46.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.494e-05/0.595, allocations: 29.67 kB / 0.6163 GB, free: 46.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002427/0.5974, allocations: 376.3 kB / 0.6166 GB, free: 46.23 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001728/0.5992, allocations: 447.4 kB / 0.6171 GB, free: 46.18 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004512/0.6037, allocations: 4.073 MB / 0.621 GB, free: 42.34 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00152/0.6052, allocations: 86.44 kB / 0.6211 GB, free: 42.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001787/0.6054, allocations: 109.2 kB / 0.6212 GB, free: 42.28 MB / 446.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.0007372/0.6061, allocations: 375.7 kB / 0.6216 GB, free: 42.01 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002841/0.6064, allocations: 135.5 kB / 0.6217 GB, free: 41.93 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004526/0.6109, allocations: 1.607 MB / 0.6233 GB, free: 41.11 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.223e-05/0.6109, allocations: 11.03 kB / 0.6233 GB, free: 41.11 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.003e-06/0.6109, allocations: 8.062 kB / 0.6233 GB, free: 41.1 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.292e-05/0.611, allocations: 5.359 kB / 0.6233 GB, free: 41.1 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002204/0.6132, allocations: 1.484 MB / 0.6248 GB, free: 40.05 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.564e-06/0.6132, allocations: 3.688 kB / 0.6248 GB, free: 40.05 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00118/0.6143, allocations: 239.6 kB / 0.625 GB, free: 40 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002265/0.6166, allocations: 354.6 kB / 0.6253 GB, free: 39.83 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.809e-05/0.6167, allocations: 43.61 kB / 0.6254 GB, free: 39.81 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004184/0.6209, allocations: 4.002 MB / 0.6293 GB, free: 36 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.6209, allocations: 0 / 0.6293 GB, free: 36 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004645/0.6255, allocations: 2.207 MB / 0.6314 GB, free: 34.68 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004048/0.6259, allocations: 201.3 kB / 0.6316 GB, free: 34.5 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001476/0.6261, allocations: 33.98 kB / 0.6317 GB, free: 34.48 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006731/0.6268, allocations: 26.97 kB / 0.6317 GB, free: 34.46 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002152/0.627, allocations: 104.2 kB / 0.6318 GB, free: 34.41 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.416e-05/0.6271, allocations: 54.03 kB / 0.6318 GB, free: 34.39 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0006552/0.6277, allocations: 0.5699 MB / 0.6324 GB, free: 34.06 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.6277, allocations: 0 / 0.6324 GB, free: 34.06 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002402/0.6301, allocations: 0.732 MB / 0.6331 GB, free: 33.89 MB / 446.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.001129/0.6312, allocations: 0.729 MB / 0.6338 GB, free: 33.53 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00232/0.6336, allocations: 1.468 MB / 0.6352 GB, free: 32.05 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.01e-06/0.6336, allocations: 0 / 0.6352 GB, free: 32.05 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001027/0.6346, allocations: 0.7748 MB / 0.636 GB, free: 31.25 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001253/0.6358, allocations: 247 kB / 0.6362 GB, free: 31.05 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004286/0.6401, allocations: 3.1 MB / 0.6393 GB, free: 28.03 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005511/0.6407, allocations: 1.252 MB / 0.6405 GB, free: 26.77 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005337/0.6412, allocations: 275.5 kB / 0.6408 GB, free: 26.5 MB / 446.1 MB Notification: Performance of SimCode: time 1.032e-06/0.6412, allocations: 0 / 0.6408 GB, free: 26.5 MB / 446.1 MB Notification: Performance of Templates: time 0.046/0.6872, allocations: 43.64 MB / 0.6834 GB, free: 15.54 MB / 478.1 MB " [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.684654519020114] Failed to read output from testmodel.py, exit status != 0: 0.6954715540050529 0.7088479560000001 0.473773243 Calling exit ...