Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_Chemical.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.001631/0.001631, allocations: 73.88 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.002014/0.002014, allocations: 173 kB / 24.06 MB, free: 452 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.9816/0.9816, allocations: 177.1 MB / 204.5 MB, free: 5.512 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.09405/0.09405, allocations: 17.47 MB / 278.5 MB, free: 11.41 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.Examples.WaterElectrolysis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_master_Chemical.Examples.WaterElectrolysis") translateModel(Chemical.Examples.WaterElectrolysis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_master_Chemical.Examples.WaterElectrolysis") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.483e-06/1.483e-06, allocations: 0 / 354.8 MB, free: 10.63 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.1e-05/1.248e-05, allocations: 9.547 kB / 354.8 MB, free: 10.62 MB / 330.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/Boundaries.mo:1343:7-1343:66: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/Boundaries.mo:1343:7-1343:66: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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/Boundaries.mo:1361:7-1361:76:writable] Warning: An inner declaration for outer component dropOfCommons could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/Boundaries.mo:1361:7-1361:76:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer \"dropOfCommons\" component but an inner \"dropOfCommons\" component is not defined. Use Chemical.DropOfCommons in your model to specify system properties. Notification: Performance of NFInst.instantiate(Chemical.Examples.WaterElectrolysis): time 0.03035/0.03036, allocations: 41.23 MB / 396 MB, free: 1.449 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.01919/0.04955, allocations: 17.69 MB / 413.7 MB, free: 15.69 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00225/0.0518, allocations: 107.2 kB / 413.8 MB, free: 15.58 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002733/0.05453, allocations: 1.471 MB / 415.3 MB, free: 14.1 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003203/0.05774, allocations: 2.024 MB / 417.3 MB, free: 12.06 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006373/0.06411, allocations: 5.22 MB / 422.5 MB, free: 6.82 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.004776/0.06889, allocations: 5.589 MB / 428.1 MB, free: 1.211 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001185/0.07007, allocations: 1.245 MB / 429.4 MB, free: 15.89 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002288/0.07236, allocations: 3.228 MB / 432.6 MB, free: 12.66 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002497/0.07486, allocations: 2.412 MB / 435 MB, free: 10.25 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004402/0.0753, allocations: 0.5234 MB / 435.5 MB, free: 9.723 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003533/0.07883, allocations: 2.055 MB / 437.6 MB, free: 7.664 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001019/0.07985, allocations: 1.659 MB / 439.2 MB, free: 6 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001784/0.08163, allocations: 1.874 MB / 441.1 MB, free: 4.121 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1918/0.2735, allocations: 6.323 MB / 447.4 MB, free: 82.11 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.2735, allocations: 0 / 447.4 MB, free: 82.11 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.2735, allocations: 3.344 kB / 447.4 MB, free: 82.11 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002413/0.2737, allocations: 0 / 447.4 MB, free: 82.11 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1520 * Number of variables: 1520 Notification: Performance of Generate backend data structure: time 0.006478/0.2802, allocations: 6.513 MB / 453.9 MB, free: 79.51 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.844e-05/0.2802, allocations: 9.688 kB / 454 MB, free: 79.51 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001933/0.2822, allocations: 1.994 MB / 456 MB, free: 79.14 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002132/0.2843, allocations: 2.576 MB / 458.5 MB, free: 78.46 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000241/0.2845, allocations: 0.6565 MB / 459.2 MB, free: 78.14 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003796/0.2849, allocations: 0.5011 MB / 459.7 MB, free: 78.13 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004175/0.2891, allocations: 5.201 MB / 464.9 MB, free: 77.69 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.68e-05/0.2891, allocations: 2.875 kB / 464.9 MB, free: 77.69 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000247/0.2894, allocations: 208.4 kB / 465.1 MB, free: 77.69 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003703/0.2898, allocations: 0.6315 MB / 465.7 MB, free: 77.68 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003969/0.2937, allocations: 5.167 MB / 470.9 MB, free: 77.55 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02539/0.3191, allocations: 19.85 MB / 490.7 MB, free: 68.82 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001809/0.3209, allocations: 1.128 MB / 491.9 MB, free: 68.58 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001078/0.322, allocations: 0.6211 MB / 492.5 MB, free: 68.52 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01107/0.3331, allocations: 8.428 MB / 0.4892 GB, free: 64.86 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.117e-05/0.3331, allocations: 56.69 kB / 0.4892 GB, free: 64.81 MB / 410.7 MB Notification: Performance of pre-optimization done (n=214): time 3.827e-06/0.3331, allocations: 0 / 0.4892 GB, free: 64.81 MB / 410.7 MB Notification: Performance of matching and sorting (n=273): time 0.04018/0.3733, allocations: 13.15 MB / 0.5021 GB, free: 56.01 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.005787/0.3791, allocations: 5.301 MB / 0.5073 GB, free: 50.97 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00182/0.3809, allocations: 2.292 MB / 0.5095 GB, free: 49.37 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008134/0.3817, allocations: 65.7 kB / 0.5096 GB, free: 49.3 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001123/0.3828, allocations: 2.842 MB / 0.5123 GB, free: 46.86 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008468/0.3837, allocations: 0.9743 MB / 0.5133 GB, free: 46.01 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001228/0.3849, allocations: 0.8421 MB / 0.5141 GB, free: 45.34 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.369e-05/0.3849, allocations: 480.7 kB / 0.5146 GB, free: 44.87 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001706/0.3867, allocations: 1.034 MB / 0.5156 GB, free: 43.99 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00209/0.3887, allocations: 2.453 MB / 0.518 GB, free: 41.23 MB / 410.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: electrone.state_out.u = 96485.33212331001 * electrone.definition.data.z * electrone.v_start (0.0 = 96485.33212331001 * electrone.definition.data.z * electrone.v_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.007118/0.3959, allocations: 5.942 MB / 0.5238 GB, free: 35.3 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.7e-05/0.3959, allocations: 12 kB / 0.5238 GB, free: 35.29 MB / 410.7 MB Notification: Performance of matching and sorting (n=423) (initialization): time 0.008176/0.4041, allocations: 4.565 MB / 0.5282 GB, free: 31 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.346e-05/0.4041, allocations: 19.19 kB / 0.5283 GB, free: 30.98 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003053/0.4044, allocations: 242.6 kB / 0.5285 GB, free: 30.75 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007195/0.4116, allocations: 2.191 MB / 0.5306 GB, free: 28.6 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004391/0.416, allocations: 1.171 MB / 0.5318 GB, free: 27.48 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006791/0.4228, allocations: 8.38 MB / 0.54 GB, free: 18.9 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002974/0.4257, allocations: 138.5 kB / 0.5401 GB, free: 18.77 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005117/0.4262, allocations: 416.5 kB / 0.5405 GB, free: 18.37 MB / 410.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: electrone.state_out.u = 96485.33212331001 * electrone.definition.data.z * electrone.v_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 142 * Number of states: 0 () * Number of discrete variables: 4 (reaction.processDefinition.data.phase,reaction.processDefinition.SelfClustering,liquidWater.substanceDefinitionVar.SelfClustering,liquidWater.substanceDefinitionVar.data.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (340): * Single equations (assignments): 335 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,4,77.8%), (1,20,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(6,20), (4,3)} Notification: Performance of prepare postOptimizeDAE: time 0.001712/0.428, allocations: 359.6 kB / 0.5408 GB, free: 18.05 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00113/0.4291, allocations: 434 kB / 0.5412 GB, free: 17.63 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009694/0.4388, allocations: 6.388 MB / 0.5475 GB, free: 11.63 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.956e-05/0.4388, allocations: 24 kB / 0.5475 GB, free: 11.61 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.125e-06/0.4388, allocations: 7.938 kB / 0.5475 GB, free: 11.6 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.676e-05/0.4388, allocations: 11.95 kB / 0.5475 GB, free: 11.59 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01478/0.4536, allocations: 10.08 MB / 0.5574 GB, free: 1.785 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.731e-05/0.4536, allocations: 12 kB / 0.5574 GB, free: 1.773 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002592/0.4562, allocations: 0.7365 MB / 0.5581 GB, free: 1.07 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008588/0.4648, allocations: 2.395 MB / 0.5604 GB, free: 14.73 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009006/0.4657, allocations: 119.9 kB / 0.5606 GB, free: 14.61 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009105/0.4748, allocations: 8.598 MB / 0.5689 GB, free: 5.789 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005769/0.4806, allocations: 4.814 MB / 0.5736 GB, free: 0.8008 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009568/0.4902, allocations: 4.466 MB / 0.578 GB, free: 12.28 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008265/0.491, allocations: 285.3 kB / 0.5783 GB, free: 12 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004837/0.4915, allocations: 55.94 kB / 0.5783 GB, free: 11.95 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008849/0.4923, allocations: 74.62 kB / 0.5784 GB, free: 11.88 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005481/0.4929, allocations: 250.8 kB / 0.5786 GB, free: 11.64 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002925/0.4932, allocations: 199.9 kB / 0.5788 GB, free: 11.44 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001436/0.4946, allocations: 1.256 MB / 0.5801 GB, free: 10.29 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.4946, allocations: 0 / 0.5801 GB, free: 10.29 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004216/0.4988, allocations: 1.535 MB / 0.5816 GB, free: 8.758 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 7 ($STATESET1.x,O2_gas.logn,H2_gas.logn,reaction.rr,anode.temperature,cathode.temperature,liquidWater.logm) * Number of discrete variables: 5 ($cse15.data.phase,$cse15.SelfClustering,$cse16.data.phase,$cse16.SelfClustering,reaction.processDefinition.data.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (191): * Single equations (assignments): 184 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,4,88.9%), (1,20,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(6,22), (5,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001213/0.5001, allocations: 0.5452 MB / 0.5821 GB, free: 8.328 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006932/0.507, allocations: 3.676 MB / 0.5857 GB, free: 4.734 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.905e-06/0.507, allocations: 0 / 0.5857 GB, free: 4.734 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003247/0.5102, allocations: 2.01 MB / 0.5876 GB, free: 2.766 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002588/0.5128, allocations: 0.7275 MB / 0.5884 GB, free: 2.102 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0135/0.5263, allocations: 9.26 MB / 0.5974 GB, free: 8.812 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0012/0.5275, allocations: 1.171 MB / 0.5985 GB, free: 7.617 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002673/0.5302, allocations: 0.8139 MB / 0.5993 GB, free: 6.906 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002243/0.5325, allocations: 0.8493 MB / 0.6002 GB, free: 6.062 MB / 458.7 MB Notification: Performance of SimCode: time 1.432e-06/0.5325, allocations: 0 / 0.6002 GB, free: 6.062 MB / 458.7 MB Notification: Performance of Templates: time 0.3111/0.8435, allocations: 113.7 MB / 0.7112 GB, free: 56.21 MB / 458.7 MB " [Timeout remaining time 659] make -j1 -f Chemical_master_Chemical.Examples.WaterElectrolysis.makefile [Timeout 660] (rm -f Chemical_master_Chemical.Examples.WaterElectrolysis.pipe ; mkfifo Chemical_master_Chemical.Examples.WaterElectrolysis.pipe ; head -c 1048576 < Chemical_master_Chemical.Examples.WaterElectrolysis.pipe >> ../files/Chemical_master_Chemical.Examples.WaterElectrolysis.sim & ./Chemical_master_Chemical.Examples.WaterElectrolysis -abortSlowSimulation -alarm=240 -lv LOG_STATS > Chemical_master_Chemical.Examples.WaterElectrolysis.pipe 2>&1) [Timeout 240] [Calling os._exit(0), Time elapsed: 5.930082018021494]