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.006104/0.006104, allocations: 100.8 kB / 15.87 MB, free: 5.867 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.001165/0.001165, allocations: 196 kB / 16.79 MB, free: 5.809 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.412/1.412, allocations: 222.9 MB / 240.5 MB, free: 4.555 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2348/0.2348, allocations: 15.31 MB / 305.9 MB, free: 15.33 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001267/0.001267, allocations: 59.91 kB / 370.3 MB, free: 4.422 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1139/0.1152, allocations: 53.61 MB / 423.9 MB, free: 14.76 MB / 366.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.4249/0.5402, allocations: 28.07 MB / 452 MB, free: 38.88 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01968/0.5599, allocations: 21.55 MB / 473.5 MB, free: 28.21 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001696/0.5616, allocations: 40.72 kB / 473.6 MB, free: 28.19 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001421/0.563, allocations: 495.9 kB / 474.1 MB, free: 27.93 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002631/0.5657, allocations: 0.9209 MB / 475 MB, free: 27.37 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008943/0.5746, allocations: 2.877 MB / 477.9 MB, free: 25.7 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002611/0.5773, allocations: 1.76 MB / 479.6 MB, free: 24.86 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009604/0.5782, allocations: 0.8091 MB / 480.4 MB, free: 24.51 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009047/0.5792, allocations: 0.7581 MB / 481.2 MB, free: 24.25 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009338/0.5801, allocations: 0.8666 MB / 482.1 MB, free: 23.91 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002177/0.5803, allocations: 101.2 kB / 482.2 MB, free: 23.9 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006935/0.5873, allocations: 2.011 MB / 484.2 MB, free: 23.4 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005528/0.5879, allocations: 338.3 kB / 484.5 MB, free: 23.22 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001139/0.589, allocations: 0.7536 MB / 485.2 MB, free: 22.8 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004692/0.5937, allocations: 2.896 MB / 488.1 MB, free: 21.57 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.5937, allocations: 0 / 488.1 MB, free: 21.57 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.5938, allocations: 1.125 kB / 488.1 MB, free: 21.57 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.399e-05/0.5938, allocations: 0 / 488.1 MB, free: 21.57 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.003858/0.5977, allocations: 2.089 MB / 490.2 MB, free: 20.26 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.885e-05/0.5977, allocations: 10.41 kB / 490.2 MB, free: 20.26 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001941/0.5997, allocations: 430.7 kB / 490.7 MB, free: 20.14 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001862/0.6016, allocations: 1.013 MB / 491.7 MB, free: 19.55 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001514/0.6017, allocations: 156.1 kB / 491.8 MB, free: 19.44 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002224/0.6019, allocations: 127 kB / 492 MB, free: 19.39 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002969/0.6049, allocations: 1.753 MB / 493.7 MB, free: 18.64 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.677e-05/0.605, allocations: 0 / 493.7 MB, free: 18.64 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001296/0.6051, allocations: 54.28 kB / 493.8 MB, free: 18.6 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.96e-05/0.6051, allocations: 28.72 kB / 493.8 MB, free: 18.6 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002943/0.6081, allocations: 2.318 MB / 496.1 MB, free: 17.93 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007457/0.6155, allocations: 5.574 MB / 0.4899 GB, free: 14.55 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001223/0.6168, allocations: 0.7321 MB / 0.4906 GB, free: 14.24 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005211/0.6173, allocations: 358.4 kB / 0.491 GB, free: 14.1 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007135/0.6245, allocations: 5.732 MB / 0.4966 GB, free: 9.469 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.091e-05/0.6245, allocations: 43.03 kB / 0.4966 GB, free: 9.418 MB / 366.1 MB Notification: Performance of pre-optimization done (n=37): time 1.874e-06/0.6245, allocations: 0 / 0.4966 GB, free: 9.418 MB / 366.1 MB Notification: Performance of matching and sorting (n=37): time 0.001363/0.6259, allocations: 0.7891 MB / 0.4974 GB, free: 8.637 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.142e-05/0.626, allocations: 114.8 kB / 0.4975 GB, free: 8.5 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001296/0.6273, allocations: 1.29 MB / 0.4988 GB, free: 7.383 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.409e-05/0.6273, allocations: 33.7 kB / 0.4988 GB, free: 7.344 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004286/0.6277, allocations: 0.8307 MB / 0.4996 GB, free: 6.578 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001027/0.6279, allocations: 151.1 kB / 0.4997 GB, free: 6.445 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003003/0.6282, allocations: 301 kB / 0.5 GB, free: 6.172 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.894e-05/0.6282, allocations: 354.2 kB / 0.5004 GB, free: 5.836 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00046/0.6287, allocations: 333.3 kB / 0.5007 GB, free: 5.555 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007326/0.6295, allocations: 1.155 MB / 0.5018 GB, free: 4.055 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001181/0.6306, allocations: 1.533 MB / 0.5033 GB, free: 2.164 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.398e-06/0.6307, allocations: 8 kB / 0.5033 GB, free: 2.156 MB / 366.1 MB Notification: Performance of matching and sorting (n=169) (initialization): time 0.002038/0.6327, allocations: 1.542 MB / 0.5048 GB, free: 0.7422 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.618e-05/0.6327, allocations: 19.94 kB / 0.5048 GB, free: 0.7227 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.216e-05/0.6328, allocations: 31.94 kB / 0.5049 GB, free: 0.6914 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006036/0.6334, allocations: 160.3 kB / 0.505 GB, free: 0.5547 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001004/0.6344, allocations: 395.8 kB / 0.5054 GB, free: 220 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002839/0.6372, allocations: 3.879 MB / 0.5092 GB, free: 12.1 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001136/0.6384, allocations: 188 kB / 0.5094 GB, free: 11.91 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001377/0.6385, allocations: 104 kB / 0.5095 GB, free: 11.82 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.0004964/0.639, allocations: 327 kB / 0.5098 GB, free: 11.49 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002024/0.6393, allocations: 115.1 kB / 0.5099 GB, free: 11.38 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001951/0.6412, allocations: 0.9447 MB / 0.5108 GB, free: 10.52 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.702e-06/0.6412, allocations: 7.938 kB / 0.5108 GB, free: 10.51 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.6412, allocations: 7.984 kB / 0.5108 GB, free: 10.5 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.6413, allocations: 1.594 kB / 0.5108 GB, free: 10.5 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002168/0.6434, allocations: 1.368 MB / 0.5122 GB, free: 9.277 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.372e-06/0.6434, allocations: 4 kB / 0.5122 GB, free: 9.273 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002566/0.6437, allocations: 56.7 kB / 0.5122 GB, free: 9.227 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007384/0.6445, allocations: 188.5 kB / 0.5124 GB, free: 9.062 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.158e-05/0.6445, allocations: 14.48 kB / 0.5124 GB, free: 9.051 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002457/0.647, allocations: 3.74 MB / 0.5161 GB, free: 5.062 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.647, allocations: 4 kB / 0.5161 GB, free: 5.059 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001255/0.6482, allocations: 0.9111 MB / 0.517 GB, free: 4.117 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002811/0.6485, allocations: 187.5 kB / 0.5171 GB, free: 3.914 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001492/0.6487, allocations: 15.91 kB / 0.5172 GB, free: 3.898 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000393/0.6491, allocations: 12 kB / 0.5172 GB, free: 3.887 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.032e-05/0.6492, allocations: 43.89 kB / 0.5172 GB, free: 3.844 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.065e-05/0.6492, allocations: 20 kB / 0.5172 GB, free: 3.824 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001121/0.6503, allocations: 0.9586 MB / 0.5182 GB, free: 2.863 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6503, allocations: 3.938 kB / 0.5182 GB, free: 2.859 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00223/0.6526, allocations: 0.6824 MB / 0.5188 GB, free: 2.176 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.001528/0.6541, allocations: 0.8428 MB / 0.5197 GB, free: 1.324 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001659/0.6558, allocations: 0.838 MB / 0.5205 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.6558, allocations: 0 / 0.5205 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004842/0.6563, allocations: 390.5 kB / 0.5208 GB, free: 88 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001171/0.6575, allocations: 186.5 kB / 0.521 GB, free: 15.91 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003166/0.6607, allocations: 2.482 MB / 0.5235 GB, free: 13.36 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006044/0.6613, allocations: 1.095 MB / 0.5245 GB, free: 12.23 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004352/0.6617, allocations: 219.3 kB / 0.5247 GB, free: 12.02 MB / 398.1 MB Notification: Performance of SimCode: time 5.11e-07/0.6617, allocations: 0 / 0.5247 GB, free: 12.02 MB / 398.1 MB Notification: Performance of Templates: time 0.04201/0.7037, allocations: 40.35 MB / 0.5641 GB, free: 3.691 MB / 430.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)