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/Chemical 1.4.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/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/Chemical 1.4.0-master/package.mo): time 0.09089/0.09089, allocations: 15.29 MB / 31.08 MB, free: 3.113 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001404/0.001404, allocations: 202 kB / 36.14 MB, free: 2.141 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.371/1.371, allocations: 222.9 MB / 264 MB, free: 4.945 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00112/0.00112, allocations: 107.1 kB / 318.4 MB, free: 3.438 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009838/0.0009838, allocations: 59.48 kB / 382.7 MB, free: 48.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08746/0.08846, allocations: 53.61 MB / 436.3 MB, free: 1.039 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:4721:7-4721: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.0-master/package.mo:4721:7-4721: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.03166/0.1202, allocations: 25.59 MB / 461.9 MB, free: 7.543 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.02192/0.1421, allocations: 21.57 MB / 483.5 MB, free: 1.895 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00171/0.1439, allocations: 39.69 kB / 483.5 MB, free: 1.855 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001461/0.1453, allocations: 496.8 kB / 484 MB, free: 1.367 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003493/0.1488, allocations: 0.92 MB / 484.9 MB, free: 452 kB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008882/0.1577, allocations: 2.882 MB / 487.8 MB, free: 13.54 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.002521/0.1603, allocations: 1.778 MB / 489.6 MB, free: 11.76 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009985/0.1613, allocations: 0.8013 MB / 490.4 MB, free: 10.93 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008347/0.1621, allocations: 0.7672 MB / 491.2 MB, free: 10.16 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000895/0.1631, allocations: 0.86 MB / 492 MB, free: 9.297 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00017/0.1632, allocations: 92 kB / 492.1 MB, free: 9.207 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005773/0.169, allocations: 2.024 MB / 494.1 MB, free: 7.18 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004747/0.1695, allocations: 330.8 kB / 494.5 MB, free: 6.855 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008927/0.1704, allocations: 0.7618 MB / 495.2 MB, free: 6.09 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007882/0.1783, allocations: 3.682 MB / 498.9 MB, free: 2.395 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.1784, allocations: 0 / 498.9 MB, free: 2.395 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1784, allocations: 0 / 498.9 MB, free: 2.395 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.058e-05/0.1784, allocations: 0 / 498.9 MB, free: 2.395 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: 323 * Number of variables: 323 Notification: Performance of Generate backend data structure: time 0.003215/0.1816, allocations: 2.085 MB / 0.4892 GB, free: 260 kB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.662e-05/0.1817, allocations: 8.875 kB / 0.4892 GB, free: 252 kB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001585/0.1833, allocations: 438.1 kB / 0.4897 GB, free: 15.82 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001557/0.1848, allocations: 1.009 MB / 0.4907 GB, free: 14.77 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001346/0.185, allocations: 162.2 kB / 0.4908 GB, free: 14.59 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001823/0.1852, allocations: 123.9 kB / 0.4909 GB, free: 14.47 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002395/0.1876, allocations: 1.748 MB / 0.4926 GB, free: 12.65 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.487e-05/0.1876, allocations: 7.938 kB / 0.4926 GB, free: 12.64 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001347/0.1878, allocations: 56 kB / 0.4927 GB, free: 12.59 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.267e-05/0.1878, allocations: 32 kB / 0.4927 GB, free: 12.56 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003123/0.1909, allocations: 2.319 MB / 0.495 GB, free: 10.24 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00793/0.1989, allocations: 5.563 MB / 0.5004 GB, free: 4.48 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001341/0.2002, allocations: 0.7484 MB / 0.5012 GB, free: 3.707 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005531/0.2008, allocations: 364.4 kB / 0.5015 GB, free: 3.344 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1798/0.3806, allocations: 5.706 MB / 0.5071 GB, free: 68.35 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.501e-05/0.3807, allocations: 42.67 kB / 0.5071 GB, free: 68.31 MB / 378.7 MB Notification: Performance of pre-optimization done (n=37): time 3.076e-06/0.3807, allocations: 0 / 0.5071 GB, free: 68.31 MB / 378.7 MB Notification: Performance of matching and sorting (n=37): time 0.0018/0.3825, allocations: 0.8018 MB / 0.5079 GB, free: 68.07 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.189e-05/0.3826, allocations: 107.9 kB / 0.508 GB, free: 67.94 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001733/0.3843, allocations: 1.286 MB / 0.5093 GB, free: 67.79 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.805e-05/0.3844, allocations: 36.83 kB / 0.5093 GB, free: 67.76 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004836/0.3848, allocations: 0.8391 MB / 0.5101 GB, free: 67.31 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001211/0.385, allocations: 145.7 kB / 0.5102 GB, free: 67.23 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004259/0.3854, allocations: 290.3 kB / 0.5105 GB, free: 67.2 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.369e-05/0.3855, allocations: 355.2 kB / 0.5109 GB, free: 66.89 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007134/0.3862, allocations: 336.5 kB / 0.5112 GB, free: 66.89 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001077/0.3873, allocations: 1.153 MB / 0.5123 GB, free: 65.82 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001751/0.3891, allocations: 1.529 MB / 0.5138 GB, free: 64.78 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.448e-05/0.3891, allocations: 10.5 kB / 0.5138 GB, free: 64.78 MB / 378.7 MB Notification: Performance of matching and sorting (n=169) (initialization): time 0.002115/0.3912, allocations: 1.553 MB / 0.5153 GB, free: 64.49 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.071e-05/0.3913, allocations: 18.06 kB / 0.5153 GB, free: 64.49 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.044e-05/0.3913, allocations: 28.94 kB / 0.5154 GB, free: 64.49 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005784/0.3919, allocations: 153.1 kB / 0.5155 GB, free: 64.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001062/0.393, allocations: 397.3 kB / 0.5159 GB, free: 64.45 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001867/0.3948, allocations: 3.872 MB / 0.5197 GB, free: 60.68 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008861/0.3957, allocations: 188.5 kB / 0.5199 GB, free: 60.58 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001563/0.3959, allocations: 104.7 kB / 0.52 GB, free: 60.58 MB / 378.7 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.0004202/0.3963, allocations: 331.4 kB / 0.5203 GB, free: 60.42 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001784/0.3965, allocations: 114.1 kB / 0.5204 GB, free: 60.36 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001776/0.3983, allocations: 0.9506 MB / 0.5213 GB, free: 60.14 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.26e-06/0.3983, allocations: 3.656 kB / 0.5213 GB, free: 60.14 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.945e-06/0.3983, allocations: 3.125 kB / 0.5213 GB, free: 60.14 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.3983, allocations: 1.312 kB / 0.5213 GB, free: 60.14 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00195/0.4003, allocations: 1.357 MB / 0.5226 GB, free: 59.71 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.39e-06/0.4003, allocations: 3.156 kB / 0.5226 GB, free: 59.71 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002373/0.4006, allocations: 64.28 kB / 0.5227 GB, free: 59.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006918/0.4013, allocations: 190.1 kB / 0.5229 GB, free: 59.66 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.197e-05/0.4013, allocations: 18.41 kB / 0.5229 GB, free: 59.66 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001755/0.4031, allocations: 3.745 MB / 0.5266 GB, free: 56.04 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.708e-06/0.4031, allocations: 6.75 kB / 0.5266 GB, free: 56.04 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002891/0.406, allocations: 2.812 MB / 0.5293 GB, free: 54.52 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001638/0.4062, allocations: 187.7 kB / 0.5295 GB, free: 54.36 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001096/0.4063, allocations: 16.11 kB / 0.5295 GB, free: 54.35 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003626/0.4066, allocations: 16.95 kB / 0.5295 GB, free: 54.35 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.103e-05/0.4067, allocations: 41.33 kB / 0.5296 GB, free: 54.34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.047e-05/0.4068, allocations: 18.3 kB / 0.5296 GB, free: 54.34 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001007/0.4078, allocations: 0.9571 MB / 0.5305 GB, free: 53.98 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4078, allocations: 0 / 0.5305 GB, free: 53.98 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002336/0.4101, allocations: 0.8104 MB / 0.5313 GB, free: 53.85 MB / 378.7 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.001263/0.4114, allocations: 0.8324 MB / 0.5321 GB, free: 53.7 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001526/0.4129, allocations: 0.8407 MB / 0.5329 GB, free: 53.44 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.4129, allocations: 2.109 kB / 0.5329 GB, free: 53.44 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004062/0.4134, allocations: 395.9 kB / 0.5333 GB, free: 53.16 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001024/0.4144, allocations: 180.5 kB / 0.5335 GB, free: 53.1 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002648/0.417, allocations: 2.662 MB / 0.5361 GB, free: 51.42 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004033/0.4175, allocations: 1.105 MB / 0.5372 GB, free: 50.71 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0009617/0.4184, allocations: 317.9 kB / 0.5375 GB, free: 50.7 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002184/0.4187, allocations: 163.7 kB / 0.5376 GB, free: 50.68 MB / 378.7 MB Notification: Performance of SimCode: time 3.2e-07/0.4187, allocations: 0 / 0.5376 GB, free: 50.68 MB / 378.7 MB Notification: Performance of Templates: time 0.02364/0.4423, allocations: 20.97 MB / 0.5581 GB, free: 34.82 MB / 378.7 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)