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.0-master/package.mo", uses=false) Using package Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-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.0009708/0.0009708, allocations: 100 kB / 15.05 MB, free: 1.105 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.00092/0.00092, allocations: 177.3 kB / 15.95 MB, free: 216 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.408/1.408, allocations: 223.2 MB / 239.9 MB, free: 5.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.2275/0.2275, allocations: 15.25 MB / 306.2 MB, free: 15.78 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002953/0.0002953, allocations: 8 kB / 371.4 MB, free: 4.031 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3127/0.3131, allocations: 54.62 MB / 426 MB, free: 39.9 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:3011:6-3011: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.0-master/package.mo:3011:6-3011: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.009955/0.3231, allocations: 8.306 MB / 434.3 MB, free: 37.26 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02001/0.3431, allocations: 23.95 MB / 458.2 MB, free: 20.06 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001633/0.3448, allocations: 42.78 kB / 458.3 MB, free: 20.04 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001538/0.3463, allocations: 0.6127 MB / 458.9 MB, free: 19.71 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003608/0.35, allocations: 1.61 MB / 460.5 MB, free: 18.62 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009941/0.3599, allocations: 3.869 MB / 464.4 MB, free: 16.27 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002905/0.3628, allocations: 1.502 MB / 465.9 MB, free: 15.5 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001031/0.3639, allocations: 0.917 MB / 466.8 MB, free: 15.13 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001056/0.3649, allocations: 0.7544 MB / 467.5 MB, free: 14.83 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001396/0.3664, allocations: 0.9994 MB / 468.5 MB, free: 14.48 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002541/0.3666, allocations: 94.28 kB / 468.6 MB, free: 14.48 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01105/0.3777, allocations: 3.084 MB / 471.7 MB, free: 13.94 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000601/0.3783, allocations: 385.2 kB / 472.1 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006551/0.379, allocations: 351.6 kB / 472.4 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006367/0.3853, allocations: 2.982 MB / 475.4 MB, free: 12.59 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.816e-06/0.3854, allocations: 1.156 kB / 475.4 MB, free: 12.59 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.3854, allocations: 0 / 475.4 MB, free: 12.59 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.558e-05/0.3854, allocations: 0 / 475.4 MB, free: 12.59 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.004116/0.3895, allocations: 2.141 MB / 477.6 MB, free: 11.26 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.431e-05/0.3896, allocations: 8.5 kB / 477.6 MB, free: 11.26 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002247/0.3918, allocations: 0.516 MB / 478.1 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001982/0.3938, allocations: 1.085 MB / 479.2 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001428/0.394, allocations: 172.5 kB / 479.3 MB, free: 10.36 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002806/0.3943, allocations: 143.4 kB / 479.5 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003538/0.3978, allocations: 2.014 MB / 481.5 MB, free: 9.496 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.3e-05/0.3979, allocations: 1.25 kB / 481.5 MB, free: 9.496 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000179/0.3981, allocations: 64.66 kB / 481.6 MB, free: 9.445 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.986e-05/0.3981, allocations: 37.47 kB / 481.6 MB, free: 9.445 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005716/0.4038, allocations: 2.754 MB / 484.3 MB, free: 8.703 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01137/0.4152, allocations: 6.498 MB / 490.8 MB, free: 4.637 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001559/0.4169, allocations: 1.045 MB / 491.9 MB, free: 3.68 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01093/0.4278, allocations: 8.154 MB / 0.4883 GB, free: 10.63 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.884e-05/0.4279, allocations: 39 kB / 0.4884 GB, free: 10.59 MB / 366.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005912/0.4285, allocations: 106.5 kB / 0.4885 GB, free: 10.48 MB / 366.1 MB Notification: Performance of pre-optimization done (n=50): time 4.489e-06/0.4285, allocations: 0 / 0.4885 GB, free: 10.48 MB / 366.1 MB Notification: Performance of matching and sorting (n=50): time 0.001925/0.4304, allocations: 0.994 MB / 0.4894 GB, free: 9.441 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.63e-05/0.4305, allocations: 115.2 kB / 0.4895 GB, free: 9.305 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001613/0.4321, allocations: 1.225 MB / 0.4907 GB, free: 8.07 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.839e-05/0.4322, allocations: 37.7 kB / 0.4908 GB, free: 8.027 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006533/0.4329, allocations: 0.9551 MB / 0.4917 GB, free: 7.059 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001614/0.433, allocations: 193.7 kB / 0.4919 GB, free: 6.867 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.476e-05/0.4331, allocations: 36 kB / 0.4919 GB, free: 6.832 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001442/0.4333, allocations: 365.9 kB / 0.4923 GB, free: 6.469 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005531/0.4338, allocations: 303.8 kB / 0.4926 GB, free: 6.172 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001168/0.435, allocations: 1.308 MB / 0.4938 GB, free: 4.355 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000881/0.4359, allocations: 0.515 MB / 0.4943 GB, free: 3.84 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.413e-05/0.4359, allocations: 12 kB / 0.4944 GB, free: 3.828 MB / 366.1 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.002812/0.4387, allocations: 1.686 MB / 0.496 GB, free: 2.129 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.272e-05/0.4388, allocations: 20 kB / 0.496 GB, free: 2.109 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.334e-05/0.4388, allocations: 39.98 kB / 0.4961 GB, free: 2.07 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006734/0.4395, allocations: 174.1 kB / 0.4962 GB, free: 1.895 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001327/0.4409, allocations: 471.3 kB / 0.4967 GB, free: 1.434 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002722/0.4436, allocations: 3.9 MB / 0.5005 GB, free: 13.21 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001301/0.4449, allocations: 103.9 kB / 0.5006 GB, free: 13.11 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001909/0.4451, allocations: 124 kB / 0.5007 GB, free: 12.98 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.0006516/0.4458, allocations: 384.9 kB / 0.5011 GB, free: 12.6 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002401/0.446, allocations: 138.2 kB / 0.5012 GB, free: 12.46 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002715/0.4487, allocations: 1.407 MB / 0.5026 GB, free: 10.98 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.124e-06/0.4488, allocations: 4 kB / 0.5026 GB, free: 10.98 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.006e-06/0.4488, allocations: 0 / 0.5026 GB, free: 10.98 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.4488, allocations: 0 / 0.5026 GB, free: 10.98 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002677/0.4515, allocations: 1.476 MB / 0.504 GB, free: 9.406 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.855e-06/0.4515, allocations: 4 kB / 0.504 GB, free: 9.402 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003006/0.4518, allocations: 71.89 kB / 0.5041 GB, free: 9.332 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007619/0.4526, allocations: 183.3 kB / 0.5043 GB, free: 9.141 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.952e-05/0.4526, allocations: 15.98 kB / 0.5043 GB, free: 9.125 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002629/0.4553, allocations: 3.758 MB / 0.5079 GB, free: 5.035 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.861e-06/0.4553, allocations: 4.312 kB / 0.508 GB, free: 5.031 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001523/0.4568, allocations: 1.134 MB / 0.5091 GB, free: 3.766 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000565/0.4574, allocations: 239.2 kB / 0.5093 GB, free: 3.512 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003664/0.4578, allocations: 15.94 kB / 0.5093 GB, free: 3.496 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000624/0.4584, allocations: 12 kB / 0.5093 GB, free: 3.484 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.692e-05/0.4585, allocations: 43.89 kB / 0.5094 GB, free: 3.441 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.463e-05/0.4585, allocations: 16 kB / 0.5094 GB, free: 3.426 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001463/0.46, allocations: 0.923 MB / 0.5103 GB, free: 2.508 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.46, allocations: 0 / 0.5103 GB, free: 2.508 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003375/0.4634, allocations: 0.8423 MB / 0.5111 GB, free: 1.664 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 (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.00249/0.4659, allocations: 1.033 MB / 0.5121 GB, free: 0.6289 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002087/0.468, allocations: 0.8964 MB / 0.513 GB, free: 15.74 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/0.468, allocations: 0 / 0.513 GB, free: 15.74 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005603/0.4686, allocations: 406.1 kB / 0.5134 GB, free: 15.32 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00132/0.4699, allocations: 218.2 kB / 0.5136 GB, free: 15.11 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004599/0.4745, allocations: 2.794 MB / 0.5163 GB, free: 12.25 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009521/0.4755, allocations: 1.22 MB / 0.5175 GB, free: 11 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001678/0.4772, allocations: 412.6 kB / 0.5179 GB, free: 10.62 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004524/0.4776, allocations: 205.6 kB / 0.5181 GB, free: 10.43 MB / 398.1 MB Notification: Performance of SimCode: time 1.072e-06/0.4776, allocations: 0 / 0.5181 GB, free: 10.43 MB / 398.1 MB Notification: Performance of Templates: time 0.039/0.5166, allocations: 24.18 MB / 0.5417 GB, free: 2.359 MB / 414.1 MB make -j1 -f Chemical_Chemical.Examples.CheckSubstancesData.StandardLeadAcidPotential.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: