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.001419/0.001419, allocations: 104.5 kB / 15.98 MB, free: 5.836 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.00129/0.00129, allocations: 197.7 kB / 16.91 MB, free: 5.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.385/1.385, allocations: 222.9 MB / 240.6 MB, free: 13.75 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08397/0.08397, allocations: 15.3 MB / 306 MB, free: 15.47 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001235/0.001235, allocations: 66.31 kB / 370.5 MB, free: 50.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09182/0.09307, allocations: 53.6 MB / 424.1 MB, free: 14.38 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.StandardElectrochemicalCell2): time 0.03233/0.1254, allocations: 27.34 MB / 451.4 MB, free: 3.137 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01904/0.1445, allocations: 17.98 MB / 469.4 MB, free: 1.09 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001381/0.1459, allocations: 35.75 kB / 469.4 MB, free: 1.055 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001327/0.1473, allocations: 429.2 kB / 469.9 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002435/0.1497, allocations: 0.7879 MB / 470.6 MB, free: 15.84 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007173/0.1569, allocations: 2.498 MB / 473.1 MB, free: 13.33 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00238/0.1593, allocations: 1.637 MB / 474.8 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001134/0.1605, allocations: 0.9219 MB / 475.7 MB, free: 10.74 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008941/0.1614, allocations: 0.7284 MB / 476.4 MB, free: 10.01 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000899/0.1623, allocations: 0.825 MB / 477.3 MB, free: 9.18 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001889/0.1625, allocations: 140 kB / 477.4 MB, free: 9.043 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004687/0.1672, allocations: 1.798 MB / 479.2 MB, free: 7.242 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003934/0.1676, allocations: 358.9 kB / 479.5 MB, free: 6.891 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008287/0.1684, allocations: 0.7582 MB / 480.3 MB, free: 6.129 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003955/0.1724, allocations: 2.581 MB / 482.9 MB, free: 3.539 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.1724, allocations: 4 kB / 482.9 MB, free: 3.535 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.308e-06/0.1724, allocations: 4 kB / 482.9 MB, free: 3.531 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.915e-05/0.1725, allocations: 0 / 482.9 MB, free: 3.531 MB / 350.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.003035/0.1755, allocations: 1.918 MB / 484.8 MB, free: 1.559 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.72e-05/0.1756, allocations: 12.03 kB / 484.8 MB, free: 1.547 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001516/0.1771, allocations: 398.2 kB / 485.2 MB, free: 1.156 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001396/0.1785, allocations: 0.9458 MB / 486.1 MB, free: 172 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001364/0.1786, allocations: 146.1 kB / 486.3 MB, free: 12 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000221/0.1789, allocations: 120.1 kB / 486.4 MB, free: 15.89 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002443/0.1813, allocations: 1.656 MB / 488.1 MB, free: 14.16 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.683e-05/0.1814, allocations: 0 / 488.1 MB, free: 14.16 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001228/0.1815, allocations: 48 kB / 488.1 MB, free: 14.12 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.543e-05/0.1815, allocations: 28 kB / 488.1 MB, free: 14.09 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002874/0.1844, allocations: 2.104 MB / 490.2 MB, free: 11.98 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007574/0.192, allocations: 5.42 MB / 495.7 MB, free: 6.367 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001265/0.1933, allocations: 0.7328 MB / 496.4 MB, free: 5.609 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000546/0.1939, allocations: 352.4 kB / 496.7 MB, free: 5.258 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00703/0.2009, allocations: 5.049 MB / 0.49 GB, free: 15.62 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.489e-05/0.201, allocations: 38.56 kB / 0.4901 GB, free: 15.58 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003281/0.2013, allocations: 74.91 kB / 0.4901 GB, free: 15.5 MB / 382.1 MB Notification: Performance of pre-optimization done (n=34): time 2.194e-06/0.2013, allocations: 4 kB / 0.4901 GB, free: 15.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=34): time 0.001341/0.2027, allocations: 0.7582 MB / 0.4909 GB, free: 14.69 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.587e-05/0.2027, allocations: 106.8 kB / 0.491 GB, free: 14.56 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001265/0.204, allocations: 1.195 MB / 0.4921 GB, free: 13.35 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.823e-05/0.204, allocations: 29.7 kB / 0.4922 GB, free: 13.32 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004691/0.2045, allocations: 0.776 MB / 0.4929 GB, free: 12.53 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001311/0.2047, allocations: 142.3 kB / 0.4931 GB, free: 12.39 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003271/0.205, allocations: 274.7 kB / 0.4933 GB, free: 12.11 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001348/0.2051, allocations: 357.9 kB / 0.4937 GB, free: 11.76 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004766/0.2056, allocations: 310.5 kB / 0.494 GB, free: 11.45 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009727/0.2066, allocations: 1.05 MB / 0.495 GB, free: 10.04 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001471/0.2081, allocations: 1.403 MB / 0.4964 GB, free: 8.266 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.051e-05/0.2081, allocations: 8 kB / 0.4964 GB, free: 8.258 MB / 382.1 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.002189/0.2103, allocations: 1.443 MB / 0.4978 GB, free: 6.801 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.975e-05/0.2103, allocations: 16 kB / 0.4978 GB, free: 6.785 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.755e-05/0.2104, allocations: 27.94 kB / 0.4978 GB, free: 6.758 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006296/0.211, allocations: 158 kB / 0.498 GB, free: 6.598 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001069/0.2121, allocations: 371.4 kB / 0.4983 GB, free: 6.234 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002846/0.2149, allocations: 4.073 MB / 0.5023 GB, free: 1.82 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009503/0.2159, allocations: 79.8 kB / 0.5024 GB, free: 1.742 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001296/0.2161, allocations: 95.98 kB / 0.5025 GB, free: 1.648 MB / 382.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.0004753/0.2165, allocations: 311 kB / 0.5028 GB, free: 1.336 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002154/0.2168, allocations: 98.69 kB / 0.5029 GB, free: 1.238 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001787/0.2186, allocations: 0.8593 MB / 0.5037 GB, free: 340 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.191e-05/0.2186, allocations: 8 kB / 0.5037 GB, free: 332 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.194e-06/0.2186, allocations: 0 / 0.5037 GB, free: 332 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.242e-06/0.2186, allocations: 0 / 0.5037 GB, free: 332 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1887/0.4073, allocations: 1.253 MB / 0.5049 GB, free: 78.2 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.35e-06/0.4073, allocations: 3.906 kB / 0.5049 GB, free: 78.2 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002836/0.4076, allocations: 59.16 kB / 0.505 GB, free: 78.2 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007634/0.4084, allocations: 176 kB / 0.5052 GB, free: 78.17 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.737e-05/0.4085, allocations: 12.02 kB / 0.5052 GB, free: 78.17 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002148/0.4106, allocations: 3.94 MB / 0.509 GB, free: 74.41 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.919e-06/0.4106, allocations: 4.484 kB / 0.509 GB, free: 74.41 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001382/0.412, allocations: 0.8524 MB / 0.5099 GB, free: 74.05 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002522/0.4123, allocations: 173.3 kB / 0.51 GB, free: 73.95 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001509/0.4124, allocations: 9.547 kB / 0.51 GB, free: 73.95 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004604/0.4129, allocations: 15.23 kB / 0.51 GB, free: 73.95 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.167e-05/0.413, allocations: 39.11 kB / 0.5101 GB, free: 73.95 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.911e-05/0.4131, allocations: 15.59 kB / 0.5101 GB, free: 73.95 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001052/0.4141, allocations: 0.8843 MB / 0.511 GB, free: 73.84 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.4141, allocations: 0 / 0.511 GB, free: 73.84 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002341/0.4165, allocations: 0.6182 MB / 0.5116 GB, free: 73.84 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.001349/0.4178, allocations: 0.7286 MB / 0.5123 GB, free: 73.72 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001685/0.4195, allocations: 0.8025 MB / 0.5131 GB, free: 73.48 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.4195, allocations: 1.719 kB / 0.5131 GB, free: 73.48 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004826/0.42, allocations: 392.8 kB / 0.5134 GB, free: 73.21 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001171/0.4212, allocations: 167.3 kB / 0.5136 GB, free: 73.15 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002872/0.4241, allocations: 2.293 MB / 0.5158 GB, free: 71.76 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005855/0.4247, allocations: 1.059 MB / 0.5169 GB, free: 71.05 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004477/0.4252, allocations: 191.4 kB / 0.5171 GB, free: 71.04 MB / 382.1 MB Notification: Performance of SimCode: time 7.22e-07/0.4252, allocations: 2.656 kB / 0.5171 GB, free: 71.04 MB / 382.1 MB Notification: Performance of Templates: time 0.03556/0.4607, allocations: 36.94 MB / 0.5531 GB, free: 42.11 MB / 382.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)