Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo", uses=false) Using package Chemical with version 1.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell") translateModel(Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001287/0.001287, allocations: 109.9 kB / 15.99 MB, free: 6.359 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001423/0.001423, allocations: 198.8 kB / 16.91 MB, free: 6.191 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.358/1.358, allocations: 222.9 MB / 240.6 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.09236/0.09236, allocations: 15.3 MB / 306 MB, free: 15.68 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001255/0.001255, allocations: 57.38 kB / 370.5 MB, free: 51.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09989/0.1012, allocations: 53.61 MB / 424.1 MB, free: 14.76 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:4740:7-4740: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 1.4.1-master/package.mo:4740:7-4740: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.CheckSubstancesData.StandardElectrochemicalCell): time 0.03407/0.1353, allocations: 28.07 MB / 452.1 MB, free: 2.793 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02295/0.1582, allocations: 21.36 MB / 473.5 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00178/0.1601, allocations: 43.69 kB / 473.5 MB, free: 13.31 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001781/0.1619, allocations: 0.4891 MB / 474 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003321/0.1652, allocations: 0.9122 MB / 474.9 MB, free: 11.9 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008914/0.1742, allocations: 2.956 MB / 477.9 MB, free: 8.93 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002673/0.1769, allocations: 1.817 MB / 479.7 MB, free: 7.105 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00131/0.1782, allocations: 0.9379 MB / 480.7 MB, free: 6.145 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001182/0.1794, allocations: 0.818 MB / 481.5 MB, free: 5.324 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001274/0.1807, allocations: 0.9029 MB / 482.4 MB, free: 4.418 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003799/0.1811, allocations: 148 kB / 482.5 MB, free: 4.273 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005953/0.187, allocations: 2.106 MB / 484.6 MB, free: 2.164 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005765/0.1876, allocations: 394.8 kB / 485 MB, free: 1.777 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001258/0.1889, allocations: 0.8088 MB / 485.8 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004677/0.1936, allocations: 2.943 MB / 488.8 MB, free: 14.01 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.1936, allocations: 3.938 kB / 488.8 MB, free: 14.01 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.1936, allocations: 0 / 488.8 MB, free: 14.01 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.472e-05/0.1937, allocations: 0 / 488.8 MB, free: 14.01 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 323 * Number of variables: 323 Notification: Performance of Generate backend data structure: time 0.003818/0.1976, allocations: 2.093 MB / 490.9 MB, free: 11.86 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.317e-05/0.1976, allocations: 8.031 kB / 490.9 MB, free: 11.85 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001834/0.1994, allocations: 442.1 kB / 491.3 MB, free: 11.42 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001777/0.2012, allocations: 1.005 MB / 492.3 MB, free: 10.37 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001559/0.2014, allocations: 158.3 kB / 492.5 MB, free: 10.2 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002529/0.2017, allocations: 120 kB / 492.6 MB, free: 10.08 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002989/0.2047, allocations: 1.76 MB / 494.3 MB, free: 8.25 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.377e-05/0.2047, allocations: 0 / 494.3 MB, free: 8.25 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001478/0.2049, allocations: 52 kB / 494.4 MB, free: 8.199 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.17e-05/0.2049, allocations: 32 kB / 494.4 MB, free: 8.168 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003396/0.2083, allocations: 2.327 MB / 496.7 MB, free: 5.84 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009079/0.2174, allocations: 5.555 MB / 0.4905 GB, free: 92 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001341/0.2188, allocations: 0.7486 MB / 0.4913 GB, free: 15.32 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005743/0.2194, allocations: 360.3 kB / 0.4916 GB, free: 14.96 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007686/0.2271, allocations: 5.716 MB / 0.4972 GB, free: 8.543 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.561e-05/0.2271, allocations: 42.55 kB / 0.4972 GB, free: 8.492 MB / 382.1 MB Notification: Performance of pre-optimization done (n=37): time 1.693e-06/0.2271, allocations: 0 / 0.4972 GB, free: 8.492 MB / 382.1 MB Notification: Performance of matching and sorting (n=37): time 0.001554/0.2287, allocations: 0.7888 MB / 0.498 GB, free: 7.652 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.028e-05/0.2287, allocations: 115 kB / 0.4981 GB, free: 7.516 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00154/0.2303, allocations: 1.291 MB / 0.4994 GB, free: 6.215 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.132e-05/0.2303, allocations: 33.64 kB / 0.4994 GB, free: 6.176 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005696/0.2309, allocations: 0.8343 MB / 0.5002 GB, free: 5.328 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001221/0.231, allocations: 142.2 kB / 0.5003 GB, free: 5.188 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003566/0.2314, allocations: 291.1 kB / 0.5006 GB, free: 4.898 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001506/0.2316, allocations: 357.9 kB / 0.501 GB, free: 4.543 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005214/0.2321, allocations: 339.8 kB / 0.5013 GB, free: 4.211 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001034/0.2331, allocations: 1.152 MB / 0.5024 GB, free: 2.648 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001658/0.2348, allocations: 1.53 MB / 0.5039 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.422e-05/0.2348, allocations: 11.94 kB / 0.5039 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of matching and sorting (n=169) (initialization): time 0.1867/0.4216, allocations: 1.536 MB / 0.5054 GB, free: 78.21 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.321e-05/0.4216, allocations: 18.44 kB / 0.5054 GB, free: 78.21 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.98e-05/0.4217, allocations: 36.56 kB / 0.5055 GB, free: 78.21 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006389/0.4223, allocations: 159.5 kB / 0.5056 GB, free: 78.2 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001193/0.4235, allocations: 396.7 kB / 0.506 GB, free: 78.2 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002116/0.4257, allocations: 4.079 MB / 0.51 GB, free: 74.3 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009891/0.4267, allocations: 192.3 kB / 0.5102 GB, free: 74.29 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001093/0.4268, allocations: 101.8 kB / 0.5103 GB, free: 74.29 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 133 * 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 (167): * Single equations (assignments): 163 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0004379/0.4272, allocations: 326.3 kB / 0.5106 GB, free: 74.13 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000171/0.4274, allocations: 112.7 kB / 0.5107 GB, free: 74.11 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001846/0.4293, allocations: 0.9516 MB / 0.5116 GB, free: 73.89 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.689e-06/0.4293, allocations: 7.875 kB / 0.5116 GB, free: 73.89 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.114e-06/0.4293, allocations: 0 / 0.5116 GB, free: 73.89 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.202e-06/0.4293, allocations: 4.141 kB / 0.5116 GB, free: 73.89 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00195/0.4313, allocations: 1.363 MB / 0.513 GB, free: 73.45 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.74e-06/0.4313, allocations: 5.969 kB / 0.513 GB, free: 73.45 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002497/0.4315, allocations: 58 kB / 0.513 GB, free: 73.45 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007671/0.4323, allocations: 179.7 kB / 0.5132 GB, free: 73.41 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.417e-05/0.4324, allocations: 18.44 kB / 0.5132 GB, free: 73.41 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001969/0.4343, allocations: 3.948 MB / 0.5171 GB, free: 69.51 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.897e-06/0.4344, allocations: 3.031 kB / 0.5171 GB, free: 69.51 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001173/0.4355, allocations: 0.9094 MB / 0.518 GB, free: 68.9 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001975/0.4358, allocations: 184.4 kB / 0.5181 GB, free: 68.74 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001401/0.4359, allocations: 14.47 kB / 0.5181 GB, free: 68.73 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000399/0.4363, allocations: 17.2 kB / 0.5182 GB, free: 68.72 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.918e-05/0.4364, allocations: 45.66 kB / 0.5182 GB, free: 68.71 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.538e-05/0.4364, allocations: 15.39 kB / 0.5182 GB, free: 68.71 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001188/0.4376, allocations: 0.9614 MB / 0.5192 GB, free: 68.3 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4376, allocations: 0 / 0.5192 GB, free: 68.3 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002155/0.4398, allocations: 0.6826 MB / 0.5198 GB, free: 68.2 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 2 (cathode.temperature,anode.temperature) * 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 (30): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,1), (1,1), (1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001649/0.4415, allocations: 0.8356 MB / 0.5206 GB, free: 68.05 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001682/0.4431, allocations: 0.8608 MB / 0.5215 GB, free: 67.78 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.4432, allocations: 0 / 0.5215 GB, free: 67.78 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004706/0.4436, allocations: 394.1 kB / 0.5219 GB, free: 67.51 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001198/0.4448, allocations: 193.2 kB / 0.522 GB, free: 67.45 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002776/0.4476, allocations: 2.484 MB / 0.5245 GB, free: 65.93 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004684/0.4481, allocations: 1.096 MB / 0.5255 GB, free: 65.21 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003722/0.4485, allocations: 222 kB / 0.5258 GB, free: 65.19 MB / 382.1 MB Notification: Performance of SimCode: time 5.31e-07/0.4485, allocations: 0 / 0.5258 GB, free: 65.19 MB / 382.1 MB Notification: Performance of Templates: time 0.03277/0.4813, allocations: 40.35 MB / 0.5652 GB, free: 30.03 MB / 382.1 MB make -j1 -f Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell.makefile (rm -f Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell.pipe ; mkfifo Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell.pipe ; head -c 1048576 < Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell.pipe >> ../files/Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell.sim & ./Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell.pipe 2>&1)