Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_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.0009766/0.0009766, allocations: 77.09 kB / 20.66 MB, free: 3.844 MB / 18.57 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.0009748/0.0009748, allocations: 169 kB / 24.06 MB, free: 456 kB / 18.57 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 0.9614/0.9614, allocations: 177.1 MB / 204.5 MB, free: 5.492 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo): time 0.08736/0.08736, allocations: 17.46 MB / 278.5 MB, free: 11.4 MB / 266.7 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/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_master_Chemical.Obsolete.Examples.WaterElectrolysis") translateModel(Chemical.Obsolete.Examples.WaterElectrolysis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_master_Chemical.Obsolete.Examples.WaterElectrolysis") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.212e-06/1.212e-06, allocations: 0 / 354.8 MB, free: 9.566 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.965e-05/2.086e-05, allocations: 5.688 kB / 354.8 MB, free: 9.562 MB / 282.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/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 master/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.02732/0.02734, allocations: 32.28 MB / 387.1 MB, free: 9.379 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01086/0.0382, allocations: 11.82 MB / 398.9 MB, free: 13.52 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009689/0.03917, allocations: 31.81 kB / 398.9 MB, free: 13.49 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007994/0.03997, allocations: 376.6 kB / 399.3 MB, free: 13.12 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002004/0.04198, allocations: 1.159 MB / 400.4 MB, free: 11.95 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002957/0.04493, allocations: 1.83 MB / 402.3 MB, free: 10.11 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001841/0.04677, allocations: 2.365 MB / 404.6 MB, free: 7.734 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001011/0.04778, allocations: 1.255 MB / 405.9 MB, free: 6.426 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001167/0.04895, allocations: 1.587 MB / 407.5 MB, free: 4.836 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008844/0.04984, allocations: 0.982 MB / 408.5 MB, free: 3.852 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000226/0.05006, allocations: 220 kB / 408.7 MB, free: 3.637 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001725/0.05179, allocations: 1.193 MB / 409.9 MB, free: 2.441 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003051/0.05209, allocations: 0.5217 MB / 410.4 MB, free: 1.918 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000553/0.05264, allocations: 0.8068 MB / 411.2 MB, free: 1.109 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.147/0.1997, allocations: 2.973 MB / 414.2 MB, free: 42.96 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.1997, allocations: 0 / 414.2 MB, free: 42.96 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.213e-06/0.1997, allocations: 0 / 414.2 MB, free: 42.96 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.474e-05/0.1998, allocations: 3.594 kB / 414.2 MB, free: 42.96 MB / 330.7 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.003994/0.2038, allocations: 2.491 MB / 416.7 MB, free: 41.82 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.603e-05/0.2038, allocations: 10 kB / 416.7 MB, free: 41.82 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001396/0.2052, allocations: 0.6743 MB / 417.4 MB, free: 41.61 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001208/0.2064, allocations: 0.9088 MB / 418.3 MB, free: 41.32 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001259/0.2065, allocations: 205.5 kB / 418.5 MB, free: 41.25 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002228/0.2068, allocations: 202 kB / 418.7 MB, free: 41.25 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001985/0.2087, allocations: 1.632 MB / 420.3 MB, free: 40.91 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.212e-05/0.2088, allocations: 2.344 kB / 420.3 MB, free: 40.91 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000137/0.2089, allocations: 88.61 kB / 420.4 MB, free: 40.9 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.863e-05/0.209, allocations: 49 kB / 420.4 MB, free: 40.9 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001601/0.2106, allocations: 1.275 MB / 421.7 MB, free: 40.86 MB / 330.7 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.005287/0.2158, allocations: 6.484 MB / 428.2 MB, free: 37.77 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001306/0.2172, allocations: 1.334 MB / 429.5 MB, free: 37.64 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002853/0.2174, allocations: 317.8 kB / 429.8 MB, free: 37.61 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004096/0.2215, allocations: 3.16 MB / 433 MB, free: 36.48 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.974e-05/0.2216, allocations: 47.89 kB / 433 MB, free: 36.43 MB / 330.7 MB Notification: Performance of pre-optimization done (n=88): time 4.378e-06/0.2216, allocations: 0 / 433 MB, free: 36.43 MB / 330.7 MB Notification: Performance of matching and sorting (n=106): time 0.008696/0.2303, allocations: 3.182 MB / 436.2 MB, free: 35.58 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.248e-05/0.2303, allocations: 115.6 kB / 436.3 MB, free: 35.46 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005893/0.2309, allocations: 0.8744 MB / 437.2 MB, free: 35.03 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.638e-05/0.231, allocations: 41.23 kB / 437.2 MB, free: 34.98 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003092/0.2313, allocations: 1.037 MB / 438.3 MB, free: 34.1 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001848/0.2314, allocations: 405.2 kB / 438.7 MB, free: 33.78 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002823/0.2317, allocations: 354.2 kB / 439 MB, free: 33.61 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.562e-05/0.2318, allocations: 0.5363 MB / 439.6 MB, free: 33.1 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002697/0.2321, allocations: 225.2 kB / 439.8 MB, free: 32.89 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005935/0.2327, allocations: 1.295 MB / 441.1 MB, free: 31.17 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009904/0.2337, allocations: 1.694 MB / 442.8 MB, free: 29.18 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.083e-05/0.2337, allocations: 8 kB / 442.8 MB, free: 29.17 MB / 330.7 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.002208/0.2359, allocations: 1.64 MB / 444.4 MB, free: 27.7 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.06e-05/0.2359, allocations: 18.66 kB / 444.4 MB, free: 27.68 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.378e-05/0.2359, allocations: 31.98 kB / 444.5 MB, free: 27.65 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001564/0.2375, allocations: 447.8 kB / 444.9 MB, free: 27.23 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008617/0.2384, allocations: 446.7 kB / 445.3 MB, free: 26.82 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00236/0.2407, allocations: 4.608 MB / 450 MB, free: 22.02 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007842/0.2415, allocations: 82.52 kB / 450 MB, free: 21.94 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.317e-05/0.2416, allocations: 92.86 kB / 450.1 MB, free: 21.85 MB / 330.7 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.0004224/0.242, allocations: 288.1 kB / 450.4 MB, free: 21.59 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000192/0.2422, allocations: 153.9 kB / 450.6 MB, free: 21.45 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001968/0.2442, allocations: 1.256 MB / 451.8 MB, free: 20.26 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.093e-06/0.2442, allocations: 12 kB / 451.8 MB, free: 20.25 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.2442, allocations: 0 / 451.8 MB, free: 20.25 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.807e-06/0.2442, allocations: 3.984 kB / 451.8 MB, free: 20.25 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001199/0.2454, allocations: 1.099 MB / 452.9 MB, free: 19.29 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.644e-06/0.2454, allocations: 7.938 kB / 452.9 MB, free: 19.28 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006941/0.2461, allocations: 239.6 kB / 453.2 MB, free: 19.06 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001562/0.2477, allocations: 422.3 kB / 453.6 MB, free: 18.65 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.291e-05/0.2477, allocations: 42.64 kB / 453.6 MB, free: 18.61 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002029/0.2498, allocations: 4.512 MB / 458.1 MB, free: 13.89 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.536e-06/0.2498, allocations: 10.22 kB / 458.1 MB, free: 13.88 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002064/0.2518, allocations: 1.727 MB / 459.9 MB, free: 12.12 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000195/0.252, allocations: 112 kB / 460 MB, free: 12.01 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.823e-05/0.2521, allocations: 24 kB / 460 MB, free: 11.99 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003351/0.2525, allocations: 28 kB / 460 MB, free: 11.96 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001405/0.2526, allocations: 112.4 kB / 460.1 MB, free: 11.85 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.745e-05/0.2527, allocations: 43.98 kB / 460.2 MB, free: 11.81 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002843/0.253, allocations: 456 kB / 460.6 MB, free: 11.39 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.253, allocations: 0 / 460.6 MB, free: 11.39 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001617/0.2546, allocations: 0.6161 MB / 461.2 MB, free: 10.78 MB / 330.7 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.0006945/0.2553, allocations: 0.5552 MB / 461.8 MB, free: 10.3 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001177/0.2564, allocations: 1.271 MB / 463.1 MB, free: 9.125 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.2564, allocations: 0 / 463.1 MB, free: 9.125 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005092/0.257, allocations: 0.7526 MB / 463.8 MB, free: 8.375 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000781/0.2577, allocations: 266.5 kB / 464.1 MB, free: 8.145 MB / 330.7 MB Error: Error parsing unit kDa: Unit not found Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003248/0.261, allocations: 2.793 MB / 466.9 MB, free: 5.395 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001723/0.2612, allocations: 283.7 kB / 467.2 MB, free: 5.098 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0006483/0.2618, allocations: 314.7 kB / 467.5 MB, free: 4.891 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004939/0.2623, allocations: 456.6 kB / 467.9 MB, free: 4.445 MB / 330.7 MB Notification: Performance of SimCode: time 1.102e-06/0.2623, allocations: 0 / 467.9 MB, free: 4.445 MB / 330.7 MB Notification: Performance of Templates: time 0.03006/0.2924, allocations: 25.51 MB / 493.4 MB, free: 12 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f Chemical_master_Chemical.Obsolete.Examples.WaterElectrolysis.makefile [Timeout 660] (rm -f Chemical_master_Chemical.Obsolete.Examples.WaterElectrolysis.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.WaterElectrolysis.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.WaterElectrolysis.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.WaterElectrolysis.sim & ./Chemical_master_Chemical.Obsolete.Examples.WaterElectrolysis -abortSlowSimulation -alarm=240 -lv LOG_STATS > Chemical_master_Chemical.Obsolete.Examples.WaterElectrolysis.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.753114772029221]