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.001692/0.001692, allocations: 105.6 kB / 16.35 MB, free: 5.824 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.00199/0.00199, allocations: 190.5 kB / 17.29 MB, free: 5.48 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.363/1.363, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.0972/0.0972, allocations: 15.31 MB / 306.5 MB, free: 15.42 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001482/0.001482, allocations: 65.55 kB / 371.7 MB, free: 50.78 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1032/0.1047, allocations: 53.62 MB / 425.4 MB, free: 13.3 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.03499/0.1397, allocations: 26.91 MB / 452.3 MB, free: 2.516 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02293/0.1627, allocations: 21.58 MB / 473.8 MB, free: 12.85 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001182/0.1639, allocations: 19.88 kB / 473.9 MB, free: 12.83 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001441/0.1653, allocations: 0.5352 MB / 474.4 MB, free: 12.29 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002778/0.1681, allocations: 1.001 MB / 475.4 MB, free: 11.28 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008816/0.177, allocations: 3.276 MB / 478.7 MB, free: 7.984 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002978/0.18, allocations: 1.801 MB / 480.5 MB, free: 6.176 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001222/0.1812, allocations: 0.9497 MB / 481.4 MB, free: 5.207 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009453/0.1822, allocations: 0.7907 MB / 482.2 MB, free: 4.414 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001123/0.1833, allocations: 0.8834 MB / 483.1 MB, free: 3.527 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002163/0.1835, allocations: 148 kB / 483.2 MB, free: 3.383 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007079/0.1906, allocations: 2.056 MB / 485.3 MB, free: 1.324 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005682/0.1912, allocations: 386.8 kB / 485.7 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001075/0.1923, allocations: 0.8049 MB / 486.5 MB, free: 140 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00928/0.2016, allocations: 3.935 MB / 490.4 MB, free: 12.19 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.2016, allocations: 0 / 490.4 MB, free: 12.19 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.2016, allocations: 0 / 490.4 MB, free: 12.19 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.551e-05/0.2017, allocations: 4 kB / 490.4 MB, free: 12.18 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.003606/0.2053, allocations: 2.081 MB / 492.5 MB, free: 10.05 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.959e-05/0.2054, allocations: 12.03 kB / 492.5 MB, free: 10.04 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0018/0.2072, allocations: 438.1 kB / 492.9 MB, free: 9.605 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001866/0.2091, allocations: 1.048 MB / 494 MB, free: 8.512 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000157/0.2092, allocations: 162.2 kB / 494.1 MB, free: 8.34 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002605/0.2095, allocations: 124 kB / 494.3 MB, free: 8.219 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002732/0.2122, allocations: 1.748 MB / 496 MB, free: 6.398 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.753e-05/0.2123, allocations: 3.984 kB / 496 MB, free: 6.395 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001276/0.2124, allocations: 52 kB / 496.1 MB, free: 6.344 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.341e-05/0.2124, allocations: 32 kB / 496.1 MB, free: 6.312 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003364/0.2158, allocations: 2.315 MB / 498.4 MB, free: 3.996 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008495/0.2243, allocations: 5.551 MB / 0.4922 GB, free: 14.25 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001303/0.2257, allocations: 0.7329 MB / 0.4929 GB, free: 13.49 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005781/0.2263, allocations: 356.4 kB / 0.4932 GB, free: 13.14 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007885/0.2342, allocations: 5.704 MB / 0.4988 GB, free: 6.734 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.028e-05/0.2342, allocations: 46.5 kB / 0.4988 GB, free: 6.68 MB / 382.1 MB Notification: Performance of pre-optimization done (n=37): time 2.584e-06/0.2343, allocations: 0 / 0.4988 GB, free: 6.68 MB / 382.1 MB Notification: Performance of matching and sorting (n=37): time 0.001478/0.2357, allocations: 0.7849 MB / 0.4996 GB, free: 5.844 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.06e-05/0.2358, allocations: 115 kB / 0.4997 GB, free: 5.707 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001408/0.2372, allocations: 1.294 MB / 0.501 GB, free: 4.402 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.956e-05/0.2373, allocations: 33.7 kB / 0.501 GB, free: 4.363 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005011/0.2378, allocations: 0.8382 MB / 0.5018 GB, free: 3.512 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000105/0.2379, allocations: 146.1 kB / 0.502 GB, free: 3.367 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000352/0.2383, allocations: 295.1 kB / 0.5022 GB, free: 3.074 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001312/0.2384, allocations: 353.9 kB / 0.5026 GB, free: 2.723 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004808/0.2389, allocations: 335.8 kB / 0.5029 GB, free: 2.395 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009811/0.2399, allocations: 1.156 MB / 0.504 GB, free: 0.8281 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2189/0.4588, allocations: 1.523 MB / 0.5055 GB, free: 76.44 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.551e-05/0.4588, allocations: 9.5 kB / 0.5055 GB, free: 76.44 MB / 382.1 MB Notification: Performance of matching and sorting (n=169) (initialization): time 0.002517/0.4614, allocations: 1.543 MB / 0.507 GB, free: 76.21 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.127e-05/0.4614, allocations: 17.91 kB / 0.507 GB, free: 76.21 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.536e-05/0.4615, allocations: 34.36 kB / 0.5071 GB, free: 76.21 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006957/0.4622, allocations: 159 kB / 0.5072 GB, free: 76.2 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001266/0.4635, allocations: 394.8 kB / 0.5076 GB, free: 76.17 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002377/0.4658, allocations: 4.071 MB / 0.5116 GB, free: 72.25 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001145/0.467, allocations: 188.9 kB / 0.5118 GB, free: 72.25 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001366/0.4671, allocations: 102.5 kB / 0.5119 GB, free: 72.25 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.0005325/0.4677, allocations: 339.7 kB / 0.5122 GB, free: 72.08 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001806/0.4679, allocations: 109.1 kB / 0.5123 GB, free: 72.06 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001693/0.4696, allocations: 0.9439 MB / 0.5132 GB, free: 71.85 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.4696, allocations: 2.594 kB / 0.5132 GB, free: 71.85 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.964e-06/0.4696, allocations: 1.25 kB / 0.5132 GB, free: 71.85 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.712e-06/0.4696, allocations: 5.469 kB / 0.5132 GB, free: 71.85 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002033/0.4716, allocations: 1.362 MB / 0.5145 GB, free: 71.29 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.322e-06/0.4717, allocations: 3.531 kB / 0.5146 GB, free: 71.29 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002538/0.4719, allocations: 63.14 kB / 0.5146 GB, free: 71.29 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007463/0.4727, allocations: 185.1 kB / 0.5148 GB, free: 71.23 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.407e-05/0.4727, allocations: 14.97 kB / 0.5148 GB, free: 71.22 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002034/0.4748, allocations: 3.944 MB / 0.5187 GB, free: 67.27 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/0.4748, allocations: 7.562 kB / 0.5187 GB, free: 67.27 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001155/0.4759, allocations: 0.9103 MB / 0.5195 GB, free: 66.66 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002443/0.4762, allocations: 187.9 kB / 0.5197 GB, free: 66.5 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001304/0.4763, allocations: 14.64 kB / 0.5197 GB, free: 66.49 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003665/0.4767, allocations: 8.406 kB / 0.5198 GB, free: 66.48 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.344e-05/0.4768, allocations: 39.77 kB / 0.5198 GB, free: 66.48 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.582e-05/0.4768, allocations: 19.77 kB / 0.5198 GB, free: 66.47 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001248/0.4781, allocations: 0.956 MB / 0.5207 GB, free: 66.07 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4781, allocations: 4.938 kB / 0.5207 GB, free: 66.07 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002335/0.4804, allocations: 0.6936 MB / 0.5214 GB, free: 65.96 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.001737/0.4822, allocations: 0.8351 MB / 0.5222 GB, free: 65.81 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001849/0.484, allocations: 0.8461 MB / 0.5231 GB, free: 65.55 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.592e-06/0.4841, allocations: 4.031 kB / 0.5231 GB, free: 65.55 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004973/0.4846, allocations: 395.7 kB / 0.5234 GB, free: 65.28 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001154/0.4857, allocations: 184.4 kB / 0.5236 GB, free: 65.22 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002918/0.4887, allocations: 1.959 MB / 0.5255 GB, free: 64.19 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005472/0.4892, allocations: 1.09 MB / 0.5266 GB, free: 63.48 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008745/0.4901, allocations: 318.8 kB / 0.5269 GB, free: 63.46 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002799/0.4904, allocations: 160 kB / 0.5271 GB, free: 63.45 MB / 382.1 MB Notification: Performance of SimCode: time 7.81e-07/0.4904, allocations: 1.812 kB / 0.5271 GB, free: 63.45 MB / 382.1 MB Notification: Performance of Templates: time 0.02903/0.5194, allocations: 21.13 MB / 0.5477 GB, free: 47.41 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 -s cvode -lv LOG_STATS > Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell.pipe 2>&1)