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.001166/0.001166, allocations: 107 kB / 16.37 MB, free: 6.477 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.001044/0.001044, allocations: 195.8 kB / 17.31 MB, free: 5.824 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.362/1.362, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.07969/0.07969, allocations: 15.3 MB / 306.5 MB, free: 15.45 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001285/0.001286, allocations: 61.23 kB / 371.7 MB, free: 50.86 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1029/0.1042, allocations: 53.61 MB / 425.4 MB, free: 13.34 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.03356/0.1378, allocations: 26.91 MB / 452.3 MB, free: 2.547 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02416/0.162, allocations: 21.57 MB / 473.8 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001329/0.1633, allocations: 19.88 kB / 473.9 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001465/0.1648, allocations: 0.5391 MB / 474.4 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002891/0.1677, allocations: 0.997 MB / 475.4 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008776/0.1765, allocations: 3.276 MB / 478.7 MB, free: 8.02 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002612/0.1791, allocations: 1.817 MB / 480.5 MB, free: 6.195 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001069/0.1802, allocations: 0.9418 MB / 481.4 MB, free: 5.234 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007977/0.181, allocations: 0.7946 MB / 482.2 MB, free: 4.438 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009748/0.182, allocations: 0.8795 MB / 483.1 MB, free: 3.555 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001871/0.1822, allocations: 148 kB / 483.3 MB, free: 3.41 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006361/0.1886, allocations: 2.059 MB / 485.3 MB, free: 1.348 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004257/0.189, allocations: 382.8 kB / 485.7 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008657/0.1899, allocations: 0.8049 MB / 486.5 MB, free: 168 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009246/0.1992, allocations: 3.931 MB / 490.4 MB, free: 12.22 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.1992, allocations: 0 / 490.4 MB, free: 12.22 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.1992, allocations: 4 kB / 490.4 MB, free: 12.21 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.675e-05/0.1992, allocations: 0 / 490.4 MB, free: 12.21 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.003252/0.2025, allocations: 2.085 MB / 492.5 MB, free: 10.07 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.851e-05/0.2025, allocations: 12.03 kB / 492.5 MB, free: 10.06 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001636/0.2042, allocations: 434.1 kB / 492.9 MB, free: 9.637 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001713/0.2059, allocations: 1.052 MB / 494 MB, free: 8.539 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001341/0.2061, allocations: 158.3 kB / 494.2 MB, free: 8.371 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001969/0.2063, allocations: 120 kB / 494.3 MB, free: 8.254 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002438/0.2087, allocations: 1.756 MB / 496 MB, free: 6.426 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.36e-05/0.2087, allocations: 0 / 496 MB, free: 6.426 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001227/0.2089, allocations: 56 kB / 496.1 MB, free: 6.371 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.814e-05/0.2089, allocations: 32 kB / 496.1 MB, free: 6.34 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003381/0.2123, allocations: 2.319 MB / 498.4 MB, free: 4.02 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00815/0.2205, allocations: 5.551 MB / 0.4922 GB, free: 14.27 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001369/0.2219, allocations: 0.729 MB / 0.4929 GB, free: 13.52 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005813/0.2225, allocations: 368.4 kB / 0.4932 GB, free: 13.15 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007883/0.2304, allocations: 5.696 MB / 0.4988 GB, free: 6.758 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.36e-05/0.2304, allocations: 42.55 kB / 0.4988 GB, free: 6.707 MB / 382.1 MB Notification: Performance of pre-optimization done (n=37): time 3.817e-06/0.2304, allocations: 0 / 0.4988 GB, free: 6.707 MB / 382.1 MB Notification: Performance of matching and sorting (n=37): time 0.001508/0.2319, allocations: 0.7965 MB / 0.4996 GB, free: 5.859 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.263e-05/0.232, allocations: 110.8 kB / 0.4997 GB, free: 5.727 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001492/0.2335, allocations: 1.291 MB / 0.501 GB, free: 4.426 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.644e-05/0.2336, allocations: 29.7 kB / 0.501 GB, free: 4.391 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005689/0.2341, allocations: 0.8384 MB / 0.5018 GB, free: 3.539 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001099/0.2343, allocations: 150.1 kB / 0.502 GB, free: 3.391 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003432/0.2346, allocations: 291.1 kB / 0.5022 GB, free: 3.102 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001396/0.2348, allocations: 357.9 kB / 0.5026 GB, free: 2.746 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005079/0.2353, allocations: 335.8 kB / 0.5029 GB, free: 2.418 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001063/0.2363, allocations: 1.156 MB / 0.504 GB, free: 0.8516 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2008/0.4372, allocations: 1.527 MB / 0.5055 GB, free: 76.52 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.526e-05/0.4373, allocations: 8.625 kB / 0.5055 GB, free: 76.52 MB / 382.1 MB Notification: Performance of matching and sorting (n=169) (initialization): time 0.002273/0.4395, allocations: 1.542 MB / 0.507 GB, free: 76.29 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.526e-05/0.4396, allocations: 17.72 kB / 0.5071 GB, free: 76.29 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.643e-05/0.4396, allocations: 35.5 kB / 0.5071 GB, free: 76.29 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000601/0.4402, allocations: 153.4 kB / 0.5072 GB, free: 76.28 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001201/0.4415, allocations: 397 kB / 0.5076 GB, free: 76.25 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002073/0.4435, allocations: 4.074 MB / 0.5116 GB, free: 72.32 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000921/0.4445, allocations: 183.5 kB / 0.5118 GB, free: 72.32 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001098/0.4446, allocations: 101.2 kB / 0.5119 GB, free: 72.32 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.0004192/0.445, allocations: 340.9 kB / 0.5122 GB, free: 72.16 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001578/0.4452, allocations: 113.3 kB / 0.5123 GB, free: 72.14 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00153/0.4467, allocations: 0.9379 MB / 0.5132 GB, free: 71.93 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.339e-06/0.4467, allocations: 3.938 kB / 0.5132 GB, free: 71.93 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.804e-06/0.4467, allocations: 0 / 0.5132 GB, free: 71.93 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.979e-06/0.4468, allocations: 1.547 kB / 0.5132 GB, free: 71.93 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001876/0.4486, allocations: 1.369 MB / 0.5146 GB, free: 71.38 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-06/0.4487, allocations: 3.219 kB / 0.5146 GB, free: 71.38 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002426/0.4489, allocations: 64.89 kB / 0.5146 GB, free: 71.37 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006679/0.4496, allocations: 176.7 kB / 0.5148 GB, free: 71.31 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.317e-05/0.4496, allocations: 15.61 kB / 0.5148 GB, free: 71.31 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001833/0.4515, allocations: 3.952 MB / 0.5187 GB, free: 67.36 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.466e-06/0.4515, allocations: 3.031 kB / 0.5187 GB, free: 67.36 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00107/0.4526, allocations: 0.9121 MB / 0.5196 GB, free: 66.75 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001948/0.4528, allocations: 183.3 kB / 0.5197 GB, free: 66.58 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001277/0.4529, allocations: 15.75 kB / 0.5198 GB, free: 66.57 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003685/0.4533, allocations: 11.2 kB / 0.5198 GB, free: 66.57 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.094e-05/0.4534, allocations: 44.08 kB / 0.5198 GB, free: 66.56 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.255e-05/0.4534, allocations: 20.86 kB / 0.5198 GB, free: 66.55 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001095/0.4545, allocations: 0.9562 MB / 0.5208 GB, free: 66.15 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4545, allocations: 2.594 kB / 0.5208 GB, free: 66.15 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002046/0.4565, allocations: 0.6945 MB / 0.5214 GB, free: 66.04 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.001449/0.458, allocations: 0.8391 MB / 0.5223 GB, free: 65.89 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001513/0.4595, allocations: 0.8445 MB / 0.5231 GB, free: 65.63 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.4595, allocations: 0 / 0.5231 GB, free: 65.63 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000436/0.46, allocations: 396.8 kB / 0.5235 GB, free: 65.36 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009997/0.461, allocations: 188.1 kB / 0.5236 GB, free: 65.3 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002346/0.4634, allocations: 1.953 MB / 0.5255 GB, free: 64.27 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004558/0.4638, allocations: 1.092 MB / 0.5266 GB, free: 63.56 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007383/0.4646, allocations: 311.7 kB / 0.5269 GB, free: 63.55 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002381/0.4648, allocations: 159.2 kB / 0.5271 GB, free: 63.53 MB / 382.1 MB Notification: Performance of SimCode: time 2.61e-07/0.4648, allocations: 0 / 0.5271 GB, free: 63.53 MB / 382.1 MB Notification: Performance of Templates: time 0.02557/0.4904, allocations: 21.13 MB / 0.5477 GB, free: 47.45 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 gbode -lv LOG_STATS > Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell.pipe 2>&1)