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.001315/0.001315, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001417/0.001417, allocations: 194.4 kB / 16.14 MB, free: 6.707 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.342/1.342, allocations: 222.9 MB / 239.8 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.237/0.237, allocations: 15.3 MB / 305.3 MB, free: 15.36 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001229/0.001229, allocations: 67.88 kB / 369.6 MB, free: 4.492 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08989/0.09114, allocations: 53.6 MB / 423.2 MB, free: 14.84 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.3367/0.4279, allocations: 27.44 MB / 450.7 MB, free: 39.09 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01823/0.4461, allocations: 21.56 MB / 472.2 MB, free: 28.36 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001941/0.4481, allocations: 36.78 kB / 472.3 MB, free: 28.35 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001568/0.4497, allocations: 493.9 kB / 472.8 MB, free: 28.09 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002911/0.4526, allocations: 0.9247 MB / 473.7 MB, free: 27.53 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009088/0.4617, allocations: 2.879 MB / 476.6 MB, free: 25.85 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002575/0.4643, allocations: 1.756 MB / 478.3 MB, free: 25.02 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001256/0.4656, allocations: 0.8042 MB / 479.1 MB, free: 24.67 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001436/0.4671, allocations: 0.7635 MB / 479.9 MB, free: 24.41 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001502/0.4686, allocations: 0.8618 MB / 480.7 MB, free: 24.07 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002769/0.4689, allocations: 96.31 kB / 480.8 MB, free: 24.07 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008465/0.4773, allocations: 2.016 MB / 482.9 MB, free: 23.57 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009816/0.4784, allocations: 336.5 kB / 483.2 MB, free: 23.39 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001423/0.4798, allocations: 0.7602 MB / 483.9 MB, free: 22.96 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009593/0.4894, allocations: 3.679 MB / 487.6 MB, free: 21.41 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.4894, allocations: 0 / 487.6 MB, free: 21.41 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.4894, allocations: 3.281 kB / 487.6 MB, free: 21.41 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.763e-05/0.4895, allocations: 1.094 kB / 487.6 MB, free: 21.41 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.003549/0.493, allocations: 2.092 MB / 489.7 MB, free: 20.09 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.588e-05/0.4931, allocations: 9.719 kB / 489.7 MB, free: 20.09 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00178/0.4949, allocations: 427.7 kB / 490.1 MB, free: 19.97 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001518/0.4964, allocations: 1.015 MB / 491.2 MB, free: 19.38 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001299/0.4965, allocations: 154.4 kB / 491.3 MB, free: 19.27 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000224/0.4968, allocations: 121.7 kB / 491.4 MB, free: 19.23 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002784/0.4996, allocations: 1.756 MB / 493.2 MB, free: 18.48 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.676e-05/0.4996, allocations: 0.5625 kB / 493.2 MB, free: 18.48 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001298/0.4997, allocations: 50.38 kB / 493.2 MB, free: 18.44 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.475e-05/0.4998, allocations: 32.09 kB / 493.3 MB, free: 18.44 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003034/0.5028, allocations: 2.318 MB / 495.6 MB, free: 17.77 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008102/0.5109, allocations: 5.584 MB / 0.4894 GB, free: 14.37 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001237/0.5122, allocations: 0.7345 MB / 0.4901 GB, free: 14.07 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000523/0.5127, allocations: 360.4 kB / 0.4905 GB, free: 13.92 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007317/0.52, allocations: 5.72 MB / 0.4961 GB, free: 9.402 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.445e-05/0.5201, allocations: 45.98 kB / 0.4961 GB, free: 9.352 MB / 366.1 MB Notification: Performance of pre-optimization done (n=37): time 2.174e-06/0.5201, allocations: 0 / 0.4961 GB, free: 9.352 MB / 366.1 MB Notification: Performance of matching and sorting (n=37): time 0.001468/0.5216, allocations: 0.7891 MB / 0.4969 GB, free: 8.672 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.749e-05/0.5216, allocations: 114.7 kB / 0.497 GB, free: 8.535 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001408/0.523, allocations: 1.29 MB / 0.4983 GB, free: 7.418 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.683e-05/0.5231, allocations: 34.45 kB / 0.4983 GB, free: 7.379 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004694/0.5236, allocations: 0.8342 MB / 0.4991 GB, free: 6.609 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.642e-05/0.5237, allocations: 146.7 kB / 0.4992 GB, free: 6.48 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002874/0.524, allocations: 301.4 kB / 0.4995 GB, free: 6.207 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.949e-05/0.524, allocations: 354.3 kB / 0.4999 GB, free: 5.871 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004533/0.5245, allocations: 337.4 kB / 0.5002 GB, free: 5.586 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007598/0.5253, allocations: 1.147 MB / 0.5013 GB, free: 4.094 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001187/0.5265, allocations: 1.533 MB / 0.5028 GB, free: 2.203 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.298e-06/0.5265, allocations: 8 kB / 0.5028 GB, free: 2.195 MB / 366.1 MB Notification: Performance of matching and sorting (n=169) (initialization): time 0.001994/0.5285, allocations: 1.548 MB / 0.5043 GB, free: 0.7734 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.568e-05/0.5285, allocations: 16.66 kB / 0.5043 GB, free: 0.7578 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.268e-05/0.5285, allocations: 35.94 kB / 0.5044 GB, free: 0.7227 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006144/0.5292, allocations: 160 kB / 0.5045 GB, free: 0.5859 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001018/0.5302, allocations: 391.4 kB / 0.5049 GB, free: 256 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00291/0.5331, allocations: 3.876 MB / 0.5087 GB, free: 12.14 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001036/0.5342, allocations: 190.8 kB / 0.5089 GB, free: 11.95 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001314/0.5343, allocations: 100.3 kB / 0.509 GB, free: 11.86 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.0005011/0.5348, allocations: 339.5 kB / 0.5093 GB, free: 11.52 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001887/0.535, allocations: 115 kB / 0.5094 GB, free: 11.41 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001909/0.5369, allocations: 0.9354 MB / 0.5103 GB, free: 10.55 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.873e-06/0.5369, allocations: 7.938 kB / 0.5103 GB, free: 10.55 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.284e-06/0.5369, allocations: 0 / 0.5103 GB, free: 10.55 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.692e-06/0.537, allocations: 10.11 kB / 0.5103 GB, free: 10.54 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002199/0.5392, allocations: 1.367 MB / 0.5117 GB, free: 9.316 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.494e-06/0.5392, allocations: 6.203 kB / 0.5117 GB, free: 9.312 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002505/0.5394, allocations: 62.27 kB / 0.5117 GB, free: 9.258 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007613/0.5402, allocations: 182.5 kB / 0.5119 GB, free: 9.102 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.316e-05/0.5402, allocations: 13.41 kB / 0.5119 GB, free: 9.09 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002712/0.543, allocations: 3.756 MB / 0.5156 GB, free: 5.047 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.543, allocations: 0 / 0.5156 GB, free: 5.047 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001266/0.5443, allocations: 0.9008 MB / 0.5165 GB, free: 4.09 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003165/0.5446, allocations: 187.6 kB / 0.5166 GB, free: 3.887 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001512/0.5447, allocations: 15.89 kB / 0.5167 GB, free: 3.871 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000387/0.5451, allocations: 12 kB / 0.5167 GB, free: 3.859 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.463e-05/0.5452, allocations: 39.91 kB / 0.5167 GB, free: 3.82 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.481e-05/0.5453, allocations: 23.98 kB / 0.5167 GB, free: 3.797 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001181/0.5465, allocations: 0.9586 MB / 0.5177 GB, free: 2.836 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5465, allocations: 3.938 kB / 0.5177 GB, free: 2.832 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002379/0.5489, allocations: 0.6902 MB / 0.5183 GB, free: 2.141 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.001541/0.5504, allocations: 0.838 MB / 0.5192 GB, free: 1.293 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001745/0.5522, allocations: 0.8305 MB / 0.52 GB, free: 480 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.5522, allocations: 0 / 0.52 GB, free: 480 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000526/0.5527, allocations: 390.3 kB / 0.5203 GB, free: 64 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001226/0.5539, allocations: 177 kB / 0.5205 GB, free: 15.89 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003313/0.5573, allocations: 2.449 MB / 0.5229 GB, free: 13.38 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006742/0.558, allocations: 1.095 MB / 0.524 GB, free: 12.25 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001169/0.5591, allocations: 320.3 kB / 0.5243 GB, free: 11.94 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002792/0.5594, allocations: 163.3 kB / 0.5244 GB, free: 11.78 MB / 398.1 MB Notification: Performance of SimCode: time 1.052e-06/0.5594, allocations: 0 / 0.5244 GB, free: 11.78 MB / 398.1 MB Notification: Performance of Templates: time 0.03258/0.592, allocations: 20.56 MB / 0.5445 GB, free: 7.262 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)