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.001162/0.001162, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001179/0.001179, allocations: 192.5 kB / 16.53 MB, free: 6.391 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.196/1.196, allocations: 222.9 MB / 240.2 MB, free: 4.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1716/0.1716, allocations: 15.32 MB / 305.7 MB, free: 15.21 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001129/0.001129, allocations: 67.89 kB / 370.3 MB, free: 3.898 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08321/0.08435, allocations: 53.6 MB / 423.9 MB, free: 14.25 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.StandardElectrochemicalCell): time 0.2723/0.3566, allocations: 27.11 MB / 451 MB, free: 39.37 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01515/0.3718, allocations: 21.59 MB / 472.6 MB, free: 28.2 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007835/0.3726, allocations: 20.59 kB / 472.7 MB, free: 28.19 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00108/0.3737, allocations: 0.5276 MB / 473.2 MB, free: 27.89 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00199/0.3757, allocations: 0.9923 MB / 474.2 MB, free: 27.29 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006817/0.3825, allocations: 3.278 MB / 477.4 MB, free: 25.36 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001841/0.3844, allocations: 1.804 MB / 479.3 MB, free: 24.47 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001029/0.3854, allocations: 0.9436 MB / 480.2 MB, free: 24.05 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009262/0.3864, allocations: 0.7865 MB / 481 MB, free: 23.74 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001159/0.3875, allocations: 0.8826 MB / 481.9 MB, free: 23.36 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003298/0.3879, allocations: 147 kB / 482 MB, free: 23.36 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005665/0.3936, allocations: 2.061 MB / 484.1 MB, free: 22.85 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004055/0.394, allocations: 378.3 kB / 484.4 MB, free: 22.62 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001027/0.395, allocations: 0.809 MB / 485.2 MB, free: 22.14 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006988/0.402, allocations: 3.915 MB / 489.2 MB, free: 20.42 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.402, allocations: 0 / 489.2 MB, free: 20.42 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.402, allocations: 0 / 489.2 MB, free: 20.42 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.322e-05/0.4021, allocations: 0 / 489.2 MB, free: 20.42 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.003955/0.4061, allocations: 2.092 MB / 491.3 MB, free: 19.11 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.531e-05/0.4061, allocations: 8.406 kB / 491.3 MB, free: 19.11 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00181/0.4079, allocations: 435.7 kB / 491.7 MB, free: 18.98 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001627/0.4096, allocations: 1.015 MB / 492.7 MB, free: 18.39 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001052/0.4097, allocations: 155.2 kB / 492.9 MB, free: 18.28 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001749/0.4099, allocations: 126.7 kB / 493 MB, free: 18.23 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002147/0.412, allocations: 1.76 MB / 494.7 MB, free: 17.48 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.375e-05/0.4121, allocations: 3.938 kB / 494.7 MB, free: 17.47 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000122/0.4122, allocations: 51.55 kB / 494.8 MB, free: 17.43 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.757e-05/0.4122, allocations: 32.03 kB / 494.8 MB, free: 17.43 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002612/0.4148, allocations: 2.314 MB / 497.1 MB, free: 16.77 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005844/0.4207, allocations: 5.573 MB / 0.4909 GB, free: 13.38 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001008/0.4217, allocations: 0.7486 MB / 0.4917 GB, free: 13.06 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000442/0.4221, allocations: 357.4 kB / 0.492 GB, free: 12.92 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00587/0.428, allocations: 5.699 MB / 0.4976 GB, free: 8.418 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.026e-05/0.4281, allocations: 45.67 kB / 0.4976 GB, free: 8.367 MB / 366.1 MB Notification: Performance of pre-optimization done (n=37): time 1.633e-06/0.4281, allocations: 0 / 0.4976 GB, free: 8.367 MB / 366.1 MB Notification: Performance of matching and sorting (n=37): time 0.001179/0.4293, allocations: 0.7854 MB / 0.4984 GB, free: 7.707 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.722e-05/0.4293, allocations: 119.5 kB / 0.4985 GB, free: 7.566 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001056/0.4304, allocations: 1.285 MB / 0.4997 GB, free: 6.453 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.836e-05/0.4304, allocations: 33.7 kB / 0.4998 GB, free: 6.414 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003249/0.4307, allocations: 0.8352 MB / 0.5006 GB, free: 5.645 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.896e-05/0.4308, allocations: 154.4 kB / 0.5007 GB, free: 5.508 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002552/0.4311, allocations: 288.9 kB / 0.501 GB, free: 5.246 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.455e-05/0.4311, allocations: 354.6 kB / 0.5014 GB, free: 4.91 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004019/0.4315, allocations: 338.3 kB / 0.5017 GB, free: 4.625 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006224/0.4322, allocations: 1.151 MB / 0.5028 GB, free: 3.129 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001046/0.4332, allocations: 1.533 MB / 0.5043 GB, free: 1.238 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.306e-06/0.4332, allocations: 11.94 kB / 0.5043 GB, free: 1.227 MB / 366.1 MB Notification: Performance of matching and sorting (n=169) (initialization): time 0.001793/0.435, allocations: 1.545 MB / 0.5058 GB, free: 15.81 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.578e-05/0.4351, allocations: 16 kB / 0.5058 GB, free: 15.8 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.505e-05/0.4351, allocations: 31.94 kB / 0.5059 GB, free: 15.77 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005297/0.4356, allocations: 154.8 kB / 0.506 GB, free: 15.63 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001005/0.4367, allocations: 404.4 kB / 0.5064 GB, free: 15.29 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002477/0.4391, allocations: 4.079 MB / 0.5104 GB, free: 10.89 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008024/0.44, allocations: 185.9 kB / 0.5106 GB, free: 10.71 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001113/0.4401, allocations: 104 kB / 0.5107 GB, free: 10.61 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.0003964/0.4405, allocations: 329.2 kB / 0.511 GB, free: 10.28 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001718/0.4407, allocations: 110.6 kB / 0.5111 GB, free: 10.17 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001711/0.4424, allocations: 0.9395 MB / 0.512 GB, free: 9.172 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.4424, allocations: 7.984 kB / 0.512 GB, free: 9.164 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.903e-06/0.4424, allocations: 0 / 0.512 GB, free: 9.164 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.037e-06/0.4424, allocations: 0 / 0.512 GB, free: 9.164 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001828/0.4442, allocations: 1.379 MB / 0.5133 GB, free: 7.695 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.509e-06/0.4442, allocations: 4 kB / 0.5134 GB, free: 7.691 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002275/0.4445, allocations: 59.91 kB / 0.5134 GB, free: 7.633 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006459/0.4451, allocations: 179.1 kB / 0.5136 GB, free: 7.445 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.659e-05/0.4452, allocations: 12 kB / 0.5136 GB, free: 7.434 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002349/0.4475, allocations: 3.951 MB / 0.5174 GB, free: 3.133 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.4475, allocations: 0 / 0.5174 GB, free: 3.133 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001045/0.4486, allocations: 0.9127 MB / 0.5183 GB, free: 2.164 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001722/0.4488, allocations: 187.5 kB / 0.5185 GB, free: 1.961 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001375/0.4489, allocations: 19.98 kB / 0.5185 GB, free: 1.941 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003495/0.4493, allocations: 16 kB / 0.5186 GB, free: 1.926 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.096e-05/0.4493, allocations: 35.84 kB / 0.5186 GB, free: 1.891 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.805e-05/0.4494, allocations: 23.98 kB / 0.5186 GB, free: 1.867 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001012/0.4504, allocations: 0.9508 MB / 0.5195 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4504, allocations: 0 / 0.5195 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001867/0.4523, allocations: 0.7019 MB / 0.5202 GB, free: 216 kB / 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.001641/0.4539, allocations: 0.8419 MB / 0.521 GB, free: 15.36 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001565/0.4555, allocations: 0.8562 MB / 0.5219 GB, free: 14.51 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.4555, allocations: 0 / 0.5219 GB, free: 14.51 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004727/0.456, allocations: 395.2 kB / 0.5223 GB, free: 14.1 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001084/0.4571, allocations: 200.5 kB / 0.5225 GB, free: 13.91 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00283/0.4599, allocations: 1.984 MB / 0.5244 GB, free: 11.86 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006093/0.4606, allocations: 1.091 MB / 0.5255 GB, free: 10.74 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001021/0.4616, allocations: 306.6 kB / 0.5257 GB, free: 10.44 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002439/0.4618, allocations: 155.3 kB / 0.5259 GB, free: 10.29 MB / 398.1 MB Notification: Performance of SimCode: time 4.31e-07/0.4618, allocations: 3.938 kB / 0.5259 GB, free: 10.29 MB / 398.1 MB Notification: Performance of Templates: time 0.03032/0.4922, allocations: 21.11 MB / 0.5465 GB, free: 5.219 MB / 414.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)