Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2.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.StandardElectrochemicalCell2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2") translateModel(Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007999/0.0008, 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.00525/0.00525, allocations: 169.6 kB / 16.27 MB, free: 6.652 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.33/1.33, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.226/0.226, allocations: 15.28 MB / 306.7 MB, free: 15.72 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004108/0.0004109, allocations: 11.94 kB / 372.1 MB, free: 3.625 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3111/0.3116, allocations: 54.62 MB / 426.7 MB, free: 40.14 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.StandardElectrochemicalCell2): time 0.02723/0.3388, allocations: 26.24 MB / 452.9 MB, free: 30.95 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01725/0.3561, allocations: 17.95 MB / 470.9 MB, free: 18.56 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001661/0.3578, allocations: 32.72 kB / 470.9 MB, free: 18.55 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001506/0.3594, allocations: 432 kB / 471.4 MB, free: 18.32 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002815/0.3622, allocations: 0.7741 MB / 472.1 MB, free: 17.85 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007827/0.37, allocations: 2.446 MB / 474.6 MB, free: 16.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002666/0.3727, allocations: 1.591 MB / 476.2 MB, free: 15.67 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001323/0.3741, allocations: 0.7598 MB / 476.9 MB, free: 15.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001373/0.3755, allocations: 0.6408 MB / 477.6 MB, free: 15.12 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00131/0.3768, allocations: 0.751 MB / 478.3 MB, free: 14.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003241/0.3771, allocations: 76 kB / 478.4 MB, free: 14.5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006114/0.3833, allocations: 1.7 MB / 480.1 MB, free: 12.96 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000487/0.3838, allocations: 286.1 kB / 480.4 MB, free: 12.74 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001136/0.3849, allocations: 0.7025 MB / 481.1 MB, free: 12.08 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008202/0.3931, allocations: 3.186 MB / 484.3 MB, free: 9.547 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.3932, allocations: 0 / 484.3 MB, free: 9.547 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.076e-06/0.3932, allocations: 4 kB / 484.3 MB, free: 9.543 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.665e-05/0.3933, allocations: 3.938 kB / 484.3 MB, free: 9.539 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: 303 * Number of variables: 303 Notification: Performance of Generate backend data structure: time 0.00352/0.3968, allocations: 1.64 MB / 485.9 MB, free: 8 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.064e-05/0.3968, allocations: 8.031 kB / 485.9 MB, free: 7.992 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001709/0.3986, allocations: 387.6 kB / 486.3 MB, free: 7.68 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001555/0.4001, allocations: 0.9346 MB / 487.2 MB, free: 6.875 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001451/0.4003, allocations: 151.6 kB / 487.4 MB, free: 6.715 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003205/0.4006, allocations: 116 kB / 487.5 MB, free: 6.602 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002832/0.4035, allocations: 1.646 MB / 489.1 MB, free: 5.199 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.476e-05/0.4035, allocations: 0 / 489.1 MB, free: 5.199 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001412/0.4037, allocations: 52 kB / 489.2 MB, free: 5.148 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.942e-05/0.4037, allocations: 28 kB / 489.2 MB, free: 5.121 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002887/0.4066, allocations: 2.108 MB / 491.3 MB, free: 3.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007583/0.4142, allocations: 5.397 MB / 496.7 MB, free: 14.54 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001366/0.4156, allocations: 0.7222 MB / 497.4 MB, free: 13.86 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006535/0.4162, allocations: 362.9 kB / 497.8 MB, free: 13.54 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007467/0.4237, allocations: 4.942 MB / 0.491 GB, free: 8.551 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.932e-05/0.4238, allocations: 35.31 kB / 0.491 GB, free: 8.508 MB / 366.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003527/0.4241, allocations: 86.81 kB / 0.4911 GB, free: 8.422 MB / 366.1 MB Notification: Performance of pre-optimization done (n=34): time 5.411e-06/0.4242, allocations: 7.922 kB / 0.4911 GB, free: 8.414 MB / 366.1 MB Notification: Performance of matching and sorting (n=34): time 0.001441/0.4256, allocations: 0.7523 MB / 0.4918 GB, free: 7.668 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.097e-05/0.4257, allocations: 110.8 kB / 0.4919 GB, free: 7.535 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001601/0.4273, allocations: 1.194 MB / 0.4931 GB, free: 6.492 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.712e-05/0.4274, allocations: 33.7 kB / 0.4931 GB, free: 6.453 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006075/0.428, allocations: 0.7671 MB / 0.4939 GB, free: 5.746 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001216/0.4281, allocations: 137.4 kB / 0.494 GB, free: 5.625 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001485/0.4283, allocations: 105.5 kB / 0.4941 GB, free: 5.531 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001541/0.4284, allocations: 353.4 kB / 0.4944 GB, free: 5.195 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00055/0.429, allocations: 321.4 kB / 0.4947 GB, free: 4.922 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001069/0.43, allocations: 1.045 MB / 0.4958 GB, free: 3.574 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001585/0.4316, allocations: 1.392 MB / 0.4971 GB, free: 1.863 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.64e-05/0.4317, allocations: 8 kB / 0.4971 GB, free: 1.855 MB / 366.1 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.002222/0.4339, allocations: 1.445 MB / 0.4985 GB, free: 412 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.169e-05/0.4339, allocations: 19.98 kB / 0.4986 GB, free: 392 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.383e-05/0.434, allocations: 27.94 kB / 0.4986 GB, free: 364 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005851/0.4346, allocations: 149.8 kB / 0.4987 GB, free: 208 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001086/0.4357, allocations: 383.4 kB / 0.4991 GB, free: 15.83 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002969/0.4386, allocations: 3.872 MB / 0.5029 GB, free: 11.63 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001019/0.4397, allocations: 75.81 kB / 0.5029 GB, free: 11.55 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001537/0.4399, allocations: 91.98 kB / 0.503 GB, free: 11.46 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 119 * 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 (155): * Single equations (assignments): 151 * 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.0005653/0.4404, allocations: 317.1 kB / 0.5033 GB, free: 11.14 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002207/0.4407, allocations: 102.7 kB / 0.5034 GB, free: 11.04 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00182/0.4425, allocations: 0.851 MB / 0.5043 GB, free: 10.14 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.734e-06/0.4425, allocations: 11.94 kB / 0.5043 GB, free: 10.13 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.4425, allocations: 4 kB / 0.5043 GB, free: 10.13 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.664e-06/0.4425, allocations: 3.984 kB / 0.5043 GB, free: 10.12 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002092/0.4446, allocations: 1.256 MB / 0.5055 GB, free: 8.785 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.394e-05/0.4446, allocations: 4 kB / 0.5055 GB, free: 8.781 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002417/0.4449, allocations: 59.91 kB / 0.5056 GB, free: 8.723 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007511/0.4457, allocations: 175.5 kB / 0.5057 GB, free: 8.539 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.726e-05/0.4457, allocations: 12 kB / 0.5058 GB, free: 8.527 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002658/0.4484, allocations: 3.754 MB / 0.5094 GB, free: 4.441 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.4484, allocations: 4.031 kB / 0.5094 GB, free: 4.438 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001189/0.4496, allocations: 0.8553 MB / 0.5103 GB, free: 3.531 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002922/0.4499, allocations: 203.7 kB / 0.5105 GB, free: 3.312 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000133/0.45, allocations: 8 kB / 0.5105 GB, free: 3.305 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003646/0.4504, allocations: 15.98 kB / 0.5105 GB, free: 3.289 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.452e-05/0.4505, allocations: 31.91 kB / 0.5105 GB, free: 3.258 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.798e-05/0.4505, allocations: 16 kB / 0.5105 GB, free: 3.242 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001102/0.4516, allocations: 0.8889 MB / 0.5114 GB, free: 2.348 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4516, allocations: 0 / 0.5114 GB, free: 2.348 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00253/0.4541, allocations: 0.616 MB / 0.512 GB, free: 1.73 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (27): * Single equations (assignments): 23 * 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.4558, allocations: 0.7245 MB / 0.5127 GB, free: 1 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001657/0.4575, allocations: 0.7827 MB / 0.5135 GB, free: 228 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.376e-06/0.4575, allocations: 8.062 kB / 0.5135 GB, free: 220 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005232/0.458, allocations: 377.2 kB / 0.5138 GB, free: 15.82 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001296/0.4593, allocations: 164.9 kB / 0.514 GB, free: 15.66 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0033/0.4626, allocations: 2.356 MB / 0.5163 GB, free: 13.25 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007422/0.4634, allocations: 1.075 MB / 0.5173 GB, free: 12.15 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001047/0.4645, allocations: 282.9 kB / 0.5176 GB, free: 11.88 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002732/0.4647, allocations: 135.4 kB / 0.5177 GB, free: 11.74 MB / 398.1 MB Notification: Performance of SimCode: time 5.31e-07/0.4648, allocations: 0 / 0.5177 GB, free: 11.74 MB / 398.1 MB Notification: Performance of Templates: time 0.02835/0.4931, allocations: 18.1 MB / 0.5354 GB, free: 9.691 MB / 414.1 MB make -j1 -f Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2.makefile (rm -f Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe ; mkfifo Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe ; head -c 1048576 < Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe >> ../files/Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2.sim & ./Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe 2>&1)