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.0008693/0.0008693, allocations: 76.45 kB / 19.9 MB, free: 8 kB / 13.93 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.0007542/0.0007542, allocations: 170.3 kB / 23.18 MB, free: 1.375 MB / 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.9/0.9, allocations: 177.2 MB / 203.6 MB, free: 5.773 MB / 186.7 MB " [Timeout remaining time 179] 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.08089/0.08089, allocations: 17.38 MB / 277.4 MB, free: 11.88 MB / 266.7 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.0008692/0.0008692, allocations: 71.89 kB / 412.8 MB, free: 15.89 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.269/0.2699, allocations: 59.83 MB / 472.6 MB, free: 29.74 MB / 410.7 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.03851/0.3084, allocations: 28.95 MB / 0.4898 GB, free: 17.65 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.01538/0.3237, allocations: 15.79 MB / 0.5053 GB, free: 3.918 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001197/0.3249, allocations: 31.81 kB / 0.5053 GB, free: 3.887 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001095/0.326, allocations: 445.4 kB / 0.5057 GB, free: 3.559 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002742/0.3288, allocations: 1.305 MB / 0.507 GB, free: 2.445 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006092/0.3349, allocations: 2.583 MB / 0.5095 GB, free: 320 kB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.002149/0.337, allocations: 2.285 MB / 0.5117 GB, free: 14.24 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001443/0.3385, allocations: 1.184 MB / 0.5129 GB, free: 13.28 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001614/0.3401, allocations: 1.58 MB / 0.5144 GB, free: 11.98 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001215/0.3413, allocations: 1.02 MB / 0.5154 GB, free: 11.19 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002623/0.3416, allocations: 224 kB / 0.5157 GB, free: 10.97 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003666/0.3452, allocations: 1.741 MB / 0.5174 GB, free: 9.383 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004375/0.3457, allocations: 0.5037 MB / 0.5178 GB, free: 8.965 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007673/0.3464, allocations: 0.9198 MB / 0.5187 GB, free: 8.125 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004958/0.3514, allocations: 4.357 MB / 0.523 GB, free: 4.379 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.334e-06/0.3514, allocations: 7.875 kB / 0.523 GB, free: 4.371 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.156e-06/0.3514, allocations: 4 kB / 0.523 GB, free: 4.367 MB / 426.7 MB Notification: Performance of Transformations before backend: time 2.202e-05/0.3514, allocations: 0 / 0.523 GB, free: 4.367 MB / 426.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.002963/0.3544, allocations: 2.478 MB / 0.5254 GB, free: 1.844 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.543e-05/0.3544, allocations: 11.97 kB / 0.5254 GB, free: 1.832 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009976/0.3554, allocations: 445.2 kB / 0.5259 GB, free: 1.398 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001301/0.3567, allocations: 1.051 MB / 0.5269 GB, free: 328 kB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001601/0.3569, allocations: 203.7 kB / 0.5271 GB, free: 112 kB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000225/0.3571, allocations: 204 kB / 0.5273 GB, free: 15.91 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002319/0.3594, allocations: 2.16 MB / 0.5294 GB, free: 13.68 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.989e-05/0.3595, allocations: 3.938 kB / 0.5294 GB, free: 13.68 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001304/0.3596, allocations: 84 kB / 0.5295 GB, free: 13.59 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.084e-05/0.3596, allocations: 48 kB / 0.5295 GB, free: 13.55 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002499/0.3621, allocations: 2.21 MB / 0.5317 GB, free: 11.33 MB / 442.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.006193/0.3683, allocations: 5.849 MB / 0.5374 GB, free: 5.316 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001844/0.3702, allocations: 1.501 MB / 0.5389 GB, free: 3.797 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005932/0.3708, allocations: 0.5335 MB / 0.5394 GB, free: 3.25 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00455/0.3753, allocations: 3.303 MB / 0.5426 GB, free: 15.92 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.167e-05/0.3753, allocations: 47.55 kB / 0.5427 GB, free: 15.87 MB / 458.7 MB Notification: Performance of pre-optimization done (n=88): time 3.396e-06/0.3753, allocations: 0 / 0.5427 GB, free: 15.87 MB / 458.7 MB Notification: Performance of matching and sorting (n=106): time 0.009916/0.3853, allocations: 4.667 MB / 0.5472 GB, free: 11.17 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.414e-05/0.3853, allocations: 115.8 kB / 0.5473 GB, free: 11.04 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007186/0.386, allocations: 0.867 MB / 0.5482 GB, free: 10.14 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 5.495e-05/0.3861, allocations: 41.7 kB / 0.5482 GB, free: 10.1 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004655/0.3866, allocations: 0.9787 MB / 0.5492 GB, free: 9.105 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002233/0.3868, allocations: 396.7 kB / 0.5495 GB, free: 8.715 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003103/0.3871, allocations: 347.4 kB / 0.5499 GB, free: 8.367 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001179/0.3872, allocations: 353.9 kB / 0.5502 GB, free: 8.016 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005546/0.3878, allocations: 459.7 kB / 0.5506 GB, free: 7.566 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001453/0.3892, allocations: 1.191 MB / 0.5518 GB, free: 6.023 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00228/0.3915, allocations: 1.802 MB / 0.5536 GB, free: 3.863 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.272e-05/0.3915, allocations: 8 kB / 0.5536 GB, free: 3.855 MB / 458.7 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.003884/0.3954, allocations: 2.058 MB / 0.5556 GB, free: 1.785 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.853e-05/0.3954, allocations: 20.09 kB / 0.5556 GB, free: 1.766 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.364e-05/0.3955, allocations: 24 kB / 0.5556 GB, free: 1.742 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001507/0.397, allocations: 381.9 kB / 0.556 GB, free: 1.359 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001038/0.398, allocations: 447.2 kB / 0.5564 GB, free: 0.9219 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00495/0.403, allocations: 3.805 MB / 0.5601 GB, free: 12.89 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001152/0.4041, allocations: 83.92 kB / 0.5602 GB, free: 12.8 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001565/0.4043, allocations: 116 kB / 0.5603 GB, free: 12.69 MB / 474.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.0008323/0.4051, allocations: 381 kB / 0.5607 GB, free: 12.31 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000221/0.4053, allocations: 127.2 kB / 0.5608 GB, free: 12.18 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002983/0.4083, allocations: 1.59 MB / 0.5624 GB, free: 10.57 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.532e-05/0.4083, allocations: 15.94 kB / 0.5624 GB, free: 10.56 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.394e-06/0.4084, allocations: 0 / 0.5624 GB, free: 10.56 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.522e-05/0.4084, allocations: 11.97 kB / 0.5624 GB, free: 10.55 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002314/0.4107, allocations: 1.113 MB / 0.5635 GB, free: 9.371 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.025e-05/0.4107, allocations: 7.938 kB / 0.5635 GB, free: 9.363 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006925/0.4114, allocations: 236.1 kB / 0.5637 GB, free: 9.133 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001319/0.4127, allocations: 350.1 kB / 0.564 GB, free: 8.781 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001266/0.4128, allocations: 47.98 kB / 0.5641 GB, free: 8.734 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00362/0.4165, allocations: 3.724 MB / 0.5677 GB, free: 4.777 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.078e-06/0.4165, allocations: 8.125 kB / 0.5677 GB, free: 4.77 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003515/0.42, allocations: 2.2 MB / 0.5699 GB, free: 2.512 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003545/0.4203, allocations: 103.2 kB / 0.57 GB, free: 2.41 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.228e-05/0.4204, allocations: 31.92 kB / 0.57 GB, free: 2.379 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005068/0.4209, allocations: 32 kB / 0.57 GB, free: 2.348 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002341/0.4212, allocations: 108.7 kB / 0.5701 GB, free: 2.242 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.534e-05/0.4213, allocations: 55.97 kB / 0.5702 GB, free: 2.188 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001154/0.4224, allocations: 0.5007 MB / 0.5707 GB, free: 1.676 MB / 474.7 MB Notification: Performance of sort global known variables: time 4e-08/0.4224, allocations: 0 / 0.5707 GB, free: 1.676 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002841/0.4253, allocations: 0.7289 MB / 0.5714 GB, free: 0.9453 MB / 474.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.001612/0.4269, allocations: 0.7235 MB / 0.5721 GB, free: 220 kB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.002536/0.4294, allocations: 1.471 MB / 0.5735 GB, free: 14.71 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 6.643e-06/0.4294, allocations: 0 / 0.5735 GB, free: 14.71 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009242/0.4303, allocations: 0.7781 MB / 0.5743 GB, free: 13.92 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001036/0.4314, allocations: 236.8 kB / 0.5745 GB, free: 13.7 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005493/0.4369, allocations: 3.055 MB / 0.5775 GB, free: 10.57 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007271/0.4376, allocations: 0.6721 MB / 0.5782 GB, free: 9.867 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.0009817/0.4386, allocations: 330.1 kB / 0.5785 GB, free: 9.543 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003358/0.4389, allocations: 208.4 kB / 0.5787 GB, free: 9.34 MB / 490.7 MB Notification: Performance of SimCode: time 3.336e-06/0.4389, allocations: 3.938 kB / 0.5787 GB, free: 9.336 MB / 490.7 MB Notification: Performance of Templates: time 0.03592/0.4748, allocations: 24.66 MB / 0.6028 GB, free: 0.8516 MB / 0.4948 GB " [Timeout remaining time 660] 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: 3.8267318080179393] Failed to read output from testmodel.py, exit status != 0: 0.48270877602044493 0.49450811200000006 0.141127255 Calling exit ...