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.0009595/0.0009595, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.00773/0.007731, allocations: 171.4 kB / 16.27 MB, free: 6.32 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.375/1.375, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2101/0.2101, allocations: 15.27 MB / 306.7 MB, free: 15.7 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003631/0.0003631, allocations: 8 kB / 372.1 MB, free: 3.617 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3278/0.3282, allocations: 54.63 MB / 426.7 MB, free: 40.27 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:3019:6-3019:65: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:3019:6-3019:65: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.02978/0.358, allocations: 26.96 MB / 453.7 MB, free: 30.64 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02147/0.3795, allocations: 21.31 MB / 475 MB, free: 15.68 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002065/0.3816, allocations: 38.03 kB / 475 MB, free: 15.66 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001937/0.3836, allocations: 487.1 kB / 475.5 MB, free: 15.41 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003842/0.3874, allocations: 0.9259 MB / 476.4 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01167/0.3991, allocations: 2.88 MB / 479.3 MB, free: 13.17 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002968/0.4021, allocations: 1.754 MB / 481.1 MB, free: 11.78 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001286/0.4035, allocations: 0.7753 MB / 481.8 MB, free: 11.14 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001221/0.4047, allocations: 0.7269 MB / 482.6 MB, free: 10.49 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001342/0.4061, allocations: 0.8202 MB / 483.4 MB, free: 9.816 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003904/0.4065, allocations: 80 kB / 483.5 MB, free: 9.738 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006792/0.4133, allocations: 2.008 MB / 485.5 MB, free: 7.922 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005039/0.4138, allocations: 308.1 kB / 485.8 MB, free: 7.684 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001106/0.4149, allocations: 0.7617 MB / 486.5 MB, free: 6.969 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009056/0.424, allocations: 3.645 MB / 490.2 MB, free: 4.035 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.424, allocations: 0 / 490.2 MB, free: 4.035 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.424, allocations: 0 / 490.2 MB, free: 4.035 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.094e-05/0.4241, allocations: 0 / 490.2 MB, free: 4.035 MB / 350.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.003432/0.4276, allocations: 1.762 MB / 491.9 MB, free: 2.387 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.067e-05/0.4276, allocations: 15.97 kB / 492 MB, free: 2.371 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001884/0.4295, allocations: 438.8 kB / 492.4 MB, free: 2.016 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001744/0.4313, allocations: 0.9874 MB / 493.4 MB, free: 1.172 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001308/0.4314, allocations: 158.9 kB / 493.5 MB, free: 1.004 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003624/0.4318, allocations: 124.6 kB / 493.6 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003346/0.4351, allocations: 1.753 MB / 495.4 MB, free: 15.4 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.834e-05/0.4352, allocations: 3.938 kB / 495.4 MB, free: 15.4 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001678/0.4354, allocations: 56 kB / 495.5 MB, free: 15.34 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.74e-05/0.4354, allocations: 35.94 kB / 495.5 MB, free: 15.31 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003813/0.4392, allocations: 2.314 MB / 497.8 MB, free: 13.33 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009355/0.4486, allocations: 5.546 MB / 0.4916 GB, free: 8.434 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001454/0.4501, allocations: 0.7324 MB / 0.4923 GB, free: 7.754 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006646/0.4508, allocations: 358.3 kB / 0.4926 GB, free: 7.434 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008075/0.4589, allocations: 5.596 MB / 0.4981 GB, free: 1.617 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.188e-05/0.4589, allocations: 46.42 kB / 0.4981 GB, free: 1.562 MB / 366.1 MB Notification: Performance of pre-optimization done (n=37): time 2.054e-06/0.459, allocations: 0 / 0.4981 GB, free: 1.562 MB / 366.1 MB Notification: Performance of matching and sorting (n=37): time 0.001616/0.4606, allocations: 0.7888 MB / 0.4989 GB, free: 0.7227 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.57e-05/0.4607, allocations: 115 kB / 0.499 GB, free: 0.5859 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001721/0.4624, allocations: 1.287 MB / 0.5003 GB, free: 15.29 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.024e-05/0.4625, allocations: 33.7 kB / 0.5003 GB, free: 15.25 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000573/0.4631, allocations: 0.8342 MB / 0.5011 GB, free: 14.4 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001367/0.4632, allocations: 146.2 kB / 0.5012 GB, free: 14.26 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001322/0.4633, allocations: 109.7 kB / 0.5013 GB, free: 14.14 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000128/0.4635, allocations: 353.9 kB / 0.5017 GB, free: 13.79 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005469/0.464, allocations: 335.8 kB / 0.502 GB, free: 13.46 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001063/0.4651, allocations: 1.159 MB / 0.5031 GB, free: 11.89 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001809/0.4669, allocations: 1.525 MB / 0.5046 GB, free: 9.961 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.28e-05/0.4669, allocations: 8 kB / 0.5046 GB, free: 9.953 MB / 382.1 MB Notification: Performance of matching and sorting (n=169) (initialization): time 0.00269/0.4696, allocations: 1.559 MB / 0.5062 GB, free: 8.383 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.594e-05/0.4697, allocations: 16 kB / 0.5062 GB, free: 8.367 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.54e-05/0.4698, allocations: 31.94 kB / 0.5062 GB, free: 8.336 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006932/0.4705, allocations: 153.4 kB / 0.5063 GB, free: 8.18 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001143/0.4716, allocations: 407.5 kB / 0.5067 GB, free: 7.781 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003128/0.4748, allocations: 3.872 MB / 0.5105 GB, free: 3.578 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00136/0.4761, allocations: 186.1 kB / 0.5107 GB, free: 3.395 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002201/0.4764, allocations: 99.98 kB / 0.5108 GB, free: 3.297 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.000698/0.4771, allocations: 341 kB / 0.5111 GB, free: 2.953 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000232/0.4773, allocations: 110.6 kB / 0.5112 GB, free: 2.844 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002037/0.4794, allocations: 0.9442 MB / 0.5121 GB, free: 1.844 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.053e-05/0.4794, allocations: 7.938 kB / 0.5122 GB, free: 1.836 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.866e-06/0.4794, allocations: 0 / 0.5122 GB, free: 1.836 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.91e-06/0.4794, allocations: 0 / 0.5122 GB, free: 1.836 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002633/0.4821, allocations: 1.36 MB / 0.5135 GB, free: 392 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.144e-06/0.4821, allocations: 4 kB / 0.5135 GB, free: 388 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002529/0.4823, allocations: 59.91 kB / 0.5135 GB, free: 328 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008037/0.4832, allocations: 187.2 kB / 0.5137 GB, free: 128 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.69e-05/0.4832, allocations: 16 kB / 0.5137 GB, free: 112 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002652/0.4859, allocations: 3.746 MB / 0.5174 GB, free: 12.04 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.069e-06/0.4859, allocations: 11.88 kB / 0.5174 GB, free: 12.02 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001261/0.4872, allocations: 0.9009 MB / 0.5183 GB, free: 11.07 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004199/0.4876, allocations: 223.4 kB / 0.5185 GB, free: 10.83 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001842/0.4878, allocations: 12 kB / 0.5185 GB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004233/0.4882, allocations: 12 kB / 0.5185 GB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.894e-05/0.4883, allocations: 47.83 kB / 0.5186 GB, free: 10.76 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.24e-05/0.4883, allocations: 16.06 kB / 0.5186 GB, free: 10.74 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001268/0.4896, allocations: 0.9625 MB / 0.5195 GB, free: 9.777 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.4896, allocations: 0 / 0.5195 GB, free: 9.777 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002202/0.4918, allocations: 0.6902 MB / 0.5202 GB, free: 9.086 MB / 398.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.4936, allocations: 0.838 MB / 0.521 GB, free: 8.238 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001707/0.4953, allocations: 0.8346 MB / 0.5218 GB, free: 7.41 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.4953, allocations: 0 / 0.5218 GB, free: 7.41 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004998/0.4958, allocations: 391.8 kB / 0.5222 GB, free: 7.004 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001632/0.4975, allocations: 186.7 kB / 0.5224 GB, free: 6.82 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003369/0.5008, allocations: 2.53 MB / 0.5249 GB, free: 4.227 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006966/0.5016, allocations: 1.091 MB / 0.5259 GB, free: 3.105 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001205/0.5028, allocations: 322.8 kB / 0.5262 GB, free: 2.793 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002873/0.5031, allocations: 155.4 kB / 0.5264 GB, free: 2.641 MB / 398.1 MB Notification: Performance of SimCode: time 7.62e-07/0.5031, allocations: 4 kB / 0.5264 GB, free: 2.637 MB / 398.1 MB Notification: Performance of Templates: time 0.03536/0.5384, allocations: 20.42 MB / 0.5463 GB, free: 14.26 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)