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.00165/0.00165, allocations: 105.7 kB / 16.27 MB, free: 6.414 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.001536/0.001535, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.52/1.52, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08287/0.08287, allocations: 15.31 MB / 306.4 MB, free: 15.48 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001836/0.001836, allocations: 61.23 kB / 371 MB, free: 51.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.1142, allocations: 53.61 MB / 424.6 MB, free: 14.2 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.03286/0.1471, allocations: 26.52 MB / 451.1 MB, free: 3.785 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01999/0.1671, allocations: 18.17 MB / 469.3 MB, free: 1.543 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001105/0.1683, allocations: 15.94 kB / 469.3 MB, free: 1.527 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001531/0.1698, allocations: 468.6 kB / 469.7 MB, free: 1.066 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002923/0.1728, allocations: 0.834 MB / 470.6 MB, free: 232 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00822/0.181, allocations: 2.791 MB / 473.4 MB, free: 13.42 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002696/0.1837, allocations: 1.634 MB / 475 MB, free: 11.78 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001497/0.1852, allocations: 0.922 MB / 475.9 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00117/0.1864, allocations: 0.705 MB / 476.6 MB, free: 10.13 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00141/0.1879, allocations: 0.8056 MB / 477.4 MB, free: 9.32 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004778/0.1884, allocations: 140 kB / 477.6 MB, free: 9.184 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006349/0.1947, allocations: 1.759 MB / 479.3 MB, free: 7.422 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006372/0.1954, allocations: 350.9 kB / 479.7 MB, free: 7.078 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001338/0.1967, allocations: 0.7504 MB / 480.4 MB, free: 6.324 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008047/0.2048, allocations: 3.441 MB / 483.9 MB, free: 2.871 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.2049, allocations: 0 / 483.9 MB, free: 2.871 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.2049, allocations: 0 / 483.9 MB, free: 2.871 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.285e-05/0.205, allocations: 4 kB / 483.9 MB, free: 2.867 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.004371/0.2093, allocations: 1.924 MB / 485.8 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.13e-05/0.2094, allocations: 12.03 kB / 485.8 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001868/0.2113, allocations: 386.3 kB / 486.2 MB, free: 0.5 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001789/0.2131, allocations: 0.9536 MB / 487.1 MB, free: 15.5 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001566/0.2133, allocations: 146.1 kB / 487.3 MB, free: 15.34 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002888/0.2136, allocations: 116 kB / 487.4 MB, free: 15.23 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003027/0.2166, allocations: 1.66 MB / 489.1 MB, free: 13.5 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.784e-05/0.2167, allocations: 0 / 489.1 MB, free: 13.5 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001577/0.2168, allocations: 48 kB / 489.1 MB, free: 13.45 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.051e-05/0.2169, allocations: 36 kB / 489.1 MB, free: 13.41 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003334/0.2202, allocations: 2.104 MB / 491.2 MB, free: 11.3 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008769/0.229, allocations: 5.42 MB / 496.7 MB, free: 5.695 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001363/0.2304, allocations: 0.7212 MB / 497.4 MB, free: 4.949 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000604/0.2311, allocations: 356.4 kB / 497.7 MB, free: 4.594 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007629/0.2387, allocations: 5.037 MB / 0.491 GB, free: 14.97 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.347e-05/0.2388, allocations: 38.55 kB / 0.491 GB, free: 14.92 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004322/0.2392, allocations: 82.88 kB / 0.4911 GB, free: 14.84 MB / 382.1 MB Notification: Performance of pre-optimization done (n=34): time 3.587e-06/0.2392, allocations: 0 / 0.4911 GB, free: 14.84 MB / 382.1 MB Notification: Performance of matching and sorting (n=34): time 0.001564/0.2408, allocations: 0.754 MB / 0.4918 GB, free: 14.04 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.371e-05/0.2409, allocations: 106.8 kB / 0.4919 GB, free: 13.91 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001568/0.2425, allocations: 1.198 MB / 0.4931 GB, free: 12.69 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.137e-05/0.2425, allocations: 37.7 kB / 0.4931 GB, free: 12.65 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000518/0.243, allocations: 0.7644 MB / 0.4939 GB, free: 11.87 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001213/0.2432, allocations: 138.3 kB / 0.494 GB, free: 11.73 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003487/0.2435, allocations: 270.5 kB / 0.4943 GB, free: 11.46 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001477/0.2437, allocations: 354 kB / 0.4946 GB, free: 11.11 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000523/0.2442, allocations: 326.5 kB / 0.4949 GB, free: 10.79 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001014/0.2452, allocations: 1.046 MB / 0.496 GB, free: 9.383 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001649/0.2469, allocations: 1.395 MB / 0.4973 GB, free: 7.621 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-05/0.2469, allocations: 4 kB / 0.4973 GB, free: 7.617 MB / 382.1 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.002484/0.2494, allocations: 1.447 MB / 0.4987 GB, free: 6.156 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.133e-05/0.2495, allocations: 16 kB / 0.4987 GB, free: 6.141 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.237e-05/0.2495, allocations: 31.94 kB / 0.4988 GB, free: 6.109 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006886/0.2502, allocations: 153.8 kB / 0.4989 GB, free: 5.953 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001129/0.2514, allocations: 375.4 kB / 0.4993 GB, free: 5.586 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002992/0.2544, allocations: 4.069 MB / 0.5033 GB, free: 1.18 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009579/0.2553, allocations: 67.72 kB / 0.5033 GB, free: 1.113 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001584/0.2555, allocations: 91.98 kB / 0.5034 GB, free: 1.023 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.000549/0.2561, allocations: 313.3 kB / 0.5037 GB, free: 0.707 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002596/0.2563, allocations: 102.7 kB / 0.5038 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1931/0.4495, allocations: 0.8471 MB / 0.5046 GB, free: 78.28 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.212e-05/0.4495, allocations: 3.812 kB / 0.5046 GB, free: 78.28 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.4495, allocations: 1.188 kB / 0.5046 GB, free: 78.28 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.488e-06/0.4496, allocations: 4.391 kB / 0.5046 GB, free: 78.28 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002851/0.4524, allocations: 1.259 MB / 0.5059 GB, free: 77.9 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.722e-06/0.4524, allocations: 3.125 kB / 0.5059 GB, free: 77.9 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002729/0.4527, allocations: 60.98 kB / 0.5059 GB, free: 77.9 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007886/0.4535, allocations: 175.6 kB / 0.5061 GB, free: 77.87 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.74e-05/0.4536, allocations: 12.95 kB / 0.5061 GB, free: 77.87 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002378/0.456, allocations: 3.946 MB / 0.51 GB, free: 74.11 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.442e-06/0.456, allocations: 6.219 kB / 0.51 GB, free: 74.11 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001403/0.4574, allocations: 0.8511 MB / 0.5108 GB, free: 73.74 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003384/0.4578, allocations: 171.4 kB / 0.511 GB, free: 73.64 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003184/0.4581, allocations: 12.98 kB / 0.511 GB, free: 73.64 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005442/0.4586, allocations: 13.47 kB / 0.511 GB, free: 73.64 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.923e-05/0.4587, allocations: 37.25 kB / 0.511 GB, free: 73.64 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.741e-05/0.4588, allocations: 15.38 kB / 0.511 GB, free: 73.64 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001318/0.4601, allocations: 0.8848 MB / 0.5119 GB, free: 73.45 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4601, allocations: 2.688 kB / 0.5119 GB, free: 73.45 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002077/0.4622, allocations: 0.6187 MB / 0.5125 GB, free: 73.4 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.001661/0.4639, allocations: 0.7249 MB / 0.5132 GB, free: 73.26 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00186/0.4657, allocations: 0.8057 MB / 0.514 GB, free: 73.02 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.919e-06/0.4658, allocations: 0 / 0.514 GB, free: 73.02 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005496/0.4663, allocations: 393 kB / 0.5144 GB, free: 72.75 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001391/0.4677, allocations: 164.6 kB / 0.5145 GB, free: 72.7 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00372/0.4715, allocations: 1.869 MB / 0.5164 GB, free: 71.74 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008346/0.4723, allocations: 1.063 MB / 0.5174 GB, free: 71.03 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004665/0.4728, allocations: 189.1 kB / 0.5176 GB, free: 71.02 MB / 382.1 MB Notification: Performance of SimCode: time 1.002e-06/0.4728, allocations: 0 / 0.5176 GB, free: 71.02 MB / 382.1 MB Notification: Performance of Templates: time 0.03794/0.5108, allocations: 36.75 MB / 0.5535 GB, free: 42.08 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)