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.006055/0.006055, 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.001199/0.001199, allocations: 197.1 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.367/1.367, allocations: 222.9 MB / 240.5 MB, free: 4.562 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2083/0.2083, allocations: 15.31 MB / 305.9 MB, free: 15.29 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001248/0.001248, allocations: 59.91 kB / 370.3 MB, free: 4.402 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1065, allocations: 53.61 MB / 423.9 MB, free: 14.74 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.StandardElectrochemicalCell2): time 0.3816/0.4882, allocations: 27.33 MB / 451.2 MB, free: 39.02 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01572/0.5039, allocations: 18.16 MB / 469.4 MB, free: 30.32 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001466/0.5054, allocations: 39.25 kB / 469.4 MB, free: 30.3 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001364/0.5068, allocations: 417.8 kB / 469.8 MB, free: 30.1 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002531/0.5093, allocations: 0.7751 MB / 470.6 MB, free: 29.65 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007227/0.5166, allocations: 2.446 MB / 473.1 MB, free: 28.34 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002367/0.519, allocations: 1.603 MB / 474.7 MB, free: 27.57 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001048/0.52, allocations: 0.7948 MB / 475.5 MB, free: 27.22 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001029/0.5211, allocations: 0.6721 MB / 476.1 MB, free: 26.98 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009952/0.5221, allocations: 0.7863 MB / 476.9 MB, free: 26.66 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002362/0.5223, allocations: 90.03 kB / 477 MB, free: 26.66 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005917/0.5283, allocations: 1.721 MB / 478.7 MB, free: 26.23 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006086/0.5289, allocations: 310.5 kB / 479 MB, free: 26.06 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001058/0.53, allocations: 0.7021 MB / 479.7 MB, free: 25.67 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00395/0.534, allocations: 2.538 MB / 482.3 MB, free: 24.6 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/0.534, allocations: 0 / 482.3 MB, free: 24.6 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.534, allocations: 0 / 482.3 MB, free: 24.6 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.326e-05/0.534, allocations: 8.906 kB / 482.3 MB, free: 24.59 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: 303 * Number of variables: 303 Notification: Performance of Generate backend data structure: time 0.003722/0.5378, allocations: 1.921 MB / 484.2 MB, free: 23.38 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.752e-05/0.5378, allocations: 9.625 kB / 484.2 MB, free: 23.38 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001957/0.5398, allocations: 386.1 kB / 484.6 MB, free: 23.27 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001906/0.5417, allocations: 0.953 MB / 485.5 MB, free: 22.7 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001481/0.5419, allocations: 146 kB / 485.7 MB, free: 22.59 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002136/0.5421, allocations: 117.8 kB / 485.8 MB, free: 22.55 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002621/0.5447, allocations: 1.65 MB / 487.5 MB, free: 21.83 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.69e-05/0.5448, allocations: 1.031 kB / 487.5 MB, free: 21.83 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001238/0.5449, allocations: 46.78 kB / 487.5 MB, free: 21.8 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.383e-05/0.545, allocations: 29.81 kB / 487.5 MB, free: 21.8 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002991/0.548, allocations: 2.104 MB / 489.6 MB, free: 21.18 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00751/0.5555, allocations: 5.424 MB / 495.1 MB, free: 17.81 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00115/0.5567, allocations: 0.7283 MB / 495.8 MB, free: 17.5 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005227/0.5572, allocations: 356.8 kB / 496.1 MB, free: 17.35 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006443/0.5637, allocations: 5.052 MB / 0.4894 GB, free: 13.43 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.395e-05/0.5637, allocations: 39.17 kB / 0.4895 GB, free: 13.39 MB / 366.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003876/0.5641, allocations: 76.56 kB / 0.4896 GB, free: 13.33 MB / 366.1 MB Notification: Performance of pre-optimization done (n=34): time 2.725e-06/0.5641, allocations: 3.812 kB / 0.4896 GB, free: 13.33 MB / 366.1 MB Notification: Performance of matching and sorting (n=34): time 0.001256/0.5654, allocations: 0.755 MB / 0.4903 GB, free: 12.89 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.747e-05/0.5654, allocations: 111.1 kB / 0.4904 GB, free: 12.76 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001136/0.5666, allocations: 1.194 MB / 0.4916 GB, free: 12.24 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.341e-05/0.5666, allocations: 33.17 kB / 0.4916 GB, free: 12.2 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000383/0.567, allocations: 0.773 MB / 0.4924 GB, free: 11.57 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.172e-05/0.5671, allocations: 134.7 kB / 0.4925 GB, free: 11.48 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002848/0.5674, allocations: 272.8 kB / 0.4927 GB, free: 11.35 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.051e-05/0.5675, allocations: 352.1 kB / 0.4931 GB, free: 11.02 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004487/0.5679, allocations: 320.5 kB / 0.4934 GB, free: 10.92 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007382/0.5687, allocations: 1.05 MB / 0.4944 GB, free: 9.793 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001204/0.5699, allocations: 1.394 MB / 0.4958 GB, free: 8.445 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.128e-05/0.5699, allocations: 6.531 kB / 0.4958 GB, free: 8.445 MB / 366.1 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.002135/0.572, allocations: 1.448 MB / 0.4972 GB, free: 7.836 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.037e-05/0.5721, allocations: 15.91 kB / 0.4972 GB, free: 7.836 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.684e-05/0.5721, allocations: 31.28 kB / 0.4972 GB, free: 7.832 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006609/0.5728, allocations: 151.8 kB / 0.4974 GB, free: 7.797 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001068/0.5739, allocations: 374.4 kB / 0.4977 GB, free: 7.695 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002034/0.5759, allocations: 3.875 MB / 0.5015 GB, free: 3.582 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009967/0.5769, allocations: 73.59 kB / 0.5016 GB, free: 3.512 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001113/0.577, allocations: 95.66 kB / 0.5017 GB, free: 3.422 MB / 366.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.0004352/0.5775, allocations: 315.9 kB / 0.502 GB, free: 3.109 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001675/0.5777, allocations: 103.5 kB / 0.5021 GB, free: 3.008 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001599/0.5793, allocations: 0.8515 MB / 0.5029 GB, free: 2.234 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.559e-06/0.5793, allocations: 7.938 kB / 0.5029 GB, free: 2.227 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.016e-06/0.5793, allocations: 0.5625 kB / 0.5029 GB, free: 2.227 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.5793, allocations: 9.641 kB / 0.5029 GB, free: 2.219 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001921/0.5812, allocations: 1.263 MB / 0.5042 GB, free: 1.094 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.368e-06/0.5812, allocations: 4 kB / 0.5042 GB, free: 1.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002425/0.5815, allocations: 53.61 kB / 0.5042 GB, free: 1.047 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007284/0.5822, allocations: 182.9 kB / 0.5044 GB, free: 0.8906 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.896e-05/0.5823, allocations: 17.41 kB / 0.5044 GB, free: 0.875 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002437/0.5847, allocations: 3.741 MB / 0.5081 GB, free: 12.89 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.159e-06/0.5847, allocations: 7.969 kB / 0.5081 GB, free: 12.88 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001327/0.5861, allocations: 0.8468 MB / 0.5089 GB, free: 12.04 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000316/0.5864, allocations: 177.2 kB / 0.5091 GB, free: 11.85 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001387/0.5865, allocations: 9.078 kB / 0.5091 GB, free: 11.84 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003866/0.5869, allocations: 12.89 kB / 0.5091 GB, free: 11.83 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.635e-05/0.587, allocations: 37.44 kB / 0.5091 GB, free: 11.8 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.742e-05/0.5871, allocations: 21.31 kB / 0.5091 GB, free: 11.78 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001188/0.5883, allocations: 0.8813 MB / 0.51 GB, free: 11.01 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5883, allocations: 4 kB / 0.51 GB, free: 11.01 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002106/0.5904, allocations: 0.6058 MB / 0.5106 GB, free: 10.41 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.001377/0.5918, allocations: 0.7325 MB / 0.5113 GB, free: 9.746 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001616/0.5934, allocations: 0.7877 MB / 0.5121 GB, free: 9.047 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.5934, allocations: 0 / 0.5121 GB, free: 9.047 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004919/0.5939, allocations: 384.6 kB / 0.5125 GB, free: 8.672 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001129/0.5951, allocations: 164.4 kB / 0.5126 GB, free: 8.535 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003069/0.5981, allocations: 2.318 MB / 0.5149 GB, free: 6.266 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005746/0.5987, allocations: 1.058 MB / 0.5159 GB, free: 5.312 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004006/0.5991, allocations: 195.9 kB / 0.5161 GB, free: 5.125 MB / 382.1 MB Notification: Performance of SimCode: time 1.032e-06/0.5992, allocations: 0 / 0.5161 GB, free: 5.125 MB / 382.1 MB Notification: Performance of Templates: time 0.0392/0.6384, allocations: 36.91 MB / 0.5521 GB, free: 252 kB / 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)