Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.LeadAcidBattery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo) Running command: "" <> buildModelFMU(Chemical.Examples.LeadAcidBattery,fileNamePrefix="Chemical_Chemical_Examples_LeadAcidBattery",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.LeadAcidBattery,fileNamePrefix="Chemical_Chemical_Examples_LeadAcidBattery",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.09251/0.09251, allocations: 15.27 MB / 30.21 MB, free: 3.297 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001049/0.001049, allocations: 184.2 kB / 35.29 MB, free: 2.375 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.597/1.597, allocations: 223.2 MB / 263.4 MB, free: 6.562 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009386/0.0009386, allocations: 92.27 kB / 318.8 MB, free: 3.441 MB / 250.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003347/0.0003347, allocations: 8.094 kB / 384 MB, free: 50.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1088, allocations: 54.65 MB / 438.7 MB, free: 280 kB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3998/0.5086, allocations: 103.1 MB / 0.529 GB, free: 15.62 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000263/0.5089, allocations: 71.41 kB / 0.5291 GB, free: 15.62 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2429/0.7518, allocations: 93.38 MB / 0.6203 GB, free: 15.92 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.347e-06/0.7519, allocations: 0 / 0.6203 GB, free: 15.92 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002344/0.7521, allocations: 63.92 kB / 0.6204 GB, free: 15.86 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 669 * Number of variables: 669 Notification: Performance of Generate backend data structure: time 0.01046/0.7626, allocations: 2.957 MB / 0.6233 GB, free: 12.84 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.4e-05/0.7627, allocations: 12.03 kB / 0.6233 GB, free: 12.83 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001564/0.7642, allocations: 359 kB / 0.6236 GB, free: 12.47 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003752/0.768, allocations: 0.6868 MB / 0.6243 GB, free: 11.78 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004564/0.7726, allocations: 1.404 MB / 0.6257 GB, free: 10.32 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003347/0.773, allocations: 256.6 kB / 0.6259 GB, free: 10.06 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001161/0.7741, allocations: 275.8 kB / 0.6262 GB, free: 9.789 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01047/0.7846, allocations: 4.464 MB / 0.6305 GB, free: 5.254 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001076/0.7848, allocations: 0 / 0.6305 GB, free: 5.254 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007673/0.7855, allocations: 116 kB / 0.6306 GB, free: 5.141 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.967e-05/0.7856, allocations: 60 kB / 0.6307 GB, free: 5.082 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01117/0.7968, allocations: 6.232 MB / 0.6368 GB, free: 14.84 MB / 442.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02761/0.8244, allocations: 12.94 MB / 0.6494 GB, free: 1.496 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00696/0.8314, allocations: 4.607 MB / 0.6539 GB, free: 12.77 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001269/0.8327, allocations: 0.6647 MB / 0.6546 GB, free: 12.1 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.659e-05/0.8328, allocations: 60.7 kB / 0.6546 GB, free: 12.03 MB / 458.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002015/0.8348, allocations: 245.9 kB / 0.6549 GB, free: 11.79 MB / 458.7 MB Notification: Performance of pre-optimization done (n=272): time 1.66e-05/0.8349, allocations: 0 / 0.6549 GB, free: 11.79 MB / 458.7 MB Notification: Performance of matching and sorting (n=405): time 0.4155/1.25, allocations: 34.22 MB / 0.6883 GB, free: 83.8 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.517e-05/1.251, allocations: 98.78 kB / 0.6884 GB, free: 83.73 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001437/1.252, allocations: 1.017 MB / 0.6894 GB, free: 83.59 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005651/1.253, allocations: 94.36 kB / 0.6894 GB, free: 83.56 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000664/1.253, allocations: 0.8794 MB / 0.6903 GB, free: 83.24 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001321/1.255, allocations: 1.355 MB / 0.6916 GB, free: 82.54 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002188/1.255, allocations: 72.31 kB / 0.6917 GB, free: 82.54 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001933/1.255, allocations: 446.4 kB / 0.6921 GB, free: 82.23 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003577/1.259, allocations: 2.422 MB / 0.6945 GB, free: 82.22 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004049/1.263, allocations: 2.912 MB / 0.6973 GB, free: 81.8 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004473/1.267, allocations: 2.667 MB / 0.6999 GB, free: 81.76 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.406e-05/1.267, allocations: 2.844 kB / 0.6999 GB, free: 81.76 MB / 474.7 MB Notification: Performance of matching and sorting (n=468) (initialization): time 0.01761/1.285, allocations: 7.534 MB / 0.7073 GB, free: 81.45 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.624e-05/1.285, allocations: 9.219 kB / 0.7073 GB, free: 81.45 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.976e-05/1.285, allocations: 12.81 kB / 0.7073 GB, free: 81.45 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01128/1.296, allocations: 2.973 MB / 0.7102 GB, free: 81.37 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003387/1.3, allocations: 0.6655 MB / 0.7109 GB, free: 81.37 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01478/1.314, allocations: 11.06 MB / 0.7217 GB, free: 76.27 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003411/1.318, allocations: 167 kB / 0.7218 GB, free: 76.27 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006976/1.319, allocations: 156.2 kB / 0.722 GB, free: 76.27 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * 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 (371): * Single equations (assignments): 365 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 27,(1,100.0%) 3} * Non-linear torn systems: 3 {5 54,1 4,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.001712/1.32, allocations: 0.5374 MB / 0.7225 GB, free: 76.15 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005335/1.321, allocations: 225.3 kB / 0.7227 GB, free: 76.04 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01498/1.336, allocations: 7.879 MB / 0.7304 GB, free: 74.82 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.972e-05/1.336, allocations: 42.78 kB / 0.7305 GB, free: 74.82 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.897e-05/1.336, allocations: 3.594 kB / 0.7305 GB, free: 74.82 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000125/1.336, allocations: 30.16 kB / 0.7305 GB, free: 74.82 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02787/1.364, allocations: 16.21 MB / 0.7463 GB, free: 68.01 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.034e-05/1.364, allocations: 10.97 kB / 0.7463 GB, free: 68.01 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003071/1.367, allocations: 0.6115 MB / 0.7469 GB, free: 67.99 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01136/1.378, allocations: 2.902 MB / 0.7498 GB, free: 67.3 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009078/1.379, allocations: 131.8 kB / 0.7499 GB, free: 67.24 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01272/1.392, allocations: 10.46 MB / 0.7601 GB, free: 59.78 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.221e-05/1.392, allocations: 19.06 kB / 0.7601 GB, free: 59.78 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02093/1.413, allocations: 11.8 MB / 0.7716 GB, free: 53.8 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008366/1.414, allocations: 299.6 kB / 0.7719 GB, free: 53.57 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009903/1.415, allocations: 96.94 kB / 0.772 GB, free: 53.52 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002917/1.418, allocations: 159.9 kB / 0.7722 GB, free: 53.45 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009597/1.419, allocations: 330.6 kB / 0.7725 GB, free: 53.39 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006247/1.42, allocations: 156 kB / 0.7726 GB, free: 53.36 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001335/1.421, allocations: 0.7817 MB / 0.7734 GB, free: 53.02 MB / 474.7 MB Notification: Performance of sort global known variables: time 2.51e-07/1.421, allocations: 0 / 0.7734 GB, free: 53.02 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.00596/1.427, allocations: 1.69 MB / 0.775 GB, free: 52.84 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 51 * Number of states: 10 (anode.temperature,cathode.temperature,solution1.temperature,Pb.logn,HSO4.logn,PbSO4_.logn,H.logn,PbO2.logn,H2O.logn,PbSO4.logn) * 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 (341): * Single equations (assignments): 335 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 27,(1,100.0%) 3} * Non-linear torn systems: 3 {4 63,1 4,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.02481/1.452, allocations: 17.27 MB / 0.7919 GB, free: 41.25 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01379/1.466, allocations: 6.505 MB / 0.7983 GB, free: 35.37 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.927e-05/1.466, allocations: 0 / 0.7983 GB, free: 35.37 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005961/1.472, allocations: 3.708 MB / 0.8019 GB, free: 32 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002864/1.475, allocations: 414 kB / 0.8023 GB, free: 31.68 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02054/1.495, allocations: 17.79 MB / 0.8197 GB, free: 13.97 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001815/1.497, allocations: 1.779 MB / 0.8214 GB, free: 12.54 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.002847/1.5, allocations: 400.5 kB / 0.8218 GB, free: 12.23 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002/1.502, allocations: 1.156 MB / 0.8229 GB, free: 11.2 MB / 474.7 MB Notification: Performance of SimCode: time 1.002e-06/1.502, allocations: 0 / 0.8229 GB, free: 11.2 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3462/1.848, allocations: 89.32 MB / 0.9101 GB, free: 92.36 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000129/1.848, allocations: 189.5 kB / 0.9103 GB, free: 92.11 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.411/7.259, allocations: 0 / 0.9103 GB, free: 92.11 MB / 490.7 MB (rm -f Chemical_Chemical.Examples.LeadAcidBattery.pipe ; mkfifo Chemical_Chemical.Examples.LeadAcidBattery.pipe ; head -c 1048576 < Chemical_Chemical.Examples.LeadAcidBattery.pipe >> ../files/Chemical_Chemical.Examples.LeadAcidBattery.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_LeadAcidBattery_fmu --startTime=0 --stopTime=47800 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_LeadAcidBattery.fmu > Chemical_Chemical.Examples.LeadAcidBattery.pipe 2>&1)