Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.CheckSubstancesData.StandardLeadAcidPotential.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.StandardLeadAcidPotential,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.CheckSubstancesData.StandardLeadAcidPotential") translateModel(Chemical.Examples.CheckSubstancesData.StandardLeadAcidPotential,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.CheckSubstancesData.StandardLeadAcidPotential") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00141/0.00141, allocations: 110 kB / 16.37 MB, free: 6.469 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.001577/0.001578, allocations: 195.8 kB / 17.31 MB, free: 5.824 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.406/1.406, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.09069/0.09069, allocations: 15.31 MB / 306.5 MB, free: 15.45 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001453/0.001453, allocations: 60.64 kB / 371.8 MB, free: 50.87 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/0.1145, allocations: 53.61 MB / 425.4 MB, free: 13.36 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.StandardLeadAcidPotential): time 0.05996/0.1745, allocations: 28.02 MB / 453.4 MB, free: 1.449 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.04767/0.2222, allocations: 28.28 MB / 481.7 MB, free: 5.059 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001539/0.2238, allocations: 19.88 kB / 481.7 MB, free: 5.039 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001807/0.2256, allocations: 0.6749 MB / 482.3 MB, free: 4.359 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003908/0.2295, allocations: 1.311 MB / 483.7 MB, free: 3.039 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01249/0.242, allocations: 4.266 MB / 487.9 MB, free: 14.74 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003956/0.246, allocations: 2.199 MB / 490.1 MB, free: 12.54 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001638/0.2477, allocations: 1.145 MB / 491.3 MB, free: 11.36 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001343/0.249, allocations: 1.021 MB / 492.3 MB, free: 10.34 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001452/0.2505, allocations: 1.117 MB / 493.4 MB, free: 9.219 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002784/0.2508, allocations: 176 kB / 493.6 MB, free: 9.047 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01001/0.2608, allocations: 2.676 MB / 496.3 MB, free: 6.367 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001003/0.2619, allocations: 478.6 kB / 496.7 MB, free: 5.898 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001366/0.2632, allocations: 0.9837 MB / 497.7 MB, free: 4.91 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0126/0.2758, allocations: 5.014 MB / 0.4909 GB, free: 15.88 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.969e-06/0.2759, allocations: 3.984 kB / 0.4909 GB, free: 15.87 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.2759, allocations: 0 / 0.4909 GB, free: 15.87 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.08e-05/0.276, allocations: 0 / 0.4909 GB, free: 15.87 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 376 * Number of variables: 376 Notification: Performance of Generate backend data structure: time 0.004803/0.2808, allocations: 2.534 MB / 0.4934 GB, free: 13.28 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.199e-05/0.2808, allocations: 8.031 kB / 0.4934 GB, free: 13.27 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002187/0.283, allocations: 0.5211 MB / 0.4939 GB, free: 12.75 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002166/0.2852, allocations: 1.227 MB / 0.4951 GB, free: 11.48 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001489/0.2854, allocations: 170.7 kB / 0.4953 GB, free: 11.3 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002399/0.2856, allocations: 147.9 kB / 0.4954 GB, free: 11.15 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002924/0.2885, allocations: 2.019 MB / 0.4974 GB, free: 9.062 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.886e-05/0.2886, allocations: 3.938 kB / 0.4974 GB, free: 9.059 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001582/0.2887, allocations: 60 kB / 0.4975 GB, free: 9 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.949e-05/0.2888, allocations: 43.98 kB / 0.4975 GB, free: 8.957 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003906/0.2927, allocations: 2.776 MB / 0.5002 GB, free: 6.172 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2336/0.5263, allocations: 6.574 MB / 0.5066 GB, free: 75.8 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002249/0.5286, allocations: 1.059 MB / 0.5077 GB, free: 75.73 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001021/0.5297, allocations: 0.5547 MB / 0.5082 GB, free: 75.7 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01165/0.5413, allocations: 8.39 MB / 0.5164 GB, free: 70.13 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.879e-05/0.5414, allocations: 41.09 kB / 0.5164 GB, free: 70.09 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004351/0.5418, allocations: 103.2 kB / 0.5165 GB, free: 70.06 MB / 382.1 MB Notification: Performance of pre-optimization done (n=50): time 2.455e-06/0.5419, allocations: 0 / 0.5165 GB, free: 70.06 MB / 382.1 MB Notification: Performance of matching and sorting (n=50): time 0.00189/0.5437, allocations: 1.006 MB / 0.5175 GB, free: 69.58 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.166e-05/0.5438, allocations: 109.3 kB / 0.5176 GB, free: 69.45 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001568/0.5454, allocations: 1.238 MB / 0.5188 GB, free: 68.95 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.752e-05/0.5454, allocations: 31.14 kB / 0.5189 GB, free: 68.92 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005642/0.546, allocations: 0.9726 MB / 0.5198 GB, free: 68.15 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001236/0.5461, allocations: 190.5 kB / 0.52 GB, free: 68.01 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004168/0.5466, allocations: 343.3 kB / 0.5203 GB, free: 67.86 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.42e-05/0.5466, allocations: 303.9 kB / 0.5206 GB, free: 67.56 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005666/0.5472, allocations: 309.9 kB / 0.5209 GB, free: 67.47 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001184/0.5484, allocations: 1.32 MB / 0.5222 GB, free: 66.01 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002231/0.5506, allocations: 1.811 MB / 0.524 GB, free: 64.29 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-05/0.5507, allocations: 11 kB / 0.524 GB, free: 64.29 MB / 382.1 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.002978/0.5537, allocations: 1.684 MB / 0.5256 GB, free: 63.62 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.349e-05/0.5537, allocations: 21.2 kB / 0.5256 GB, free: 63.62 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.136e-05/0.5538, allocations: 37.28 kB / 0.5257 GB, free: 63.62 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006277/0.5544, allocations: 172 kB / 0.5258 GB, free: 63.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001281/0.5557, allocations: 484.3 kB / 0.5263 GB, free: 63.53 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002297/0.558, allocations: 4.091 MB / 0.5303 GB, free: 59.47 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001443/0.5595, allocations: 91.12 kB / 0.5304 GB, free: 59.43 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001773/0.5597, allocations: 125.5 kB / 0.5305 GB, free: 59.42 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 166 * 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 (197): * Single equations (assignments): 193 * 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.0005907/0.5603, allocations: 378.2 kB / 0.5309 GB, free: 59.14 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002375/0.5605, allocations: 137.2 kB / 0.531 GB, free: 59.07 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002054/0.5626, allocations: 1.37 MB / 0.5323 GB, free: 58.42 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.132e-06/0.5626, allocations: 10.31 kB / 0.5323 GB, free: 58.42 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.5626, allocations: 5.312 kB / 0.5324 GB, free: 58.42 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.223e-06/0.5626, allocations: 3.938 kB / 0.5324 GB, free: 58.42 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002225/0.5648, allocations: 1.519 MB / 0.5338 GB, free: 57.61 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.901e-06/0.5649, allocations: 3.969 kB / 0.5338 GB, free: 57.61 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002913/0.5652, allocations: 74.16 kB / 0.5339 GB, free: 57.6 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006558/0.5658, allocations: 171.9 kB / 0.5341 GB, free: 57.55 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.151e-05/0.5659, allocations: 19.81 kB / 0.5341 GB, free: 57.54 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001901/0.5678, allocations: 3.948 MB / 0.538 GB, free: 53.57 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.5678, allocations: 3.969 kB / 0.538 GB, free: 53.57 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001153/0.5689, allocations: 0.9819 MB / 0.5389 GB, free: 52.86 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003279/0.5693, allocations: 200.2 kB / 0.5391 GB, free: 52.68 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000165/0.5695, allocations: 11.62 kB / 0.5391 GB, free: 52.68 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004164/0.5699, allocations: 12.44 kB / 0.5391 GB, free: 52.67 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.424e-05/0.57, allocations: 43.52 kB / 0.5392 GB, free: 52.64 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.988e-05/0.57, allocations: 17.41 kB / 0.5392 GB, free: 52.64 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001091/0.5711, allocations: 0.9692 MB / 0.5401 GB, free: 52.12 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5711, allocations: 0 / 0.5401 GB, free: 52.12 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00235/0.5734, allocations: 0.8532 MB / 0.541 GB, free: 51.96 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 2 (anode.temperature,cathode.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 (31): * Single equations (assignments): 27 * 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.001627/0.5751, allocations: 1.034 MB / 0.542 GB, free: 51.7 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001687/0.5768, allocations: 0.9119 MB / 0.5429 GB, free: 51.32 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.5768, allocations: 2.688 kB / 0.5429 GB, free: 51.32 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004267/0.5772, allocations: 412.2 kB / 0.5433 GB, free: 51.01 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001233/0.5785, allocations: 234.8 kB / 0.5435 GB, free: 50.91 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002731/0.5812, allocations: 2.275 MB / 0.5457 GB, free: 48.72 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000459/0.5817, allocations: 1.196 MB / 0.5469 GB, free: 47.52 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0009929/0.5827, allocations: 398.7 kB / 0.5473 GB, free: 47.25 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003033/0.583, allocations: 206.5 kB / 0.5475 GB, free: 47.05 MB / 382.1 MB Notification: Performance of SimCode: time 8.72e-07/0.583, allocations: 0 / 0.5475 GB, free: 47.05 MB / 382.1 MB Notification: Performance of Templates: time 0.03228/0.6153, allocations: 25.9 MB / 0.5727 GB, free: 21.91 MB / 382.1 MB make -j1 -f Chemical_Chemical.Examples.CheckSubstancesData.StandardLeadAcidPotential.makefile (rm -f Chemical_Chemical.Examples.CheckSubstancesData.StandardLeadAcidPotential.pipe ; mkfifo Chemical_Chemical.Examples.CheckSubstancesData.StandardLeadAcidPotential.pipe ; head -c 1048576 < Chemical_Chemical.Examples.CheckSubstancesData.StandardLeadAcidPotential.pipe >> ../files/Chemical_Chemical.Examples.CheckSubstancesData.StandardLeadAcidPotential.sim & ./Chemical_Chemical.Examples.CheckSubstancesData.StandardLeadAcidPotential -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > Chemical_Chemical.Examples.CheckSubstancesData.StandardLeadAcidPotential.pipe 2>&1)