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.001019/0.00102, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.0009807/0.0009806, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.304/1.304, allocations: 223.3 MB / 240 MB, free: 5.223 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2069/0.2069, allocations: 15.28 MB / 306.4 MB, free: 15.74 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003789/0.000379, allocations: 8 kB / 371.5 MB, free: 3.973 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2587/0.2591, allocations: 54.63 MB / 426.1 MB, free: 40.24 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:3019:6-3019:65: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:3019:6-3019:65: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.006795/0.2659, allocations: 9.174 MB / 435.3 MB, free: 36.9 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01902/0.285, allocations: 25.99 MB / 461.3 MB, free: 18.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00165/0.2866, allocations: 42.31 kB / 461.3 MB, free: 18 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001455/0.2881, allocations: 0.6176 MB / 461.9 MB, free: 17.66 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003173/0.2913, allocations: 1.348 MB / 463.3 MB, free: 16.82 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008657/0.3, allocations: 3.479 MB / 466.8 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00233/0.3023, allocations: 2.008 MB / 468.8 MB, free: 13.84 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001013/0.3033, allocations: 0.922 MB / 469.7 MB, free: 13.47 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001139/0.3045, allocations: 0.8298 MB / 470.5 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001262/0.3058, allocations: 1.032 MB / 471.5 MB, free: 12.84 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000241/0.306, allocations: 94.78 kB / 471.6 MB, free: 12.84 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007966/0.314, allocations: 2.54 MB / 474.2 MB, free: 12.24 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007918/0.3148, allocations: 380.9 kB / 474.5 MB, free: 12.06 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006814/0.3155, allocations: 355.3 kB / 474.9 MB, free: 11.87 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00602/0.3215, allocations: 3.78 MB / 478.7 MB, free: 10.41 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.3215, allocations: 1.094 kB / 478.7 MB, free: 10.41 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.415e-06/0.3215, allocations: 0.7031 kB / 478.7 MB, free: 10.41 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.072e-05/0.3216, allocations: 0 / 478.7 MB, free: 10.41 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: 376 * Number of variables: 376 Notification: Performance of Generate backend data structure: time 0.004558/0.3262, allocations: 2.132 MB / 480.8 MB, free: 9.078 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.502e-05/0.3262, allocations: 10.09 kB / 480.8 MB, free: 9.078 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00225/0.3285, allocations: 0.5206 MB / 481.3 MB, free: 8.926 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001929/0.3304, allocations: 1.113 MB / 482.5 MB, free: 8.305 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001383/0.3306, allocations: 167.2 kB / 482.6 MB, free: 8.191 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003106/0.3309, allocations: 144.6 kB / 482.8 MB, free: 8.145 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003466/0.3344, allocations: 2.01 MB / 484.8 MB, free: 7.324 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.243e-05/0.3344, allocations: 8.891 kB / 484.8 MB, free: 7.316 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001647/0.3346, allocations: 58.3 kB / 484.8 MB, free: 7.273 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.221e-05/0.3346, allocations: 41.19 kB / 484.9 MB, free: 7.27 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004363/0.339, allocations: 2.754 MB / 487.6 MB, free: 6.52 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00888/0.3479, allocations: 6.544 MB / 494.2 MB, free: 1.602 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001393/0.3493, allocations: 1.052 MB / 495.2 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007364/0.3501, allocations: 0.556 MB / 495.8 MB, free: 15.96 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01045/0.3605, allocations: 8.212 MB / 0.4922 GB, free: 6.719 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.178e-05/0.3606, allocations: 46.97 kB / 0.4922 GB, free: 6.664 MB / 366.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004616/0.3611, allocations: 102.6 kB / 0.4923 GB, free: 6.562 MB / 366.1 MB Notification: Performance of pre-optimization done (n=50): time 2.064e-06/0.3611, allocations: 0 / 0.4923 GB, free: 6.562 MB / 366.1 MB Notification: Performance of matching and sorting (n=50): time 0.001721/0.3628, allocations: 1.001 MB / 0.4933 GB, free: 5.516 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.795e-05/0.3629, allocations: 107.2 kB / 0.4934 GB, free: 5.387 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001422/0.3643, allocations: 1.233 MB / 0.4946 GB, free: 4.145 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.812e-05/0.3644, allocations: 33.7 kB / 0.4946 GB, free: 4.105 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006091/0.365, allocations: 0.9512 MB / 0.4956 GB, free: 3.141 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001609/0.3651, allocations: 201.4 kB / 0.4958 GB, free: 2.941 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.104e-05/0.3652, allocations: 36.25 kB / 0.4958 GB, free: 2.906 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001422/0.3654, allocations: 365.9 kB / 0.4961 GB, free: 2.543 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005002/0.3659, allocations: 303.8 kB / 0.4964 GB, free: 2.246 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001089/0.367, allocations: 1.316 MB / 0.4977 GB, free: 432 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007844/0.3678, allocations: 0.5112 MB / 0.4982 GB, free: 15.91 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.421e-05/0.3678, allocations: 12 kB / 0.4982 GB, free: 15.89 MB / 382.1 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.00251/0.3703, allocations: 1.678 MB / 0.4999 GB, free: 14.2 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.011e-05/0.3703, allocations: 20 kB / 0.4999 GB, free: 14.18 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.153e-05/0.3704, allocations: 36 kB / 0.4999 GB, free: 14.15 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005763/0.371, allocations: 178 kB / 0.5001 GB, free: 13.97 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001223/0.3722, allocations: 475.2 kB / 0.5005 GB, free: 13.5 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002689/0.3749, allocations: 3.899 MB / 0.5043 GB, free: 9.277 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001104/0.376, allocations: 91.89 kB / 0.5044 GB, free: 9.188 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001839/0.3762, allocations: 128 kB / 0.5046 GB, free: 9.062 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 (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0006096/0.3768, allocations: 384.8 kB / 0.5049 GB, free: 8.676 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002016/0.377, allocations: 142.1 kB / 0.5051 GB, free: 8.535 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002546/0.3796, allocations: 1.391 MB / 0.5064 GB, free: 7.066 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.51e-06/0.3796, allocations: 8 kB / 0.5064 GB, free: 7.059 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.094e-06/0.3796, allocations: 0 / 0.5064 GB, free: 7.059 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.429e-06/0.3796, allocations: 0 / 0.5064 GB, free: 7.059 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002218/0.3819, allocations: 1.487 MB / 0.5079 GB, free: 5.473 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.741e-06/0.3819, allocations: 7.938 kB / 0.5079 GB, free: 5.465 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002887/0.3822, allocations: 75.88 kB / 0.508 GB, free: 5.391 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006789/0.3829, allocations: 179.6 kB / 0.5081 GB, free: 5.203 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.122e-05/0.3829, allocations: 16 kB / 0.5081 GB, free: 5.188 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002429/0.3853, allocations: 3.742 MB / 0.5118 GB, free: 1.117 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.097e-06/0.3854, allocations: 4 kB / 0.5118 GB, free: 1.113 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001252/0.3866, allocations: 0.9677 MB / 0.5127 GB, free: 88 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004345/0.3871, allocations: 251.2 kB / 0.513 GB, free: 15.82 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001577/0.3872, allocations: 19.94 kB / 0.513 GB, free: 15.8 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004059/0.3876, allocations: 12.06 kB / 0.513 GB, free: 15.79 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.995e-05/0.3877, allocations: 35.95 kB / 0.5131 GB, free: 15.75 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.066e-05/0.3878, allocations: 20 kB / 0.5131 GB, free: 15.73 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001163/0.3889, allocations: 0.919 MB / 0.514 GB, free: 14.82 MB / 398.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3889, allocations: 0 / 0.514 GB, free: 14.82 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002534/0.3915, allocations: 0.8502 MB / 0.5148 GB, free: 13.97 MB / 398.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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.001682/0.3932, allocations: 1.045 MB / 0.5158 GB, free: 12.93 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001619/0.3948, allocations: 0.8974 MB / 0.5167 GB, free: 12.04 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.3948, allocations: 0 / 0.5167 GB, free: 12.04 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000588/0.3954, allocations: 405 kB / 0.5171 GB, free: 11.62 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001195/0.3966, allocations: 224.2 kB / 0.5173 GB, free: 11.4 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003445/0.4001, allocations: 2.801 MB / 0.52 GB, free: 8.531 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007199/0.4008, allocations: 1.189 MB / 0.5212 GB, free: 7.312 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.00148/0.4023, allocations: 409 kB / 0.5216 GB, free: 6.938 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003391/0.4027, allocations: 210.7 kB / 0.5218 GB, free: 6.734 MB / 398.1 MB Notification: Performance of SimCode: time 4.01e-07/0.4027, allocations: 0 / 0.5218 GB, free: 6.734 MB / 398.1 MB Notification: Performance of Templates: time 0.03549/0.4382, allocations: 24.36 MB / 0.5456 GB, free: 14.49 MB / 430.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 -lv LOG_STATS > Chemical_Chemical.Examples.CheckSubstancesData.StandardLeadAcidPotential.pipe 2>&1)