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/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.LeadAcidBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.LeadAcidBattery") translateModel(Chemical.Examples.LeadAcidBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.LeadAcidBattery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001251/0.001251, allocations: 106.5 kB / 16.41 MB, free: 6.484 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.001271/0.001271, allocations: 189.5 kB / 17.34 MB, free: 5.762 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.398/1.398, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.0825/0.0825, allocations: 15.31 MB / 306.5 MB, free: 15.41 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001243/0.001243, allocations: 60.12 kB / 425.9 MB, free: 11.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1014/0.1027, allocations: 53.62 MB / 479.5 MB, free: 5.789 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.LeadAcidBattery): time 0.01148/0.1142, allocations: 11.64 MB / 491.1 MB, free: 10.09 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2758/0.39, allocations: 33.73 MB / 0.5125 GB, free: 3.266 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001952/0.392, allocations: 27.97 kB / 0.5126 GB, free: 3.266 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002187/0.3942, allocations: 0.7466 MB / 0.5133 GB, free: 3.262 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008492/0.4028, allocations: 2.767 MB / 0.516 GB, free: 3.199 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0132/0.416, allocations: 4.423 MB / 0.5203 GB, free: 2.012 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006219/0.4223, allocations: 3.412 MB / 0.5237 GB, free: 1.324 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003204/0.4255, allocations: 2.072 MB / 0.5257 GB, free: 1.082 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003078/0.4286, allocations: 1.652 MB / 0.5273 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003637/0.4323, allocations: 1.864 MB / 0.5291 GB, free: 0 / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001289/0.4336, allocations: 322.6 kB / 0.5294 GB, free: 0 / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01557/0.4492, allocations: 3.73 MB / 0.5331 GB, free: 15.1 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001717/0.451, allocations: 0.7509 MB / 0.5338 GB, free: 14.64 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004049/0.455, allocations: 1.581 MB / 0.5353 GB, free: 13.73 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02075/0.4758, allocations: 7.252 MB / 0.5424 GB, free: 9.887 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.893e-06/0.4759, allocations: 3 kB / 0.5424 GB, free: 9.887 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.522e-06/0.4759, allocations: 4 kB / 0.5424 GB, free: 9.883 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001889/0.4761, allocations: 0 / 0.5424 GB, free: 9.883 MB / 398.1 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.01053/0.4866, allocations: 3.7 MB / 0.546 GB, free: 7.285 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.672e-05/0.4867, allocations: 16.03 kB / 0.5461 GB, free: 7.27 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003153/0.4898, allocations: 0.6137 MB / 0.5467 GB, free: 6.652 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003074/0.4929, allocations: 1.496 MB / 0.5481 GB, free: 5.129 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002485/0.4932, allocations: 257.6 kB / 0.5484 GB, free: 4.863 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005417/0.4937, allocations: 267.9 kB / 0.5486 GB, free: 4.602 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005825/0.4996, allocations: 3.12 MB / 0.5517 GB, free: 1.41 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.208e-05/0.4996, allocations: 0 / 0.5517 GB, free: 1.41 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002846/0.4999, allocations: 108 kB / 0.5518 GB, free: 1.305 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.97e-05/0.5, allocations: 64 kB / 0.5518 GB, free: 1.242 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006327/0.5063, allocations: 3.846 MB / 0.5556 GB, free: 13.39 MB / 414.1 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.01816/0.5245, allocations: 9.868 MB / 0.5652 GB, free: 3.27 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005721/0.5303, allocations: 3.466 MB / 0.5686 GB, free: 15.67 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002241/0.5326, allocations: 1.341 MB / 0.5699 GB, free: 14.32 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01802/0.5506, allocations: 10.84 MB / 0.5805 GB, free: 2.414 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.407e-05/0.5507, allocations: 53.91 kB / 0.5806 GB, free: 2.355 MB / 430.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001067/0.5518, allocations: 213.9 kB / 0.5808 GB, free: 2.145 MB / 430.1 MB Notification: Performance of pre-optimization done (n=177): time 9.928e-06/0.5518, allocations: 0 / 0.5808 GB, free: 2.145 MB / 430.1 MB Notification: Performance of matching and sorting (n=251): time 0.04848/0.6003, allocations: 12.27 MB / 0.5927 GB, free: 5.742 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.074e-05/0.6004, allocations: 77.41 kB / 0.5928 GB, free: 5.656 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001723/0.6021, allocations: 1.175 MB / 0.594 GB, free: 4.469 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003691/0.6025, allocations: 65.7 kB / 0.594 GB, free: 4.398 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007881/0.6033, allocations: 1.139 MB / 0.5951 GB, free: 3.254 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009736/0.6043, allocations: 0.8646 MB / 0.596 GB, free: 2.395 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001145/0.6055, allocations: 0.5688 MB / 0.5965 GB, free: 1.816 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.611e-05/0.6056, allocations: 305.1 kB / 0.5968 GB, free: 1.516 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002059/0.6076, allocations: 1.009 MB / 0.5978 GB, free: 0.5039 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002772/0.6104, allocations: 1.905 MB / 0.5997 GB, free: 14.21 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005235/0.6157, allocations: 3.196 MB / 0.6028 GB, free: 10.59 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.017e-05/0.6157, allocations: 8 kB / 0.6028 GB, free: 10.59 MB / 462.1 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.01106/0.6268, allocations: 4.133 MB / 0.6068 GB, free: 6.391 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.762e-05/0.6269, allocations: 16 kB / 0.6069 GB, free: 6.375 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.319e-05/0.6269, allocations: 28 kB / 0.6069 GB, free: 6.348 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006336/0.6333, allocations: 1.36 MB / 0.6082 GB, free: 4.98 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002661/0.636, allocations: 0.6514 MB / 0.6088 GB, free: 4.328 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0122/0.6482, allocations: 8.282 MB / 0.6169 GB, free: 11.6 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002545/0.6508, allocations: 99.97 kB / 0.617 GB, free: 11.5 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006396/0.6514, allocations: 171.9 kB / 0.6172 GB, free: 11.34 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 127 * 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 (341): * Single equations (assignments): 336 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,15,77.8%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,25), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.001577/0.653, allocations: 0.5087 MB / 0.6177 GB, free: 10.82 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007546/0.6538, allocations: 197.5 kB / 0.6179 GB, free: 10.62 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01118/0.665, allocations: 3.897 MB / 0.6217 GB, free: 6.648 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.2e-05/0.6651, allocations: 27.98 kB / 0.6217 GB, free: 6.621 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.667e-05/0.6651, allocations: 4 kB / 0.6217 GB, free: 6.617 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.942e-05/0.6652, allocations: 11.95 kB / 0.6217 GB, free: 6.605 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01525/0.6804, allocations: 6.325 MB / 0.6279 GB, free: 188 kB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-05/0.6805, allocations: 4 kB / 0.6279 GB, free: 184 kB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002074/0.6826, allocations: 439.8 kB / 0.6283 GB, free: 15.75 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005991/0.6886, allocations: 1.27 MB / 0.6296 GB, free: 14.47 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005006/0.6891, allocations: 99.92 kB / 0.6297 GB, free: 14.37 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01048/0.6996, allocations: 7.787 MB / 0.6373 GB, free: 6.148 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.217e-06/0.6996, allocations: 7.938 kB / 0.6373 GB, free: 6.141 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01239/0.712, allocations: 5.038 MB / 0.6422 GB, free: 0.9531 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006265/0.7127, allocations: 254.5 kB / 0.6424 GB, free: 0.6836 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005916/0.7133, allocations: 55.94 kB / 0.6425 GB, free: 0.6289 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001664/0.715, allocations: 59.98 kB / 0.6425 GB, free: 0.5703 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005922/0.7156, allocations: 229.7 kB / 0.6428 GB, free: 352 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003244/0.716, allocations: 115.9 kB / 0.6429 GB, free: 236 kB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001208/0.7172, allocations: 0.7312 MB / 0.6436 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of sort global known variables: time 4.11e-07/0.7172, allocations: 0 / 0.6436 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004903/0.7221, allocations: 1.476 MB / 0.645 GB, free: 14.02 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (222): * Single equations (assignments): 217 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,15,66.7%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,27), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003854/0.726, allocations: 1.503 MB / 0.6465 GB, free: 12.69 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.007567/0.7336, allocations: 3.509 MB / 0.6499 GB, free: 9.094 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 7.924e-06/0.7336, allocations: 0 / 0.6499 GB, free: 9.094 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.004075/0.7377, allocations: 2.025 MB / 0.6519 GB, free: 7.004 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002701/0.7404, allocations: 400.9 kB / 0.6523 GB, free: 6.609 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009824/0.7503, allocations: 4.809 MB / 0.657 GB, free: 1.738 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0016/0.7519, allocations: 1.587 MB / 0.6585 GB, free: 116 kB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001448/0.7534, allocations: 452.5 kB / 0.659 GB, free: 15.69 MB / 0.5137 GB Notification: Performance of SimCode: time 7.31e-07/0.7534, allocations: 0 / 0.659 GB, free: 15.69 MB / 0.5137 GB Notification: Performance of Templates: time 0.3351/1.088, allocations: 89.37 MB / 0.7462 GB, free: 197.6 MB / 0.5606 GB make -j1 -f Chemical_Chemical.Examples.LeadAcidBattery.makefile (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 & ./Chemical_Chemical.Examples.LeadAcidBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.LeadAcidBattery.pipe 2>&1)