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.00156/0.00156, allocations: 115.6 kB / 16.37 MB, free: 6.004 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.001776/0.001776, allocations: 192.1 kB / 17.31 MB, free: 5.613 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.367/1.367, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08409/0.08409, allocations: 15.31 MB / 306.5 MB, free: 15.44 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001701/0.001701, allocations: 63.03 kB / 371.7 MB, free: 50.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1106/0.1123, allocations: 53.61 MB / 425.4 MB, free: 13.33 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.03127/0.1436, allocations: 26.31 MB / 451.7 MB, free: 3.137 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02003/0.1637, allocations: 18.17 MB / 469.8 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001031/0.1648, allocations: 15.94 kB / 469.9 MB, free: 0.875 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00133/0.1661, allocations: 472.4 kB / 470.3 MB, free: 420 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002193/0.1683, allocations: 0.838 MB / 471.2 MB, free: 15.56 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007081/0.1754, allocations: 2.795 MB / 474 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002273/0.1777, allocations: 1.637 MB / 475.6 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009963/0.1787, allocations: 0.922 MB / 476.5 MB, free: 10.17 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006872/0.1794, allocations: 0.7128 MB / 477.2 MB, free: 9.453 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008304/0.1802, allocations: 0.8016 MB / 478 MB, free: 8.648 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001767/0.1804, allocations: 144 kB / 478.2 MB, free: 8.508 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005466/0.1859, allocations: 1.747 MB / 479.9 MB, free: 6.758 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004056/0.1863, allocations: 358.9 kB / 480.3 MB, free: 6.406 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008496/0.1872, allocations: 0.7466 MB / 481 MB, free: 5.656 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006697/0.1939, allocations: 3.457 MB / 484.5 MB, free: 2.188 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.1939, allocations: 0 / 484.5 MB, free: 2.188 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.767e-06/0.1939, allocations: 0 / 484.5 MB, free: 2.188 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.113e-05/0.194, allocations: 3.938 kB / 484.5 MB, free: 2.184 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.002955/0.1969, allocations: 1.925 MB / 486.4 MB, free: 208 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.464e-05/0.197, allocations: 8.031 kB / 486.4 MB, free: 200 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001449/0.1984, allocations: 386.3 kB / 486.8 MB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001576/0.2, allocations: 0.9807 MB / 487.8 MB, free: 14.79 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001236/0.2002, allocations: 154.1 kB / 487.9 MB, free: 14.63 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001823/0.2003, allocations: 116 kB / 488 MB, free: 14.52 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002271/0.2026, allocations: 1.641 MB / 489.7 MB, free: 12.8 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.281e-05/0.2027, allocations: 3.938 kB / 489.7 MB, free: 12.8 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001377/0.2028, allocations: 52 kB / 489.7 MB, free: 12.75 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.253e-05/0.2028, allocations: 28 kB / 489.7 MB, free: 12.72 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002856/0.2057, allocations: 2.1 MB / 491.8 MB, free: 10.61 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007454/0.2132, allocations: 5.405 MB / 497.3 MB, free: 5.016 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001238/0.2144, allocations: 0.725 MB / 498 MB, free: 4.266 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005709/0.215, allocations: 360.4 kB / 498.3 MB, free: 3.906 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007585/0.2226, allocations: 5.022 MB / 0.4916 GB, free: 14.3 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.782e-05/0.2227, allocations: 42.5 kB / 0.4916 GB, free: 14.25 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003024/0.223, allocations: 78.91 kB / 0.4917 GB, free: 14.17 MB / 382.1 MB Notification: Performance of pre-optimization done (n=34): time 1.934e-06/0.223, allocations: 0 / 0.4917 GB, free: 14.17 MB / 382.1 MB Notification: Performance of matching and sorting (n=34): time 0.001434/0.2245, allocations: 0.7538 MB / 0.4924 GB, free: 13.36 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.305e-05/0.2245, allocations: 114.9 kB / 0.4925 GB, free: 13.23 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001354/0.2259, allocations: 1.199 MB / 0.4937 GB, free: 12.01 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.907e-05/0.2259, allocations: 33.7 kB / 0.4937 GB, free: 11.97 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004972/0.2264, allocations: 0.776 MB / 0.4945 GB, free: 11.18 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.924e-05/0.2265, allocations: 130.3 kB / 0.4946 GB, free: 11.05 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000339/0.2269, allocations: 274.4 kB / 0.4949 GB, free: 10.78 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001468/0.227, allocations: 353.9 kB / 0.4952 GB, free: 10.43 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004811/0.2275, allocations: 318.5 kB / 0.4955 GB, free: 10.12 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001098/0.2286, allocations: 1.05 MB / 0.4965 GB, free: 8.703 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001664/0.2303, allocations: 1.395 MB / 0.4979 GB, free: 6.941 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.137e-05/0.2303, allocations: 4 kB / 0.4979 GB, free: 6.938 MB / 382.1 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.002409/0.2328, allocations: 1.447 MB / 0.4993 GB, free: 5.477 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.007e-05/0.2328, allocations: 16 kB / 0.4993 GB, free: 5.461 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.708e-05/0.2328, allocations: 31.94 kB / 0.4994 GB, free: 5.43 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000632/0.2335, allocations: 157.3 kB / 0.4995 GB, free: 5.27 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001023/0.2345, allocations: 375.5 kB / 0.4999 GB, free: 4.902 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002945/0.2375, allocations: 4.065 MB / 0.5038 GB, free: 0.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008592/0.2383, allocations: 72 kB / 0.5039 GB, free: 440 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001164/0.2385, allocations: 95.98 kB / 0.504 GB, free: 344 kB / 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.0004697/0.2389, allocations: 317.1 kB / 0.5043 GB, free: 16 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.201/0.4399, allocations: 99.2 kB / 0.5044 GB, free: 77.72 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001966/0.4419, allocations: 0.8436 MB / 0.5052 GB, free: 77.55 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.131e-05/0.4419, allocations: 4.719 kB / 0.5052 GB, free: 77.55 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/0.442, allocations: 4.797 kB / 0.5052 GB, free: 77.55 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.723e-06/0.442, allocations: 2.188 kB / 0.5052 GB, free: 77.55 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002665/0.4446, allocations: 1.263 MB / 0.5065 GB, free: 77.17 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.663e-06/0.4447, allocations: 0.7031 kB / 0.5065 GB, free: 77.17 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002718/0.4449, allocations: 64.17 kB / 0.5065 GB, free: 77.17 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007907/0.4457, allocations: 168.5 kB / 0.5067 GB, free: 77.14 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.012e-05/0.4458, allocations: 18.56 kB / 0.5067 GB, free: 77.14 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002315/0.4481, allocations: 3.936 MB / 0.5105 GB, free: 73.38 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.652e-06/0.4482, allocations: 10.59 kB / 0.5106 GB, free: 73.37 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001532/0.4497, allocations: 0.8511 MB / 0.5114 GB, free: 73 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004816/0.4502, allocations: 167.4 kB / 0.5115 GB, free: 72.89 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003264/0.4505, allocations: 12.14 kB / 0.5116 GB, free: 72.89 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005686/0.4511, allocations: 7.875 kB / 0.5116 GB, free: 72.89 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001083/0.4512, allocations: 44.38 kB / 0.5116 GB, free: 72.89 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.155e-05/0.4513, allocations: 18.84 kB / 0.5116 GB, free: 72.89 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001537/0.4528, allocations: 0.8835 MB / 0.5125 GB, free: 72.78 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.4528, allocations: 0 / 0.5125 GB, free: 72.78 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002069/0.4549, allocations: 0.6233 MB / 0.5131 GB, free: 72.76 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.001993/0.4569, allocations: 0.7246 MB / 0.5138 GB, free: 72.64 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001958/0.4589, allocations: 0.7997 MB / 0.5146 GB, free: 72.42 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.292e-06/0.4589, allocations: 4 kB / 0.5146 GB, free: 72.41 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006356/0.4595, allocations: 387.5 kB / 0.515 GB, free: 72.14 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001919/0.4615, allocations: 168 kB / 0.5151 GB, free: 72.09 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004185/0.4657, allocations: 1.8 MB / 0.5169 GB, free: 71.15 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001013/0.4667, allocations: 1.064 MB / 0.5179 GB, free: 70.44 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001153/0.4679, allocations: 280.1 kB / 0.5182 GB, free: 70.43 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000388/0.4683, allocations: 136.4 kB / 0.5183 GB, free: 70.42 MB / 382.1 MB Notification: Performance of SimCode: time 1.843e-06/0.4683, allocations: 0 / 0.5183 GB, free: 70.42 MB / 382.1 MB Notification: Performance of Templates: time 0.0315/0.4998, allocations: 18.76 MB / 0.5366 GB, free: 59.21 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 -s cvode -lv LOG_STATS > Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe 2>&1)