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.001137/0.001137, 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.001229/0.001229, allocations: 193.2 kB / 16.13 MB, free: 6.672 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.343/1.343, allocations: 222.9 MB / 239.8 MB, free: 4.578 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2001/0.2001, allocations: 15.32 MB / 305.3 MB, free: 15.33 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001394/0.001394, allocations: 55.91 kB / 369.7 MB, free: 4.449 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1216/0.123, allocations: 53.61 MB / 423.3 MB, free: 14.79 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.3591/0.4822, allocations: 26.68 MB / 449.9 MB, free: 39.22 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01674/0.4989, allocations: 18.16 MB / 468.1 MB, free: 30.52 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00162/0.5006, allocations: 33.88 kB / 468.1 MB, free: 30.5 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001234/0.5018, allocations: 421.6 kB / 468.6 MB, free: 30.29 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00222/0.5041, allocations: 0.7751 MB / 469.3 MB, free: 29.85 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007673/0.5118, allocations: 2.459 MB / 471.8 MB, free: 28.58 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00238/0.5142, allocations: 1.592 MB / 473.4 MB, free: 27.82 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001067/0.5152, allocations: 0.7877 MB / 474.2 MB, free: 27.48 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008722/0.5161, allocations: 0.6717 MB / 474.8 MB, free: 27.25 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008425/0.517, allocations: 0.7837 MB / 475.6 MB, free: 26.93 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001989/0.5172, allocations: 93.28 kB / 475.7 MB, free: 26.92 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006199/0.5234, allocations: 1.724 MB / 477.4 MB, free: 26.48 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003778/0.5238, allocations: 312.9 kB / 477.7 MB, free: 26.32 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008453/0.5246, allocations: 0.6944 MB / 478.4 MB, free: 25.93 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0091/0.5337, allocations: 3.24 MB / 481.7 MB, free: 24.55 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.322e-06/0.5338, allocations: 1.156 kB / 481.7 MB, free: 24.55 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.5338, allocations: 0 / 481.7 MB, free: 24.55 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.363e-05/0.5338, allocations: 0 / 481.7 MB, free: 24.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.003724/0.5376, allocations: 1.925 MB / 483.6 MB, free: 23.34 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.082e-05/0.5376, allocations: 9.531 kB / 483.6 MB, free: 23.34 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001541/0.5392, allocations: 385 kB / 484 MB, free: 23.23 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001426/0.5406, allocations: 0.9412 MB / 484.9 MB, free: 22.67 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001406/0.5408, allocations: 154.1 kB / 485.1 MB, free: 22.56 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002187/0.541, allocations: 117.2 kB / 485.2 MB, free: 22.52 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002594/0.5436, allocations: 1.654 MB / 486.9 MB, free: 21.79 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.885e-05/0.5436, allocations: 1.281 kB / 486.9 MB, free: 21.79 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001263/0.5438, allocations: 55.28 kB / 486.9 MB, free: 21.75 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.124e-05/0.5438, allocations: 29.56 kB / 486.9 MB, free: 21.75 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003046/0.5468, allocations: 2.096 MB / 489 MB, free: 21.14 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007345/0.5542, allocations: 5.427 MB / 494.5 MB, free: 17.77 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001135/0.5554, allocations: 0.7271 MB / 495.2 MB, free: 17.45 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005125/0.5559, allocations: 359.8 kB / 495.5 MB, free: 17.3 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006291/0.5622, allocations: 5.052 MB / 0.4889 GB, free: 13.39 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.106e-05/0.5622, allocations: 43.72 kB / 0.4889 GB, free: 13.34 MB / 366.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003197/0.5625, allocations: 72.81 kB / 0.489 GB, free: 13.29 MB / 366.1 MB Notification: Performance of pre-optimization done (n=34): time 2.215e-06/0.5626, allocations: 4 kB / 0.489 GB, free: 13.28 MB / 366.1 MB Notification: Performance of matching and sorting (n=34): time 0.001215/0.5638, allocations: 0.7471 MB / 0.4897 GB, free: 12.85 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.314e-05/0.5638, allocations: 110.9 kB / 0.4898 GB, free: 12.72 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001138/0.565, allocations: 1.202 MB / 0.491 GB, free: 12.2 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.046e-05/0.565, allocations: 34.7 kB / 0.491 GB, free: 12.16 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003625/0.5654, allocations: 0.7713 MB / 0.4918 GB, free: 11.53 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.733e-05/0.5655, allocations: 135.1 kB / 0.4919 GB, free: 11.43 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002866/0.5658, allocations: 272.4 kB / 0.4922 GB, free: 11.3 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.79e-05/0.5659, allocations: 356 kB / 0.4925 GB, free: 10.98 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004365/0.5663, allocations: 320.7 kB / 0.4928 GB, free: 10.87 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000699/0.567, allocations: 1.043 MB / 0.4938 GB, free: 9.75 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001143/0.5682, allocations: 1.4 MB / 0.4952 GB, free: 8.398 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.074e-05/0.5682, allocations: 7.469 kB / 0.4952 GB, free: 8.398 MB / 366.1 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.001979/0.5702, allocations: 1.436 MB / 0.4966 GB, free: 7.801 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.131e-05/0.5702, allocations: 16.19 kB / 0.4966 GB, free: 7.801 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.05e-05/0.5702, allocations: 35.12 kB / 0.4966 GB, free: 7.793 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006289/0.5709, allocations: 155.5 kB / 0.4968 GB, free: 7.754 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001048/0.5719, allocations: 375.9 kB / 0.4972 GB, free: 7.711 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002064/0.574, allocations: 3.868 MB / 0.5009 GB, free: 3.668 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009401/0.575, allocations: 82.08 kB / 0.501 GB, free: 3.59 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001081/0.5751, allocations: 91.94 kB / 0.5011 GB, free: 3.504 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.0004314/0.5755, allocations: 319.4 kB / 0.5014 GB, free: 3.188 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001614/0.5757, allocations: 99.34 kB / 0.5015 GB, free: 3.09 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001616/0.5773, allocations: 0.849 MB / 0.5023 GB, free: 2.32 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.5773, allocations: 7.938 kB / 0.5023 GB, free: 2.312 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.5773, allocations: 4 kB / 0.5023 GB, free: 2.309 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.12e-06/0.5773, allocations: 1.266 kB / 0.5023 GB, free: 2.309 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001901/0.5792, allocations: 1.263 MB / 0.5036 GB, free: 1.184 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.861e-06/0.5793, allocations: 8.828 kB / 0.5036 GB, free: 1.176 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002459/0.5795, allocations: 61.78 kB / 0.5036 GB, free: 1.125 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007314/0.5803, allocations: 182.6 kB / 0.5038 GB, free: 0.9688 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.085e-05/0.5803, allocations: 17.22 kB / 0.5038 GB, free: 0.9531 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002606/0.5829, allocations: 3.734 MB / 0.5075 GB, free: 12.98 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.629e-06/0.5829, allocations: 4.031 kB / 0.5075 GB, free: 12.97 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001267/0.5842, allocations: 0.8623 MB / 0.5083 GB, free: 12.11 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002643/0.5845, allocations: 169.3 kB / 0.5085 GB, free: 11.93 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001349/0.5846, allocations: 8.984 kB / 0.5085 GB, free: 11.93 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003832/0.585, allocations: 16.95 kB / 0.5085 GB, free: 11.91 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.934e-05/0.5851, allocations: 37.3 kB / 0.5085 GB, free: 11.88 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.45e-05/0.5851, allocations: 21.69 kB / 0.5086 GB, free: 11.86 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001126/0.5862, allocations: 0.8812 MB / 0.5094 GB, free: 11.09 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5863, allocations: 0 / 0.5094 GB, free: 11.09 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002171/0.5884, allocations: 0.614 MB / 0.51 GB, free: 10.49 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.001444/0.5899, allocations: 0.7361 MB / 0.5107 GB, free: 9.824 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001653/0.5916, allocations: 0.7822 MB / 0.5115 GB, free: 9.129 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.5916, allocations: 1.875 kB / 0.5115 GB, free: 9.129 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005233/0.5921, allocations: 385.1 kB / 0.5119 GB, free: 8.754 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001079/0.5932, allocations: 151.6 kB / 0.512 GB, free: 8.629 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002966/0.5962, allocations: 2.266 MB / 0.5142 GB, free: 6.418 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006691/0.5969, allocations: 1.058 MB / 0.5153 GB, free: 5.434 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0009947/0.5979, allocations: 294.5 kB / 0.5155 GB, free: 5.148 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002642/0.5981, allocations: 139.4 kB / 0.5157 GB, free: 5.012 MB / 382.1 MB Notification: Performance of SimCode: time 5.71e-07/0.5981, allocations: 3.938 kB / 0.5157 GB, free: 5.008 MB / 382.1 MB Notification: Performance of Templates: time 0.03059/0.6287, allocations: 18.23 MB / 0.5335 GB, free: 2.828 MB / 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)