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.001174/0.001174, allocations: 80.81 kB / 19.94 MB, free: 4.547 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.001302/0.001302, allocations: 173 kB / 23.36 MB, free: 1.133 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.9565/0.9565, allocations: 177.1 MB / 203.8 MB, free: 5.48 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.08706/0.08706, allocations: 17.46 MB / 277.7 MB, free: 11.44 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.613e-06/1.613e-06, allocations: 0 / 300.7 MB, free: 1.785 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.474e-05/2.635e-05, allocations: 8.094 kB / 300.7 MB, free: 1.777 MB / 266.7 MB [/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. [/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. Notification: Performance of NFInst.instantiate(Chemical.Examples.WaterElectrolysis): time 0.04404/0.04407, allocations: 47.04 MB / 347.8 MB, free: 5.324 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.02179/0.06586, allocations: 18.15 MB / 365.9 MB, free: 3.094 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004073/0.06993, allocations: 103.2 kB / 366 MB, free: 2.992 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004242/0.07417, allocations: 1.517 MB / 367.5 MB, free: 1.465 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01188/0.08605, allocations: 2.036 MB / 369.6 MB, free: 15.41 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01727/0.1033, allocations: 5.302 MB / 374.9 MB, free: 10.09 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.01346/0.1168, allocations: 5.577 MB / 380.4 MB, free: 4.484 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01088/0.1277, allocations: 1.289 MB / 381.7 MB, free: 3.109 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008471/0.1361, allocations: 3.22 MB / 385 MB, free: 15.88 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00661/0.1427, allocations: 2.369 MB / 387.3 MB, free: 13.51 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009096/0.1436, allocations: 0.5234 MB / 387.8 MB, free: 12.98 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003655/0.1473, allocations: 2.032 MB / 389.9 MB, free: 10.95 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009208/0.1482, allocations: 1.667 MB / 391.5 MB, free: 9.277 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001593/0.1498, allocations: 1.87 MB / 393.4 MB, free: 7.402 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004906/0.1547, allocations: 6.321 MB / 399.7 MB, free: 1.059 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.1547, allocations: 0 / 399.7 MB, free: 1.059 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1547, allocations: 0 / 399.7 MB, free: 1.059 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001252/0.1549, allocations: 0 / 399.7 MB, free: 1.059 MB / 362.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.005406/0.1603, allocations: 5.917 MB / 405.7 MB, free: 11.07 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.083e-05/0.1603, allocations: 12.03 kB / 405.7 MB, free: 11.06 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002/0.1623, allocations: 1.785 MB / 407.5 MB, free: 9.277 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001981/0.1643, allocations: 1.792 MB / 409.2 MB, free: 7.414 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003297/0.1646, allocations: 0.6559 MB / 409.9 MB, free: 6.695 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004038/0.165, allocations: 0.4925 MB / 410.4 MB, free: 6.203 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0045/0.1695, allocations: 5.298 MB / 415.7 MB, free: 0.8477 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.457e-05/0.1696, allocations: 192 / 415.7 MB, free: 0.8477 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002352/0.1698, allocations: 212.1 kB / 415.9 MB, free: 0.6406 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004441/0.1702, allocations: 0.6281 MB / 416.5 MB, free: 12 kB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004384/0.1746, allocations: 5.233 MB / 421.8 MB, free: 10.77 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01773/0.1924, allocations: 16.06 MB / 437.8 MB, free: 10.54 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001568/0.1939, allocations: 1.034 MB / 438.9 MB, free: 9.496 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001235/0.1952, allocations: 0.4947 MB / 439.3 MB, free: 9.004 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01477/0.2099, allocations: 7.23 MB / 446.6 MB, free: 1.746 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.38e-05/0.21, allocations: 52.56 kB / 446.6 MB, free: 1.688 MB / 410.7 MB Notification: Performance of pre-optimization done (n=214): time 4.328e-06/0.21, allocations: 4 kB / 446.6 MB, free: 1.684 MB / 410.7 MB Notification: Performance of matching and sorting (n=273): time 0.1809/0.3909, allocations: 12.49 MB / 459.1 MB, free: 92.75 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.006778/0.3977, allocations: 3.923 MB / 463 MB, free: 90.17 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002024/0.3997, allocations: 1.768 MB / 464.8 MB, free: 89.96 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007611/0.4005, allocations: 62.48 kB / 464.9 MB, free: 89.93 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00108/0.4016, allocations: 2.254 MB / 467.1 MB, free: 89.04 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001091/0.4027, allocations: 0.9628 MB / 468.1 MB, free: 88.52 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001633/0.4043, allocations: 0.6819 MB / 468.8 MB, free: 88.48 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.165e-05/0.4043, allocations: 303.5 kB / 469.1 MB, free: 88.18 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002354/0.4067, allocations: 0.929 MB / 470 MB, free: 88.16 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002632/0.4093, allocations: 1.897 MB / 471.9 MB, free: 87.01 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.009512/0.4188, allocations: 5.141 MB / 477 MB, free: 85.81 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.192e-05/0.4189, allocations: 10.25 kB / 477 MB, free: 85.81 MB / 410.7 MB Notification: Performance of matching and sorting (n=423) (initialization): time 0.00952/0.4284, allocations: 3.612 MB / 480.7 MB, free: 85.67 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.269e-05/0.4284, allocations: 17.94 kB / 480.7 MB, free: 85.67 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004108/0.4288, allocations: 153.1 kB / 480.8 MB, free: 85.67 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009267/0.4381, allocations: 2.194 MB / 483 MB, free: 85.52 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00524/0.4433, allocations: 1.043 MB / 484.1 MB, free: 84.78 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00607/0.4494, allocations: 6.198 MB / 490.3 MB, free: 79.07 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002716/0.4521, allocations: 145.5 kB / 490.4 MB, free: 78.98 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005824/0.4527, allocations: 355.4 kB / 490.7 MB, free: 78.67 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.001989/0.4547, allocations: 313.6 kB / 491.1 MB, free: 78.5 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001096/0.4558, allocations: 319.4 kB / 491.4 MB, free: 78.23 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008415/0.4642, allocations: 5.424 MB / 496.8 MB, free: 73.87 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.718e-05/0.4642, allocations: 29.05 kB / 496.8 MB, free: 73.85 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.31e-05/0.4642, allocations: 8 kB / 496.8 MB, free: 73.84 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.462e-05/0.4643, allocations: 11.95 kB / 496.8 MB, free: 73.83 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01221/0.4765, allocations: 7.737 MB / 0.4927 GB, free: 66.98 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.689e-05/0.4765, allocations: 12 kB / 0.4928 GB, free: 66.97 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002174/0.4787, allocations: 0.6659 MB / 0.4934 GB, free: 66.34 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006952/0.4856, allocations: 2.539 MB / 0.4959 GB, free: 63.87 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003159/0.4859, allocations: 90.53 kB / 0.496 GB, free: 63.79 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005354/0.4913, allocations: 6.375 MB / 0.5022 GB, free: 57.27 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003671/0.4949, allocations: 3.585 MB / 0.5057 GB, free: 53.56 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006351/0.5013, allocations: 3.718 MB / 0.5093 GB, free: 49.83 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004597/0.5018, allocations: 276.9 kB / 0.5096 GB, free: 49.56 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003454/0.5021, allocations: 62.45 kB / 0.5097 GB, free: 49.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007588/0.5029, allocations: 71.97 kB / 0.5097 GB, free: 49.43 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003826/0.5032, allocations: 223.6 kB / 0.5099 GB, free: 49.22 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002064/0.5035, allocations: 167.9 kB / 0.5101 GB, free: 49.05 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.000726/0.5042, allocations: 0.9703 MB / 0.511 GB, free: 48.19 MB / 410.7 MB Notification: Performance of sort global known variables: time 6e-08/0.5042, allocations: 0 / 0.511 GB, free: 48.19 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003376/0.5076, allocations: 1.536 MB / 0.5125 GB, free: 46.65 MB / 410.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.0007315/0.5083, allocations: 0.5292 MB / 0.5131 GB, free: 46.24 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004677/0.513, allocations: 3.094 MB / 0.5161 GB, free: 43.25 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.33e-05/0.513, allocations: 42.47 kB / 0.5161 GB, free: 43.21 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002059/0.5151, allocations: 1.648 MB / 0.5177 GB, free: 41.62 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002087/0.5172, allocations: 0.681 MB / 0.5184 GB, free: 41.02 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01171/0.5289, allocations: 9.247 MB / 0.5274 GB, free: 31.76 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008845/0.5297, allocations: 1.136 MB / 0.5285 GB, free: 30.6 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002313/0.5321, allocations: 0.8116 MB / 0.5293 GB, free: 29.91 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002152/0.5342, allocations: 0.7176 MB / 0.53 GB, free: 29.19 MB / 410.7 MB Notification: Performance of SimCode: time 2.034e-06/0.5342, allocations: 0 / 0.53 GB, free: 29.19 MB / 410.7 MB Notification: Performance of Templates: time 0.2418/0.776, allocations: 111.2 MB / 0.6386 GB, free: 120.8 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.459487459156662]