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.001136/0.001136, allocations: 115.2 kB / 16.37 MB, free: 6.016 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.001157/0.001157, allocations: 193.2 kB / 17.31 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.329/1.329, allocations: 222.9 MB / 241 MB, free: 15.01 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08389/0.08389, allocations: 15.3 MB / 306.5 MB, free: 15.42 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001422/0.001422, allocations: 66.23 kB / 371.7 MB, free: 50.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09139/0.09283, allocations: 53.61 MB / 425.4 MB, free: 13.31 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.032/0.1249, allocations: 26.31 MB / 451.7 MB, free: 3.133 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01903/0.1439, allocations: 18.17 MB / 469.8 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001115/0.1451, allocations: 19.88 kB / 469.9 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001468/0.1466, allocations: 468.6 kB / 470.3 MB, free: 416 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002663/0.1492, allocations: 0.8379 MB / 471.2 MB, free: 15.56 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008365/0.1576, allocations: 2.791 MB / 473.9 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002755/0.1604, allocations: 1.637 MB / 475.6 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001533/0.162, allocations: 0.9258 MB / 476.5 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001355/0.1633, allocations: 0.705 MB / 477.2 MB, free: 9.457 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001436/0.1648, allocations: 0.8055 MB / 478 MB, free: 8.648 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004068/0.1652, allocations: 144 kB / 478.2 MB, free: 8.508 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005661/0.1709, allocations: 1.755 MB / 479.9 MB, free: 6.75 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004658/0.1714, allocations: 354.9 kB / 480.3 MB, free: 6.402 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009817/0.1724, allocations: 0.7427 MB / 481 MB, free: 5.656 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006717/0.1791, allocations: 3.46 MB / 484.5 MB, free: 2.184 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.1791, allocations: 0 / 484.5 MB, free: 2.184 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1791, allocations: 0 / 484.5 MB, free: 2.184 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.191e-05/0.1792, allocations: 0 / 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.003342/0.1826, allocations: 1.925 MB / 486.4 MB, free: 208 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.77e-05/0.1826, allocations: 8.031 kB / 486.4 MB, free: 200 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001558/0.1842, allocations: 390.3 kB / 486.8 MB, free: 15.81 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001741/0.1859, allocations: 0.9846 MB / 487.8 MB, free: 14.79 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001339/0.1861, allocations: 150.1 kB / 487.9 MB, free: 14.62 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002041/0.1863, allocations: 116 kB / 488 MB, free: 14.51 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002324/0.1886, allocations: 1.645 MB / 489.7 MB, free: 12.79 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.384e-05/0.1886, allocations: 0 / 489.7 MB, free: 12.79 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001176/0.1888, allocations: 52 kB / 489.7 MB, free: 12.74 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.36e-05/0.1888, allocations: 28 kB / 489.7 MB, free: 12.71 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0028/0.1916, allocations: 2.104 MB / 491.9 MB, free: 10.61 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007188/0.1988, allocations: 5.409 MB / 497.3 MB, free: 5.004 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001185/0.2, allocations: 0.7211 MB / 498 MB, free: 4.258 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000542/0.2006, allocations: 360.4 kB / 498.3 MB, free: 3.898 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00679/0.2074, allocations: 5.022 MB / 0.4916 GB, free: 14.29 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.946e-05/0.2074, allocations: 42.56 kB / 0.4916 GB, free: 14.24 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002419/0.2077, allocations: 74.91 kB / 0.4917 GB, free: 14.16 MB / 382.1 MB Notification: Performance of pre-optimization done (n=34): time 1.793e-06/0.2077, allocations: 0 / 0.4917 GB, free: 14.16 MB / 382.1 MB Notification: Performance of matching and sorting (n=34): time 0.001303/0.209, allocations: 0.7577 MB / 0.4924 GB, free: 13.36 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.3e-05/0.209, allocations: 106.8 kB / 0.4925 GB, free: 13.23 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001245/0.2103, allocations: 1.203 MB / 0.4937 GB, free: 12.01 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.297e-05/0.2103, allocations: 33.7 kB / 0.4937 GB, free: 11.97 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004446/0.2108, allocations: 0.776 MB / 0.4945 GB, free: 11.18 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.464e-05/0.2109, allocations: 134.3 kB / 0.4946 GB, free: 11.05 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003016/0.2112, allocations: 270.5 kB / 0.4949 GB, free: 10.78 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001143/0.2113, allocations: 349.9 kB / 0.4952 GB, free: 10.43 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004635/0.2118, allocations: 322.5 kB / 0.4955 GB, free: 10.11 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009088/0.2127, allocations: 1.05 MB / 0.4965 GB, free: 8.699 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001373/0.2141, allocations: 1.399 MB / 0.4979 GB, free: 6.934 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.099e-05/0.2141, allocations: 8 kB / 0.4979 GB, free: 6.926 MB / 382.1 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.001989/0.2161, allocations: 1.44 MB / 0.4993 GB, free: 5.473 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.648e-05/0.2161, allocations: 16 kB / 0.4993 GB, free: 5.457 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.331e-05/0.2162, allocations: 31.94 kB / 0.4994 GB, free: 5.426 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005753/0.2168, allocations: 157.3 kB / 0.4995 GB, free: 5.266 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00105/0.2178, allocations: 371.5 kB / 0.4999 GB, free: 4.902 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002677/0.2205, allocations: 4.073 MB / 0.5038 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007587/0.2213, allocations: 71.91 kB / 0.5039 GB, free: 432 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001136/0.2214, allocations: 91.97 kB / 0.504 GB, free: 340 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.0003936/0.2218, allocations: 317.1 kB / 0.5043 GB, free: 12 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.1927/0.4145, allocations: 95.3 kB / 0.5044 GB, free: 77.8 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001789/0.4163, allocations: 0.8421 MB / 0.5052 GB, free: 77.62 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.942e-06/0.4163, allocations: 5.562 kB / 0.5052 GB, free: 77.62 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.4163, allocations: 1.938 kB / 0.5052 GB, free: 77.62 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.14e-06/0.4164, allocations: 5.688 kB / 0.5052 GB, free: 77.62 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002029/0.4184, allocations: 1.257 MB / 0.5064 GB, free: 77.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/0.4184, allocations: 3.906 kB / 0.5065 GB, free: 77.25 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002578/0.4187, allocations: 64.94 kB / 0.5065 GB, free: 77.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006883/0.4194, allocations: 167.9 kB / 0.5067 GB, free: 77.21 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.11e-05/0.4194, allocations: 13.83 kB / 0.5067 GB, free: 77.21 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002044/0.4215, allocations: 3.944 MB / 0.5105 GB, free: 73.45 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.47e-06/0.4215, allocations: 7.75 kB / 0.5105 GB, free: 73.45 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001182/0.4227, allocations: 0.8535 MB / 0.5114 GB, free: 73.08 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002098/0.4229, allocations: 170 kB / 0.5115 GB, free: 72.97 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000124/0.423, allocations: 8.547 kB / 0.5116 GB, free: 72.97 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003765/0.4234, allocations: 13.95 kB / 0.5116 GB, free: 72.97 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.5e-05/0.4235, allocations: 36.61 kB / 0.5116 GB, free: 72.96 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.822e-05/0.4235, allocations: 17.39 kB / 0.5116 GB, free: 72.96 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00101/0.4246, allocations: 0.8863 MB / 0.5125 GB, free: 72.86 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4246, allocations: 0 / 0.5125 GB, free: 72.86 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001652/0.4262, allocations: 0.6209 MB / 0.5131 GB, free: 72.84 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.001091/0.4273, allocations: 0.7281 MB / 0.5138 GB, free: 72.71 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001539/0.4289, allocations: 0.7991 MB / 0.5146 GB, free: 72.48 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.4289, allocations: 0 / 0.5146 GB, free: 72.48 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004525/0.4293, allocations: 390.3 kB / 0.515 GB, free: 72.21 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009739/0.4303, allocations: 173.9 kB / 0.5151 GB, free: 72.15 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002636/0.433, allocations: 1.794 MB / 0.5169 GB, free: 71.22 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006148/0.4336, allocations: 1.066 MB / 0.5179 GB, free: 70.51 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008272/0.4344, allocations: 283.9 kB / 0.5182 GB, free: 70.5 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002459/0.4347, allocations: 140.7 kB / 0.5183 GB, free: 70.48 MB / 382.1 MB Notification: Performance of SimCode: time 4.11e-07/0.4347, allocations: 0 / 0.5183 GB, free: 70.48 MB / 382.1 MB Notification: Performance of Templates: time 0.02427/0.459, allocations: 18.75 MB / 0.5366 GB, free: 59.25 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 gbode -lv LOG_STATS > Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe 2>&1)