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.001429/0.001429, allocations: 104.4 kB / 16.41 MB, free: 6.473 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.001144/0.001145, allocations: 189.6 kB / 17.34 MB, free: 5.754 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.386/1.386, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.09317/0.09317, allocations: 15.31 MB / 306.5 MB, free: 15.43 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001312/0.001312, allocations: 64.09 kB / 425.9 MB, free: 11.47 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1235/0.1248, allocations: 53.61 MB / 479.5 MB, free: 5.801 MB / 350.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.04016/0.165, allocations: 27.01 MB / 0.4946 GB, free: 10.86 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.3371/0.5022, allocations: 21.57 MB / 0.5157 GB, free: 18.07 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001311/0.5035, allocations: 22.31 kB / 0.5157 GB, free: 18.07 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001612/0.5052, allocations: 0.5341 MB / 0.5162 GB, free: 17.89 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003115/0.5083, allocations: 0.994 MB / 0.5172 GB, free: 17.54 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009936/0.5182, allocations: 3.27 MB / 0.5204 GB, free: 16.39 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003362/0.5216, allocations: 1.805 MB / 0.5221 GB, free: 15.95 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001766/0.5234, allocations: 0.9455 MB / 0.5231 GB, free: 15.82 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001259/0.5247, allocations: 0.7898 MB / 0.5238 GB, free: 15.53 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001369/0.5261, allocations: 0.8782 MB / 0.5247 GB, free: 15.18 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002978/0.5264, allocations: 148.1 kB / 0.5248 GB, free: 15.18 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008613/0.535, allocations: 2.066 MB / 0.5269 GB, free: 14.68 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006669/0.5357, allocations: 384.5 kB / 0.5272 GB, free: 14.45 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0012/0.5369, allocations: 0.8022 MB / 0.528 GB, free: 13.99 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01233/0.5493, allocations: 3.94 MB / 0.5319 GB, free: 12.45 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.5493, allocations: 2.688 kB / 0.5319 GB, free: 12.45 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.5493, allocations: 0 / 0.5319 GB, free: 12.45 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.748e-05/0.5494, allocations: 0 / 0.5319 GB, free: 12.45 MB / 382.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.003684/0.5531, allocations: 2.085 MB / 0.5339 GB, free: 11.15 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.317e-05/0.5531, allocations: 11 kB / 0.5339 GB, free: 11.15 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001761/0.5549, allocations: 432 kB / 0.5343 GB, free: 11.02 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001634/0.5565, allocations: 1.041 MB / 0.5353 GB, free: 10.28 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001326/0.5567, allocations: 149.8 kB / 0.5355 GB, free: 10.17 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002151/0.5569, allocations: 129.7 kB / 0.5356 GB, free: 10.12 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00248/0.5594, allocations: 1.761 MB / 0.5373 GB, free: 9.031 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.699e-05/0.5594, allocations: 3.938 kB / 0.5373 GB, free: 9.027 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001285/0.5596, allocations: 53.81 kB / 0.5374 GB, free: 8.988 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.427e-05/0.5596, allocations: 32.62 kB / 0.5374 GB, free: 8.988 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002886/0.5625, allocations: 2.317 MB / 0.5397 GB, free: 7.984 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007026/0.5695, allocations: 5.559 MB / 0.5451 GB, free: 3.008 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00113/0.5707, allocations: 0.7365 MB / 0.5458 GB, free: 2.246 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004982/0.5712, allocations: 360.4 kB / 0.5462 GB, free: 1.887 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007507/0.5787, allocations: 5.701 MB / 0.5517 GB, free: 11.5 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.25e-05/0.5788, allocations: 37.25 kB / 0.5518 GB, free: 11.46 MB / 398.1 MB Notification: Performance of pre-optimization done (n=37): time 1.833e-06/0.5788, allocations: 4 kB / 0.5518 GB, free: 11.46 MB / 398.1 MB Notification: Performance of matching and sorting (n=37): time 0.00156/0.5804, allocations: 0.7913 MB / 0.5525 GB, free: 10.62 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.17e-05/0.5804, allocations: 106.8 kB / 0.5526 GB, free: 10.49 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001479/0.5819, allocations: 1.291 MB / 0.5539 GB, free: 9.188 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.682e-05/0.582, allocations: 33.7 kB / 0.5539 GB, free: 9.148 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005199/0.5825, allocations: 0.8342 MB / 0.5547 GB, free: 8.301 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001253/0.5826, allocations: 148.8 kB / 0.5549 GB, free: 8.156 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003575/0.583, allocations: 295.1 kB / 0.5552 GB, free: 7.863 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000146/0.5832, allocations: 353.9 kB / 0.5555 GB, free: 7.512 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005078/0.5837, allocations: 335.8 kB / 0.5558 GB, free: 7.184 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001066/0.5847, allocations: 1.154 MB / 0.557 GB, free: 5.645 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001648/0.5864, allocations: 1.526 MB / 0.5584 GB, free: 3.773 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.409e-05/0.5864, allocations: 10.66 kB / 0.5585 GB, free: 3.766 MB / 398.1 MB Notification: Performance of matching and sorting (n=169) (initialization): time 0.002395/0.5888, allocations: 1.555 MB / 0.56 GB, free: 2.223 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.032e-05/0.5889, allocations: 16 kB / 0.56 GB, free: 2.207 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.246e-05/0.5889, allocations: 32 kB / 0.56 GB, free: 2.176 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006666/0.5896, allocations: 160 kB / 0.5602 GB, free: 2.016 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001146/0.5907, allocations: 395.4 kB / 0.5605 GB, free: 1.629 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002981/0.5937, allocations: 4.076 MB / 0.5645 GB, free: 13.23 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001295/0.5951, allocations: 184.7 kB / 0.5647 GB, free: 13.05 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001704/0.5953, allocations: 102.6 kB / 0.5648 GB, free: 12.95 MB / 414.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.0005749/0.5958, allocations: 333.1 kB / 0.5651 GB, free: 12.62 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002416/0.5961, allocations: 118.4 kB / 0.5652 GB, free: 12.5 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00172/0.5978, allocations: 0.9511 MB / 0.5662 GB, free: 11.56 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.568e-06/0.5978, allocations: 0 / 0.5662 GB, free: 11.56 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.444e-06/0.5978, allocations: 4 kB / 0.5662 GB, free: 11.55 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/0.5979, allocations: 0 / 0.5662 GB, free: 11.55 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002218/0.6001, allocations: 1.377 MB / 0.5675 GB, free: 10.09 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.609e-06/0.6001, allocations: 0 / 0.5675 GB, free: 10.09 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002524/0.6004, allocations: 55.97 kB / 0.5676 GB, free: 10.04 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007465/0.6011, allocations: 176.5 kB / 0.5677 GB, free: 9.855 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.221e-05/0.6012, allocations: 16 kB / 0.5677 GB, free: 9.84 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002678/0.6038, allocations: 3.947 MB / 0.5716 GB, free: 5.562 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.649e-06/0.6039, allocations: 6.672 kB / 0.5716 GB, free: 5.559 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0013/0.6052, allocations: 0.9087 MB / 0.5725 GB, free: 4.602 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003228/0.6055, allocations: 183.5 kB / 0.5727 GB, free: 4.402 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000143/0.6057, allocations: 21.25 kB / 0.5727 GB, free: 4.387 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003853/0.606, allocations: 8 kB / 0.5727 GB, free: 4.379 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.69e-05/0.6061, allocations: 43.89 kB / 0.5727 GB, free: 4.336 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.117e-05/0.6062, allocations: 14.66 kB / 0.5728 GB, free: 4.324 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001177/0.6073, allocations: 0.9586 MB / 0.5737 GB, free: 3.363 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.6073, allocations: 0 / 0.5737 GB, free: 3.363 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002438/0.6098, allocations: 0.6902 MB / 0.5744 GB, free: 2.672 MB / 414.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.001813/0.6116, allocations: 0.839 MB / 0.5752 GB, free: 1.879 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001856/0.6135, allocations: 0.8446 MB / 0.576 GB, free: 1.051 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/0.6135, allocations: 0 / 0.576 GB, free: 1.051 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005374/0.6141, allocations: 408.4 kB / 0.5764 GB, free: 0.6289 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001407/0.6155, allocations: 184.6 kB / 0.5766 GB, free: 480 kB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002975/0.6185, allocations: 1.991 MB / 0.5785 GB, free: 14.49 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005818/0.6191, allocations: 1.087 MB / 0.5796 GB, free: 13.39 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004313/0.6195, allocations: 223 kB / 0.5798 GB, free: 13.18 MB / 430.1 MB Notification: Performance of SimCode: time 9.51e-07/0.6195, allocations: 0 / 0.5798 GB, free: 13.18 MB / 430.1 MB Notification: Performance of Templates: time 0.04184/0.6614, allocations: 40.15 MB / 0.619 GB, free: 5.504 MB / 462.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)