Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell.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.StandardElectrochemicalCell,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell") translateModel(Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001278/0.001278, allocations: 106.5 kB / 16.27 MB, free: 5.984 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.001127/0.001127, allocations: 189 kB / 17.2 MB, free: 5.609 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.324/1.324, allocations: 222.9 MB / 240.9 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08651/0.08651, allocations: 15.3 MB / 306.4 MB, free: 15.48 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001398/0.001399, allocations: 61.75 kB / 371 MB, free: 50.81 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09218/0.0936, allocations: 53.62 MB / 424.6 MB, free: 14.06 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.StandardElectrochemicalCell): time 0.03455/0.1282, allocations: 27.12 MB / 451.7 MB, free: 3.055 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02355/0.1518, allocations: 21.58 MB / 473.3 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001221/0.153, allocations: 23.88 kB / 473.3 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001462/0.1545, allocations: 0.5352 MB / 473.8 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00297/0.1575, allocations: 0.9893 MB / 474.8 MB, free: 11.83 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008683/0.1662, allocations: 3.288 MB / 478.1 MB, free: 8.52 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002722/0.1689, allocations: 1.793 MB / 479.9 MB, free: 6.719 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001275/0.1702, allocations: 0.9458 MB / 480.9 MB, free: 5.754 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009886/0.1712, allocations: 0.7946 MB / 481.7 MB, free: 4.957 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001108/0.1724, allocations: 0.8717 MB / 482.5 MB, free: 4.082 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002446/0.1726, allocations: 148 kB / 482.7 MB, free: 3.938 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006584/0.1792, allocations: 2.056 MB / 484.7 MB, free: 1.879 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006368/0.1799, allocations: 386.8 kB / 485.1 MB, free: 1.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001035/0.1809, allocations: 0.8049 MB / 485.9 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009577/0.1905, allocations: 3.912 MB / 489.8 MB, free: 12.77 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.012e-05/0.1906, allocations: 3.984 kB / 489.8 MB, free: 12.76 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.1906, allocations: 0 / 489.8 MB, free: 12.76 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.004e-05/0.1906, allocations: 0 / 489.8 MB, free: 12.76 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: 323 * Number of variables: 323 Notification: Performance of Generate backend data structure: time 0.003786/0.1944, allocations: 2.085 MB / 491.9 MB, free: 10.62 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.524e-05/0.1945, allocations: 8.031 kB / 491.9 MB, free: 10.61 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001822/0.1963, allocations: 438.1 kB / 492.3 MB, free: 10.18 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001716/0.198, allocations: 1.017 MB / 493.4 MB, free: 9.121 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001495/0.1982, allocations: 158.3 kB / 493.5 MB, free: 8.953 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002065/0.1984, allocations: 124 kB / 493.6 MB, free: 8.832 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002709/0.2011, allocations: 1.752 MB / 495.4 MB, free: 7.008 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.549e-05/0.2012, allocations: 0 / 495.4 MB, free: 7.008 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001413/0.2013, allocations: 52 kB / 495.4 MB, free: 6.957 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.879e-05/0.2014, allocations: 32 kB / 495.5 MB, free: 6.926 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003384/0.2048, allocations: 2.33 MB / 497.8 MB, free: 4.594 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008595/0.2134, allocations: 5.57 MB / 0.4916 GB, free: 14.83 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001554/0.215, allocations: 0.733 MB / 0.4923 GB, free: 14.07 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006584/0.2157, allocations: 364.4 kB / 0.4926 GB, free: 13.71 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009118/0.2248, allocations: 5.708 MB / 0.4982 GB, free: 7.301 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.893e-05/0.2249, allocations: 42.55 kB / 0.4982 GB, free: 7.25 MB / 382.1 MB Notification: Performance of pre-optimization done (n=37): time 2.484e-06/0.2249, allocations: 0 / 0.4982 GB, free: 7.25 MB / 382.1 MB Notification: Performance of matching and sorting (n=37): time 0.00164/0.2266, allocations: 0.7965 MB / 0.499 GB, free: 6.402 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.648e-05/0.2266, allocations: 110.8 kB / 0.4991 GB, free: 6.27 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001705/0.2283, allocations: 1.287 MB / 0.5004 GB, free: 4.973 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.515e-05/0.2284, allocations: 33.7 kB / 0.5004 GB, free: 4.934 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006298/0.229, allocations: 0.8424 MB / 0.5012 GB, free: 4.078 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001321/0.2292, allocations: 142.1 kB / 0.5014 GB, free: 3.938 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003957/0.2296, allocations: 291.2 kB / 0.5017 GB, free: 3.648 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001505/0.2297, allocations: 353.9 kB / 0.502 GB, free: 3.297 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000548/0.2303, allocations: 339.8 kB / 0.5023 GB, free: 2.965 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001108/0.2314, allocations: 1.148 MB / 0.5034 GB, free: 1.406 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2107/0.4422, allocations: 1.526 MB / 0.5049 GB, free: 77.4 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.642e-05/0.4422, allocations: 7.844 kB / 0.5049 GB, free: 77.4 MB / 382.1 MB Notification: Performance of matching and sorting (n=169) (initialization): time 0.002852/0.4451, allocations: 1.539 MB / 0.5064 GB, free: 77.19 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.226e-05/0.4452, allocations: 17.5 kB / 0.5065 GB, free: 77.19 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.721e-05/0.4452, allocations: 33.67 kB / 0.5065 GB, free: 77.19 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007759/0.446, allocations: 161 kB / 0.5066 GB, free: 77.17 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001238/0.4472, allocations: 399.6 kB / 0.507 GB, free: 77.14 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002292/0.4495, allocations: 4.073 MB / 0.511 GB, free: 73.21 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001184/0.4508, allocations: 185.6 kB / 0.5112 GB, free: 73.21 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001485/0.4509, allocations: 107.2 kB / 0.5113 GB, free: 73.21 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 133 * 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 (167): * Single equations (assignments): 163 * 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.0004987/0.4514, allocations: 336.5 kB / 0.5116 GB, free: 73.05 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002067/0.4516, allocations: 114.8 kB / 0.5117 GB, free: 73.03 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001911/0.4536, allocations: 0.9436 MB / 0.5126 GB, free: 72.82 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.476e-06/0.4536, allocations: 4.359 kB / 0.5126 GB, free: 72.82 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.4536, allocations: 1.812 kB / 0.5126 GB, free: 72.82 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.214e-06/0.4536, allocations: 1.078 kB / 0.5126 GB, free: 72.82 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002265/0.4559, allocations: 1.368 MB / 0.514 GB, free: 72.12 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.073e-06/0.4559, allocations: 4.938 kB / 0.514 GB, free: 72.12 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002676/0.4562, allocations: 58.17 kB / 0.514 GB, free: 72.11 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007357/0.4569, allocations: 184.7 kB / 0.5142 GB, free: 72.05 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.472e-05/0.457, allocations: 15.83 kB / 0.5142 GB, free: 72.05 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002134/0.4591, allocations: 3.943 MB / 0.5181 GB, free: 68.11 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.294e-06/0.4591, allocations: 8.375 kB / 0.5181 GB, free: 68.1 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001342/0.4605, allocations: 0.9079 MB / 0.519 GB, free: 67.49 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002936/0.4608, allocations: 179.9 kB / 0.5191 GB, free: 67.33 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001536/0.4609, allocations: 15.3 kB / 0.5192 GB, free: 67.32 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003791/0.4613, allocations: 9.109 kB / 0.5192 GB, free: 67.32 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.186e-05/0.4614, allocations: 47.05 kB / 0.5192 GB, free: 67.3 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.532e-05/0.4615, allocations: 15.14 kB / 0.5192 GB, free: 67.3 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001354/0.4628, allocations: 0.9573 MB / 0.5202 GB, free: 66.9 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.4628, allocations: 2.625 kB / 0.5202 GB, free: 66.9 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002498/0.4653, allocations: 0.696 MB / 0.5208 GB, free: 66.79 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (30): * Single equations (assignments): 26 * 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.001849/0.4672, allocations: 0.8402 MB / 0.5217 GB, free: 66.64 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001994/0.4692, allocations: 0.8607 MB / 0.5225 GB, free: 66.37 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.744e-06/0.4692, allocations: 1.375 kB / 0.5225 GB, free: 66.37 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005411/0.4698, allocations: 400 kB / 0.5229 GB, free: 66.1 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001401/0.4712, allocations: 187 kB / 0.5231 GB, free: 66.04 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003023/0.4742, allocations: 2.014 MB / 0.525 GB, free: 64.98 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005195/0.4748, allocations: 1.096 MB / 0.5261 GB, free: 64.27 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004211/0.4752, allocations: 213.8 kB / 0.5263 GB, free: 64.25 MB / 382.1 MB Notification: Performance of SimCode: time 1.132e-06/0.4752, allocations: 0 / 0.5263 GB, free: 64.25 MB / 382.1 MB Notification: Performance of Templates: time 0.03535/0.5106, allocations: 40.17 MB / 0.5655 GB, free: 29.16 MB / 382.1 MB make -j1 -f Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell.makefile (rm -f Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell.pipe ; mkfifo Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell.pipe ; head -c 1048576 < Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell.pipe >> ../files/Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell.sim & ./Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell.pipe 2>&1)