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.001872/0.001872, 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.002261/0.002261, allocations: 192.9 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.448/1.448, allocations: 222.9 MB / 240.2 MB, free: 4.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2306/0.2306, allocations: 15.33 MB / 305.7 MB, free: 15.25 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002017/0.002017, allocations: 63.89 kB / 370.3 MB, free: 3.934 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/0.1147, allocations: 53.61 MB / 423.9 MB, free: 14.28 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.3529/0.4677, allocations: 27.1 MB / 451 MB, free: 39.36 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01476/0.4825, allocations: 18.16 MB / 469.2 MB, free: 30.14 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009443/0.4835, allocations: 15.44 kB / 469.2 MB, free: 30.14 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001099/0.4846, allocations: 472.7 kB / 469.7 MB, free: 29.88 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002066/0.4867, allocations: 0.834 MB / 470.5 MB, free: 29.38 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00763/0.4943, allocations: 2.788 MB / 473.3 MB, free: 28.03 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002848/0.4972, allocations: 1.63 MB / 474.9 MB, free: 27.23 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001275/0.4985, allocations: 0.9263 MB / 475.9 MB, free: 26.81 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009921/0.4995, allocations: 0.703 MB / 476.6 MB, free: 26.53 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001102/0.5006, allocations: 0.8064 MB / 477.4 MB, free: 26.17 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002789/0.5009, allocations: 141.4 kB / 477.5 MB, free: 26.17 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007077/0.508, allocations: 1.75 MB / 479.3 MB, free: 25.74 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007374/0.5088, allocations: 364.1 kB / 479.6 MB, free: 25.52 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001229/0.51, allocations: 0.752 MB / 480.4 MB, free: 25.07 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01089/0.5209, allocations: 3.44 MB / 483.8 MB, free: 23.55 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.684e-06/0.5209, allocations: 0 / 483.8 MB, free: 23.55 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.521, allocations: 0 / 483.8 MB, free: 23.55 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.923e-05/0.521, allocations: 1.062 kB / 483.8 MB, free: 23.55 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.004299/0.5253, allocations: 1.922 MB / 485.7 MB, free: 22.34 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.278e-05/0.5254, allocations: 9.344 kB / 485.7 MB, free: 22.34 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001751/0.5272, allocations: 382 kB / 486.1 MB, free: 22.23 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001694/0.5289, allocations: 0.9516 MB / 487.1 MB, free: 21.66 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001449/0.529, allocations: 153.3 kB / 487.2 MB, free: 21.55 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002043/0.5292, allocations: 114.5 kB / 487.3 MB, free: 21.52 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00266/0.5319, allocations: 1.646 MB / 489 MB, free: 20.8 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.14e-05/0.532, allocations: 1.469 kB / 489 MB, free: 20.8 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001261/0.5321, allocations: 54.55 kB / 489 MB, free: 20.75 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.214e-05/0.5321, allocations: 30.34 kB / 489 MB, free: 20.75 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003312/0.5355, allocations: 2.116 MB / 491.2 MB, free: 20.12 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007452/0.5429, allocations: 5.415 MB / 496.6 MB, free: 16.76 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001141/0.5441, allocations: 0.728 MB / 497.3 MB, free: 16.45 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004874/0.5446, allocations: 359.5 kB / 497.7 MB, free: 16.3 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006423/0.551, allocations: 5.032 MB / 0.4909 GB, free: 12.39 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.212e-05/0.5511, allocations: 43.06 kB / 0.491 GB, free: 12.34 MB / 366.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00039/0.5515, allocations: 73.34 kB / 0.491 GB, free: 12.29 MB / 366.1 MB Notification: Performance of pre-optimization done (n=34): time 2.445e-06/0.5515, allocations: 0 / 0.491 GB, free: 12.29 MB / 366.1 MB Notification: Performance of matching and sorting (n=34): time 0.001349/0.5529, allocations: 0.7504 MB / 0.4918 GB, free: 11.85 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.175e-05/0.5529, allocations: 110.8 kB / 0.4919 GB, free: 11.72 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001584/0.5545, allocations: 1.197 MB / 0.493 GB, free: 11.2 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.963e-05/0.5546, allocations: 37.2 kB / 0.4931 GB, free: 11.16 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005398/0.5551, allocations: 0.772 MB / 0.4938 GB, free: 10.53 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001142/0.5552, allocations: 131 kB / 0.4939 GB, free: 10.44 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003255/0.5556, allocations: 276.1 kB / 0.4942 GB, free: 10.31 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001052/0.5557, allocations: 351.1 kB / 0.4945 GB, free: 9.984 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004721/0.5562, allocations: 324 kB / 0.4948 GB, free: 9.875 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000955/0.5571, allocations: 1.044 MB / 0.4959 GB, free: 8.754 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001493/0.5586, allocations: 1.399 MB / 0.4972 GB, free: 7.402 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-05/0.5587, allocations: 8.438 kB / 0.4972 GB, free: 7.402 MB / 366.1 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.002478/0.5611, allocations: 1.449 MB / 0.4987 GB, free: 6.754 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.743e-05/0.5612, allocations: 16 kB / 0.4987 GB, free: 6.738 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.612e-05/0.5612, allocations: 27.94 kB / 0.4987 GB, free: 6.711 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006624/0.5619, allocations: 151.3 kB / 0.4988 GB, free: 6.582 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009709/0.5629, allocations: 384.3 kB / 0.4992 GB, free: 6.254 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002146/0.565, allocations: 4.071 MB / 0.5032 GB, free: 1.938 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001177/0.5662, allocations: 72.98 kB / 0.5033 GB, free: 1.867 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001281/0.5663, allocations: 91.7 kB / 0.5033 GB, free: 1.781 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.0004543/0.5668, allocations: 312.5 kB / 0.5036 GB, free: 1.473 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001624/0.567, allocations: 102.7 kB / 0.5037 GB, free: 1.371 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001543/0.5685, allocations: 0.8556 MB / 0.5046 GB, free: 0.5938 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.529e-06/0.5685, allocations: 4 kB / 0.5046 GB, free: 0.5898 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.5685, allocations: 0.8906 kB / 0.5046 GB, free: 0.5898 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.5686, allocations: 5.078 kB / 0.5046 GB, free: 0.5859 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002093/0.5707, allocations: 1.263 MB / 0.5058 GB, free: 15.46 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.472e-06/0.5707, allocations: 4 kB / 0.5058 GB, free: 15.46 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000252/0.5709, allocations: 61.73 kB / 0.5059 GB, free: 15.41 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007407/0.5717, allocations: 174.2 kB / 0.506 GB, free: 15.26 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.952e-05/0.5717, allocations: 13.64 kB / 0.5061 GB, free: 15.25 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003101/0.5748, allocations: 3.949 MB / 0.5099 GB, free: 11.04 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.444e-06/0.5749, allocations: 0 / 0.5099 GB, free: 11.04 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001341/0.5762, allocations: 0.8526 MB / 0.5107 GB, free: 10.19 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003091/0.5765, allocations: 169.8 kB / 0.5109 GB, free: 10.01 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001344/0.5767, allocations: 15.94 kB / 0.5109 GB, free: 9.996 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003607/0.577, allocations: 10.86 kB / 0.5109 GB, free: 9.988 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.14e-05/0.5771, allocations: 36.81 kB / 0.511 GB, free: 9.961 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.226e-05/0.5772, allocations: 12 kB / 0.511 GB, free: 9.949 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001202/0.5784, allocations: 0.887 MB / 0.5118 GB, free: 9.125 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5784, allocations: 0 / 0.5118 GB, free: 9.125 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002644/0.581, allocations: 0.62 MB / 0.5125 GB, free: 8.504 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.001563/0.5826, allocations: 0.7238 MB / 0.5132 GB, free: 7.77 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001912/0.5845, allocations: 0.8151 MB / 0.514 GB, free: 6.961 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.372e-06/0.5845, allocations: 0 / 0.514 GB, free: 6.961 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000586/0.5851, allocations: 386.8 kB / 0.5143 GB, free: 6.559 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001152/0.5863, allocations: 167 kB / 0.5145 GB, free: 6.395 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003258/0.5896, allocations: 1.828 MB / 0.5163 GB, free: 4.508 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007395/0.5903, allocations: 1.059 MB / 0.5173 GB, free: 3.422 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001047/0.5914, allocations: 291.7 kB / 0.5176 GB, free: 3.141 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002464/0.5916, allocations: 131.4 kB / 0.5177 GB, free: 3.012 MB / 382.1 MB Notification: Performance of SimCode: time 9.92e-07/0.5916, allocations: 4 kB / 0.5177 GB, free: 3.008 MB / 382.1 MB Notification: Performance of Templates: time 0.03367/0.6253, allocations: 18.73 MB / 0.536 GB, free: 332 kB / 398.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)